pandas.Index.ravel#
- final Index.ravel(order='C')[源代码]#
返回对自身的视图。
- Returns:
- pandas.DataFrame.keys
参见
numpy.ndarray.ravel返回展平的数组。
Examples
>>> s = pd.Series([1, 2, 3], index=['a', 'b', 'c']) >>> s.index.ravel() Index(['a', 'b', 'c'], dtype='object')
返回对自身的视图。
参见
numpy.ndarray.ravel返回展平的数组。
Examples
>>> s = pd.Series([1, 2, 3], index=['a', 'b', 'c'])
>>> s.index.ravel()
Index(['a', 'b', 'c'], dtype='object')