Skip to content

Commit 889fb83

Browse files
committed
MAINT: .take() --> ._take()
1 parent ec299bc commit 889fb83

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pandas/core/frame.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -3484,9 +3484,9 @@ def sort_values(self, by, axis=0, ascending=True, inplace=False,
34843484
indexer = nargsort(k, kind=kind, ascending=ascending,
34853485
na_position=na_position)
34863486

3487-
new_data = self._data.take(indexer,
3488-
axis=self._get_block_manager_axis(axis),
3489-
verify=False)
3487+
new_data = self._data._take(indexer,
3488+
axis=self._get_block_manager_axis(axis),
3489+
convert=False, verify=False)
34903490

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

35473547
baxis = self._get_block_manager_axis(axis)
3548-
new_data = self._data.take(indexer,
3549-
axis=baxis,
3550-
verify=False)
3548+
new_data = self._data._take(indexer, axis=baxis,
3549+
convert=False, verify=False)
35513550

35523551
# reconstruct axis if needed
35533552
new_data.axes[baxis] = new_data.axes[baxis]._sort_levels_monotonic()

0 commit comments

Comments
 (0)