Skip to content

Commit

Permalink
MAINT: .take() --> ._take()
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyoung committed Oct 1, 2017
1 parent ec299bc commit 889fb83
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3484,9 +3484,9 @@ def sort_values(self, by, axis=0, ascending=True, inplace=False,
indexer = nargsort(k, kind=kind, ascending=ascending,
na_position=na_position)

new_data = self._data.take(indexer,
axis=self._get_block_manager_axis(axis),
verify=False)
new_data = self._data._take(indexer,
axis=self._get_block_manager_axis(axis),
convert=False, verify=False)

if inplace:
return self._update_inplace(new_data)
Expand Down Expand Up @@ -3545,9 +3545,8 @@ def sort_index(self, axis=0, level=None, ascending=True, inplace=False,
na_position=na_position)

baxis = self._get_block_manager_axis(axis)
new_data = self._data.take(indexer,
axis=baxis,
verify=False)
new_data = self._data._take(indexer, axis=baxis,
convert=False, verify=False)

# reconstruct axis if needed
new_data.axes[baxis] = new_data.axes[baxis]._sort_levels_monotonic()
Expand Down

0 comments on commit 889fb83

Please sign in to comment.