On this page
numpy.DataSource.open
method
DataSource.open(path, mode='r', encoding=None, newline=None)[source]- 
    
Open and return file-like object.
If
pathis an URL, it will be downloaded, stored in theDataSourcedirectory and opened from there.Parameters: - 
           
path : str - 
           
Local file path or URL to open.
 - 
           
mode : {‘r’, ‘w’, ‘a’}, optional - 
           
Mode to open
path. Mode ‘r’ for reading, ‘w’ for writing, ‘a’ to append. Available modes depend on the type of object specified bypath. Default is ‘r’. - 
           
encoding : {None, str}, optional - 
           
Open text file with given encoding. The default encoding will be what
io.openuses. - 
           
newline : {None, str}, optional - 
           
Newline to use when reading text file.
 
Returns: - 
           
out : file object - 
           
File object.
 
 - 
           
 
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
 https://docs.scipy.org/doc/numpy-1.16.1/reference/generated/numpy.DataSource.open.html