@@ -1769,10 +1769,10 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None,
1769
1769
names : {None, True, str, sequence}, optional
1770
1770
If `names` is True, the field names are read from the first line after
1771
1771
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.
1776
1776
excludelist : sequence, optional
1777
1777
A list of names to exclude. This list is appended to the default list
1778
1778
['return','file','print']. Excluded names are appended with an
@@ -1847,7 +1847,7 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None,
1847
1847
-----
1848
1848
* When spaces are used as delimiters, or when no delimiter has been given
1849
1849
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 ),
1851
1851
there must not be any header in the file (else a ValueError
1852
1852
exception is raised).
1853
1853
* Individual values are not stripped of spaces by default.
0 commit comments