code: import pandas as pd
  
  
  def 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
      -------
      pandas.core.arrays.categorical.Categorical
        The new concatenated pandas 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]
      """
      concatenated = pd.concat([pd.Series(a.astype("str")),
                                pd.Series(b.astype("str"))])
      return pd.Categorical(concatenated)
  
apis: pandas.Categorical