8000 DOC: Update genfromtxt documentation · numpy/numpy@ad99c62 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad99c62

Browse files
committed
DOC: Update genfromtxt documentation
Fix gh-637 for genfromtxt documentation. [skip cirrus] [skip azp] [skip actions] Signed-off-by: Liang Yan <ckgppl_yan@sina.cn>
1 parent 182ee60 commit ad99c62

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

numpy/lib/_npyio_impl.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,10 +1769,10 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None,
17691769
names : {None, True, str, sequence}, optional
17701770
If `names` is True, the field names are read from the first line after
17711771
the first `skip_header` lines. This line can optionally be preceded
1772-
by a comment delimiter. If `names` is a sequence or a single-string of
1773-
comma-separated names, the names will be used to define the field names
1774-
in a structured dtype. If `names` is None, the names of the dtype
1775-
fields will be used, if any.
1772+
by a comment delimiter. Any content before the comment delimiter is discarded.
1773+
If `names` is a sequence or a single-string of comma-separated names,
1774+
the names will be used to define the field names in a structured dtype.
1775+
If `names` is None, the names of the dtype fields will be used, if any.
17761776
excludelist : sequence, optional
17771777
A list of names to exclude. This list is appended to the default list
17781778
['return','file','print']. Excluded names are appended with an
@@ -1847,7 +1847,7 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None,
18471847
-----
18481848
* When spaces are used as delimiters, or when no delimiter has been given
18491849
as input, there should not be any missing data between two fields.
1850-
* When variables are named (either by a flexible dtype or with `names`),
1850+
* When variables are named (either by a flexible dtype or with a `names` sequence),
18511851
there must not be any header in the file (else a ValueError
18521852
exception is raised).
18531853
* Individual values are not stripped of spaces by default.

0 commit comments

Comments
 (0)
0