>>> import pandas as pd
>>> df1 = pd.DataFrame({'a':[1,2,3,4,5,1,3], 'b':[11,12,13,14,15,12,16]})
>>> df2 = pd.DataFrame({'a':[1,2,3,4,5,1,3], 'b':[11,12,13,14,15,12,16]})
>>> pd.concat([df1,df2], axis=1, ignore_index=True)
0 1 2 3
0 1 11 1 11
1 2 12 2 12
2 3 13 3 13
3 4 14 4 14
4 5 15 5 15
5 1 12 1 12
6 3 16 3 16
>>> pd.concat([df1,df2], axis=1, ignore_index=False)
a b a b
0 1 11 1 11
1 2 12 2 12
2 3 13 3 13
3 4 14 4 14
4 5 15 5 15
5 1 12 1 12
6 3 16 3 16
>>> pd.concat([df1,df2], axis=1)
a b a b
0 1 11 1 11
1 2 12 2 12
2 3 13 3 13
3 4 14 4 14
4 5 15 5 15
5 1 12 1 12
6 3 16 3 16
>>>