Skip to content

Commit

Permalink
Merge pull request #22391 from charris/backport-22372
Browse files Browse the repository at this point in the history
DOC: Update delimiter param description.
  • Loading branch information
charris committed Oct 6, 2022
2 parents fa16a0c + 2812cc4 commit 8274a16
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions numpy/lib/npyio.py
Expand Up @@ -1087,8 +1087,13 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None,
comment. None implies no comments. For backwards compatibility, byte
strings will be decoded as 'latin1'. The default is '#'.
delimiter : str, optional
The string used to separate values. For backwards compatibility, byte
strings will be decoded as 'latin1'. The default is whitespace.
The character used to separate the values. For backwards compatibility,
byte strings will be decoded as 'latin1'. The default is whitespace.
.. versionchanged:: 1.23.0
Only single character delimiters are supported. Newline characters
cannot be used as the delimiter.
converters : dict or callable, optional
A function to parse all columns strings into the desired value, or
a dictionary mapping column number to a parser function.
Expand Down

0 comments on commit 8274a16

Please sign in to comment.