pandas.Index.T
- property Index.T
Return the transpose, which is by definition self.
Examples
For Series:
>>> s = pd.Series(['Ant', 'Bear', 'Cow']) >>> s
Return the transpose, which is by definition self.
For Series:
>>> s = pd.Series(['Ant', 'Bear', 'Cow'])
>>> s
For Index:
>>> idx = pd.Index([1, 2, 3])
>>> idx.T
Index([1, 2, 3], dtype='int64')