Skip to main content
`Ctrl`+`K`

# pandas.api.extensions.ExtensionArray.ravel

ExtensionArray.ravel(order='C')

  Return a flattened view on this array.

  Since ExtensionArrays are 1-dimensional, this method returns the array itself. The `order` parameter is accepted for compatibility with NumPy but is ignored.

  Parameters:
    order{None, ‘C’, ‘F’, ‘A’, ‘K’}, default ‘C’
  Returns:
    ExtensionArray

      A flattened view on the array.

  See also

  `ExtensionArray.tolist`

    Return a list of the values.

  Notes

  - Because ExtensionArrays are 1D-only, this is a no-op.

  - The “order” argument is ignored, is for compatibility with NumPy.

  Examples

      >>> pd.array([1, 2, 3]).ravel()
      <IntegerArray>
      [1, 2, 3]
      Length: 3, dtype: Int64