Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG, DEP, DOC: Patch and Align Categorical's Sorting API #12882

Closed

Commits on Apr 13, 2016

  1. 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 pandas-devgh-12785.
    gfyoung committed Apr 13, 2016
    Configuration menu
    Copy the full SHA
    f324a9c View commit details
    Browse the repository at this point in the history