def _get_categories(self):
        # categories is an Index, which is immutable -> no need to copy
        return self._categories
Gets the categories
dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical._get_categories