def __init__(self, keys, axis=0):
    '\n        Parameters\n        ----------\n        keys : indexable object\n            sequence of keys to group by\n        axis : int, optional\n            axis to regard as the key-sequence, in case keys is multi-dimensional\n\n        See Also\n        --------\n        numpy_indexed.as_index : for information regarding the casting rules to a valid Index object\n        '
    self.index = as_index(keys, axis)
Parameters
----------
keys : indexable object
    sequence of keys to group by
axis : int, optional
    axis to regard as the key-sequence, in case keys is multi-dimensional

See Also
--------
numpy_indexed.as_index : for information regarding the casting rules to a valid Index object
def __init__(self, keys, axis=0):
    '\n        Parameters\n        ----------\n        keys : indexable object\n            sequence of keys to group by\n        axis : int, optional\n            axis to regard as the key-sequence, in case keys is multi-dimensional\n\n        See Also\n        --------\n        numpy_indexed.as_index : for information regarding the casting rules to a valid Index object\n        '
    self.index = as_index(keys, axis)