Skip to content

Commit e0c720d

Browse files
authored
pandas-dev#25087: Favor .loc instead of _take
1 parent 09a9f80 commit e0c720d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
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._take(mask.to_numpy().nonzero()[0], axis=axis)
4618+
result = self.loc(axis=axis)[mask.to_numpy()]
46194619

46204620
if inplace:
46214621
self._update_inplace(result)

0 commit comments

Comments
 (0)