pandas.Series.ravel#

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

Return the flattened underlying data as an ndarray or ExtensionArray.

Returns:
numpy.ndarray or ExtensionArray

Flattened data of the Series.

See also

numpy.ndarray.ravel

Return a flattened array.

Examples

>>> s = pd.Series([1, 2, 3])
>>> s.ravel()
array([1, 2, 3])