Skip to content

Commit 6bee17a

Browse files
author
y-p
committed
PERF: remove no longer needed list conversion. 1.4x speedup
1 parent 6635b26 commit 6bee17a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ def _getitem_axis(self, key, axis=0):
11631163
# (None) slices, list of labels or labels
11641164
specs = _tuple_to_mi_locs(labels,key)
11651165
g = _spec_to_array_indices(labels, specs)
1166-
return self.obj.iloc[list(g)]
1166+
return self.obj.iloc[g]
11671167
else:
11681168
self._has_valid_type(key, axis)
11691169
return self._get_label(key, axis=axis)

0 commit comments

Comments
 (0)