Skip to content

Commit

Permalink
BUG: Using numpy all() method
Browse files Browse the repository at this point in the history
  • Loading branch information
aschade committed Jan 13, 2018
1 parent b49f78d commit ebd2a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2909,7 +2909,7 @@ def _drop_axis(self, labels, axis, level=None, errors='raise'):
else:
indexer = ~axis.isin(labels)

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

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

0 comments on commit ebd2a72

Please sign in to comment.