ak.from_categorical ------------------- .. py:module: ak.from_categorical Defined in `awkward.operations.ak_from_categorical `__ on `line 13 `__. .. py:function:: ak.from_categorical(array, *, highlevel=True, behavior=None, attrs=None) :param array: Array-like data (anything :py:obj:`ak.to_layout` recognizes). :param highlevel: If True, return an :py:obj:`ak.Array`; otherwise, return a low-level :py:obj:`ak.contents.Content` subclass. :type highlevel: bool :param behavior: Custom :py:obj:`ak.behavior` for the output array, if high-level. :type behavior: None or dict :param attrs: Custom attributes for the output array, if high-level. :type attrs: None or dict This function replaces categorical data with non-categorical data (by removing the label that declares it as such). This is a metadata-only operation; the running time does not scale with the size of the dataset. (Conversion to categorical is expensive; conversion from categorical is cheap.) See also :py:obj:`ak.is_categorical`, :py:obj:`ak.categories`, :py:obj:`ak.str.to_categorical`.