Skip to main content
`Ctrl`+`K`

# pandas.Index.ravel

final Index.ravel(order='C')

  Return a view on self.

  Since Index objects are one-dimensional, this simply returns a view of the original Index unchanged.

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