-
-
Notifications
You must be signed in to change notification settings - Fork 18k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG, DEP, DOC: 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, deprecates `sort` in favor of `sort_values`, which is in alignment with what was done with `Series` back in #10726. Closes #12785 Author: gfyoung <[email protected]> Closes #12882 from gfyoung/categorical-sort-doc and squashes the following commits: f324a9c [gfyoung] BUG, DOC, DEP: Patch and Align Categorical's Sorting API
- 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