foocatse package

Submodules

foocatse.foocatse module

foocatse.foocatse.catbind(a, b)

Concatenates two pandas categoricals.

Parameters:
  • a (pandas.core.arrays.categorical.Categorical) – A pandas categorical.
  • b (pandas.core.arrays.categorical.Categorical) – A pandas categorical that you wish to concatenate to a.
Returns:

The new concatenated pandas categorical.

Return type:

pandas.core.arrays.categorical.Categorical

Examples

>>> from foocat import foocat
>>> a = pd.Categorical(["character", "hits", "your", "eyeballs"])
>>> b = pd.Categorical(["but", "integer", "where it", "counts"])
>>> foocat.catbind(a, b)
[character, hits, your, eyeballs, but, integer, where it, counts]
Categories (8, object): [but, character, counts,
eyeballs, hits, integer, where it, your]

Module contents