diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2022-07-24 10:14:36 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-24 10:14:36 -0500 |
commit | 9f97c3a2efa05abc0cf0aec2540ec45dd4f40e57 (patch) | |
tree | 20c478703d15b2fb0991f1274e2d2f72e51485a4 | |
parent | 7c918c85cefed966a5a17996478dc651db04abd2 (diff) | |
parent | 2acf28fcf1e0ea91d08bea9301daeaa14ddeb056 (diff) | |
download | numpy-9f97c3a2efa05abc0cf0aec2540ec45dd4f40e57.tar.gz |
Merge pull request #22039 from charris/backport-22010
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 52bcf25f8..3336e1d07 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1097,6 +1097,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 |