summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2022-07-24 10:14:36 -0500
committerGitHub <noreply@github.com>2022-07-24 10:14:36 -0500
commit9f97c3a2efa05abc0cf0aec2540ec45dd4f40e57 (patch)
tree20c478703d15b2fb0991f1274e2d2f72e51485a4
parent7c918c85cefed966a5a17996478dc651db04abd2 (diff)
parent2acf28fcf1e0ea91d08bea9301daeaa14ddeb056 (diff)
downloadnumpy-9f97c3a2efa05abc0cf0aec2540ec45dd4f40e57.tar.gz
Merge pull request #22039 from charris/backport-22010
DOC: Add versionchanged for converter callable behavior.
-rw-r--r--numpy/lib/npyio.py5
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