Skip to content

Commit 2aca389

Browse files
Revert earlier change and use to_numpy
Revert pandas-dev#24048 change that caused bug.
1 parent bb43726 commit 2aca389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4615,7 +4615,7 @@ def dropna(self, axis=0, how='any', thresh=None, subset=None,
46154615
else:
46164616
raise TypeError('must specify how or thresh')
46174617

4618-
result = self.loc(axis=axis)[mask]
4618+
result = self._take(mask.nonzero()[0], axis=axis)
46194619

46204620
if inplace:
46214621
self._update_inplace(result)

0 commit comments

Comments
 (0)