1>>> s = pd.Series(["a", "b", "c"],
2... name="vals")
3>>> s.to_frame()
4 vals
50 a
61 b
72 c
8
1>>> df = pd.DataFrame([list(range(5))], columns=["a{}".format(i) for i in range(5)])
2>>> df
3 a0 a1 a2 a3 a4
40 0 1 2 3 4
5>>> df.iloc[0]
6a0 0
7a1 1
8a2 2
9a3 3
10a4 4
11Name: 0, dtype: int64
12>>> type(_)
13<class 'pandas.core.series.Series'>
14