pandas.Index.ravel — pandas 3.0.0.dev0+2103.g41968a550a documentation (original) (raw)
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.
Examples
s = pd.Series([1, 2, 3], index=["a", "b", "c"]) s.index.ravel() Index(['a', 'b', 'c'], dtype='object')