Skip to content

Commit

Permalink
pandas-dev#25087: Favor .loc instead of _take
Browse files Browse the repository at this point in the history
  • Loading branch information
rs2 committed Feb 2, 2019
1 parent 09a9f80 commit e0c720d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4615,7 +4615,7 @@ def dropna(self, axis=0, how='any', thresh=None, subset=None,
else:
raise TypeError('must specify how or thresh')

result = self._take(mask.to_numpy().nonzero()[0], axis=axis)
result = self.loc(axis=axis)[mask.to_numpy()]

if inplace:
self._update_inplace(result)
Expand Down

0 comments on commit e0c720d

Please sign in to comment.