8000 Typo in documentation of loadtxt · Issue #7878 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content
Typo in documentation of loadtxt #7878
Closed
@dunneff

Description

@dunneff

This is just a minor typo in the documentation explaining how to use the usecols parameter.

usecols : int or sequence, optional
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.

I believe

E.g usecols = 3 reads the
third column the same way as `usecols = (3,)`` would.

should read

E.g usecols = 3 reads the
fourth column the same way as `usecols = (3,)`` would.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0