@property
def shape(self):
    ' Shape of the Categorical.\n\n        For internal compatibility with numpy arrays.\n\n        Returns\n        -------\n        shape : tuple\n        '
    return tuple([len(self._codes)])
Shape of the Categorical.

For internal compatibility with numpy arrays.

Returns
-------
shape : tuple
@property
def shape(self):
    ' Shape of the Categorical.\n\n        For internal compatibility with numpy arrays.\n\n        Returns\n        -------\n        shape : tuple\n        '
    return tuple([len(self._codes)])