diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-08-22 19:58:34 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 19:58:34 -0600 |
commit | 46e8c59458b487d37103c1d48cb7314adeebd158 (patch) | |
tree | 811c14485f8229c0351e633663e8cf4aac23f640 | |
parent | 1767e601ce5fc353748d802444c4c534f31e14a0 (diff) | |
download | numpy-46e8c59458b487d37103c1d48cb7314adeebd158.tar.gz |
STY: Slight style change
-rw-r--r-- | numpy/lib/npyio.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 815080d94..91c25078b 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1023,7 +1023,7 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None, usecols_getter = itemgetter(*usecols) else: # Get an iterable back, even if using a single column. - def usecols_getter(words, _col=usecols[0]): return [words[_col]] + usecols_getter = lambda obj, c=usecols[0]: [obj[c]] else: usecols_getter = None |