I have two tables df1
and df2
.
print(df1)
bar1 foo1
0 a e
1 b f
2 c g
print(df2)
bar2 foo2
0 x l
1 y m
2 z n
I need to concatenate them column by column into one table with two columns.
I need this table:
bar3 foo3
0 a x e l
1 b y f m
2 c z g n
How can I do it using pandas?