def _get_codes(self):
        v = self._codes.view()
        v.flags.writeable = False
        return v
Get the codes.
dataset/ETHPy150Open pydata/pandas/pandas/core/categorical.py/Categorical._get_codes