Skip to content

Commit c365e0c

Browse files
author
aschade
committed
Switched order of booleans in if statement
1 parent b49f78d commit c365e0c

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 errors == 'raise' and all(indexer):
29132913
raise ValueError('{} not found in axis'.format(labels))
29142914

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

0 commit comments

Comments
 (0)