pyspark.pandas.Series.T#
- property Series.T#
Return the transpose, which is self.
Examples
It returns the same object as the transpose of the given series object, which is by definition self.
>>> s = ps.Series([1, 2, 3]) >>> s 0 1 1 2 2 3 dtype: int64
>>> s.transpose() 0 1 1 2 2 3 dtype: int64