pandas.Index.ravel#

final Index.ravel(order='C')[source]#

Return a view on self.

Returns:
Index

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')