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

Categorical type #16015

Merged
merged 7 commits into from
Sep 23, 2017
Merged

Categorical type #16015

merged 7 commits into from
Sep 23, 2017

Commits on Sep 19, 2017

  1. ENH: Parametrized CategoricalDtype

    We extended the CategoricalDtype to accept optional categories and ordered
    argument.
    
    ```python
    pd.CategoricalDtype(categories=['a', 'b'], ordered=True
    ```
    
    CategoricalDtype is now part of the public API. This allows users to
    specify the desired categories and orderedness of an operation ahead of time.
    The current behavior, which is still possible with categories=None, the
    default, is to infer the categories from whatever is present.
    
    This change will make it easy to implement support for specifying categories
    that are know ahead of time in other places e.g. .astype, .read_csv, and the
    Series constructor.
    
    Closes pandas-dev#14711
    Closes pandas-dev#15078
    Closes pandas-dev#14676
    TomAugspurger committed Sep 19, 2017
    Configuration menu
    Copy the full SHA
    790cd42 View commit details
    Browse the repository at this point in the history
  2. update

    TomAugspurger committed Sep 19, 2017
    Configuration menu
    Copy the full SHA
    ed5c814 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2017

  1. Consistent CategoricalDtype use in Categorical init

    Get a valid instance of `CategoricalDtype` as early as possible, and use that
    throughout.
    TomAugspurger committed Sep 20, 2017
    1 Configuration menu
    Copy the full SHA
    416d1d7 View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2017

  1. PEP8 fixes

    TomAugspurger committed Sep 22, 2017
    Configuration menu
    Copy the full SHA
    e6c05a0 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2017

  1. Final doc fixups

    TomAugspurger committed Sep 23, 2017
    Configuration menu
    Copy the full SHA
    41172ce View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    141e509 View commit details
    Browse the repository at this point in the history
  3. PEP8

    TomAugspurger committed Sep 23, 2017
    Configuration menu
    Copy the full SHA
    43f90cc View commit details
    Browse the repository at this point in the history