pandas.Index.ravel#
- final Index.ravel(order='C')[source]#
Return a view on self.
- Parameters:
- order{‘K’, ‘A’, ‘C’, ‘F’}, default ‘C’
Specify the memory layout of the view. This parameter is not implemented currently.
- Returns:
- Index
A view on self.
See also
numpy.ndarray.ravel
Return a flattened array.
Examples
>>> s = pd.Series([1, 2, 3], index=["a", "b", "c"]) >>> s.index.ravel() Index(['a', 'b', 'c'], dtype='object')