Skip to content

Commit ebd2a72

Browse files
author
aschade
committed
BUG: Using numpy all() method
1 parent b49f78d commit ebd2a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2909,7 +2909,7 @@ def _drop_axis(self, labels, axis, level=None, errors='raise'):
29092909
else:
29102910
indexer = ~axis.isin(labels)
29112911

2912-
if all(indexer) and errors == 'raise':
2912+
if indexer.all() and errors == 'raise':
29132913
raise ValueError('{} not found in axis'.format(labels))
29142914

29152915
slicer = [slice(None)] * self.ndim

0 commit comments

Comments
 (0)