@cache_readonly
def ndim(self):
    'Number of dimensions of the Categorical '
    return self._codes.ndim
Number of dimensions of the Categorical
@cache_readonly
def ndim(self):
    ' '
    return self._codes.ndim