1In [1]: s1 = pd.Series([1, 2], index=['A', 'B'], name='s1')
2
3In [2]: s2 = pd.Series([3, 4], index=['A', 'B'], name='s2')
4
5In [3]: pd.concat([s1, s2], axis=1)
6Out[3]:
7 s1 s2
8A 1 3
9B 2 4
10
11In [4]: pd.concat([s1, s2], axis=1).reset_index()
12Out[4]:
13 index s1 s2
140 A 1 3
151 B 2 4
1In [1]: s1 = pd.Series([1, 2], index=['A', 'B'], name='s1')
2
3In [2]: s2 = pd.Series([3, 4], index=['A', 'B'], name='s2')
4
5In [3]: pd.concat([s1, s2], axis=1)
6Out[3]:
7 s1 s2
8A 1 3
9B 2 4
10
11In [4]: pd.concat([s1, s2], axis=1).reset_index()
12Out[4]:
13 index s1 s2
140 A 1 3
151 B 2 4
16