-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG, DOC, DEP: Patch and Align Categorical's Sorting API
Clarifies the meaning of 'sort' in the context of Categorical to mean 'organization' rather than 'order', as it is possible to call this method (as well as 'sort_values') when the Categorical is unordered. Also patches a bug in 'Categorical.sort_values' in which 'na_position' was not being respected when 'ascending' was set to 'True'. This commit aligns the behaviour with that of Series. Finally, this commit deprecates 'sort' in favor of 'sort_values,' which is in alignment with the Series API as well. Closes gh-12785.
- Loading branch information
Showing
3 changed files
with
129 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters