diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-10-05 07:28:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 07:28:23 +0200 |
commit | 110d75ddc86ad49b1fc9207b201c93eed431d22b (patch) | |
tree | 227719f6dca66c2627b757fe443d0a4e43a8fa1d /numpy/lib/npyio.py | |
parent | 26d690e5abe9dc7eb74deb807ea2c4842aa91c70 (diff) | |
parent | b280eee55a5b93d7d99fa8ae571a1f474837b709 (diff) | |
download | numpy-110d75ddc86ad49b1fc9207b201c93eed431d22b.tar.gz |
Merge pull request #22372 from rossbar/doc/update-delimiter-descr
DOC: Update delimiter param description.
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 89b01c845..e62447eb0 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1085,8 +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 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 Converter functions to customize value parsing. If `converters` is callable, the function is applied to all columns, else it must be a |