def view(self):
    'Return a view of myself.\n\n        For internal compatibility with numpy arrays.\n\n        Returns\n        -------\n        view : Categorical\n           Returns `self`!\n        '
    return self
Return a view of myself.

For internal compatibility with numpy arrays.

Returns
-------
view : Categorical
   Returns `self`!
def view(self):
    'Return a view of myself.\n\n        For internal compatibility with numpy arrays.\n\n        Returns\n        -------\n        view : Categorical\n           Returns `self`!\n        '
    return self