diff options
author | Ross Barnowski <rossbar@berkeley.edu> | 2022-10-04 21:38:46 -0700 |
---|---|---|
committer | Ross Barnowski <rossbar@berkeley.edu> | 2022-10-04 21:38:46 -0700 |
commit | b280eee55a5b93d7d99fa8ae571a1f474837b709 (patch) | |
tree | 5c495b9f4954719674a69c7a2e6a5861a291b6bc /numpy/lib/npyio.py | |
parent | a1fd7b6a791ff804007d07a4831388837022e1c0 (diff) | |
download | numpy-b280eee55a5b93d7d99fa8ae571a1f474837b709.tar.gz |
DOC: Use versionchanged and add in note about newline chars.
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 7c19b5616..e62447eb0 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1085,9 +1085,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 character used to separate the values. Only single character - delimiters are supported. 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 Converter functions to customize value parsing. If `converters` is callable, the function is applied to all columns, else it must be a |