On this page
numpy.DataSource.open
DataSource.open(path, mode='r')
[source]-
Open and return file-like object.
If
path
is an URL, it will be downloaded, stored in theDataSource
directory 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’.Returns: out : file object
File object.
© 2008–2017 NumPy Developers
Licensed under the NumPy License.
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.DataSource.open.html