diff options
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 179dbd8da..426f6e823 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -89,7 +89,7 @@ class BagObj(object): def zipfile_factory(file, *args, **kwargs): """ Create a ZipFile. - + Allows for Zip64, and the `file` argument can accept file, str, or pathlib.Path objects. `args` and `kwargs` are passed to the zipfile.ZipFile constructor. @@ -743,12 +743,12 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None, Skip the first `skiprows` lines; default: 0. usecols : int or sequence, optional - Which columns to read, with 0 being the first. For example, + Which columns to read, with 0 being the first. For example, usecols = (1,4,5) will extract the 2nd, 5th and 6th columns. The default, None, results in all columns being read. - + .. versionadded:: 1.11.0 - + Also when a single column has to be read it is possible to use an integer instead of a tuple. E.g ``usecols = 3`` reads the third column the same way as `usecols = (3,)`` would. |