pandas.Series.T

Return the transpose, which is by

definition self.

Examples

Return the transpose, which is by definition self.
import numpy as np
import pandas as pd
from numba import njit


@njit
def series_T():
    series = pd.Series(np.arange(5))

    return series.T  # Expect array of 0, 1, 2, 3, 4


print(series_T())
$ python ./series/series_T.py
[0 1 2 3 4]