traveler.skims.omx.CategoricalArray#
- class traveler.skims.omx.CategoricalArray(categories, codes, ordered=False, jax_check=True, mark='CAT')[source]#
Bases:
objectBase class for categorical data handling.
Methods#
|
Create a CategoricalArray from predefined categories in the store. |
|
Create a categorical array from a pandas categorical series. |
|
Create a CategoricalArray from categories and values. |
|
Create categorical codes from values using categories in a store. |
|
Take method to allow indexing like a numpy array. |
|
Convert the CategoricalArray to a pandas Series with categorical dtype. |
Attributes#
Get the categories with the mark prefix. |
|
Get the number of dimensions of the codes array. |
|
Get the shape of the codes array. |
|
Get the size of the codes array. |