code: def get_var_type(col: pd.Series) -> Literal["c", "o", "u"]:
      """
      Return var_type (for KDEMultivariate) of the column
  
      Parameters
      ----------
      col :
          A dataframe column.
  
      Returns
      -------
      out :
          Character that denotes the type of column.
          `c` for continuous, `o` for ordered categorical and
          `u` for unordered categorical or if not sure.
  
      See Also
      --------
      The origin of the character codes is
      :class:`statsmodels.nonparametric.kernel_density.KDEMultivariate`.
      """
      if array_kind.continuous(col):
          return "c"
      elif array_kind.discrete(col):
          return "o" if array_kind.ordinal else "u"
      else:
          # unordered if unsure
          return "u"
  
file_path: plotnine/plotnine/stats/density.py
imports: from __future__ import annotations
  import typing
  import numpy
  from .._utils import array_kind
label_desc: Use image node_id 7 for calling a global function with example usage: get_var_type(col) and returns: str, unknown, str