diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-07-19 08:20:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-19 08:20:27 -0700 |
commit | 25bcff17a58e942fbeaaba65902157b0f070376a (patch) | |
tree | 9248c570148e928727a610b3922f211b4c8cfab8 | |
parent | 5ba36b700284a8392af5be542f65ecd262fd2568 (diff) | |
parent | c6d4774b9b7a10247dc33b6bcf18c88dd7cd8a69 (diff) | |
download | numpy-25bcff17a58e942fbeaaba65902157b0f070376a.tar.gz |
Merge pull request #22010 from rossbar/doc/add-version-changed
DOC: Add versionchanged for converter callable behavior.
-rw-r--r-- | numpy/lib/npyio.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 471f85976..237d7e4ef 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1095,6 +1095,11 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None, data, e.g. ``converters = lambda s: float(s.strip() or 0)`` will convert empty fields to 0. Default: None. + + .. versionchanged:: 1.23.0 + The ability to pass a single callable to be applied to all columns + was added. + skiprows : int, optional Skip the first `skiprows` lines, including comments; default: 0. usecols : int or sequence, optional |