ak.is_categorical ----------------- .. py:module: ak.is_categorical Defined in `awkward.operations.ak_is_categorical <https://github.com/scikit-hep/awkward/blob/36da52cfa8846355c390beb6555eac1d31c27c26/src/awkward/operations/ak_is_categorical.py>`__ on `line 12 <https://github.com/scikit-hep/awkward/blob/36da52cfa8846355c390beb6555eac1d31c27c26/src/awkward/operations/ak_is_categorical.py#L12>`__. .. py:function:: ak.is_categorical(array) :param array: Array-like data (anything :py:obj:`ak.to_layout` recognizes). If the ``array`` is categorical (contains :py:obj:`ak.contents.IndexedArray` or :py:obj:`ak.contents.IndexedOptionArray` labeled with parameter ``"__array__" = "categorical"``), then this function returns True; otherwise, it returns False. See also :py:obj:`ak.categories`, :py:obj:`ak.str.to_categorical`, :py:obj:`ak.from_categorical`.