Pandas merge two datasets with same number of rows
I want to add that pd.concat can do what you want by just providing the axis as columns. like this:
pd.concat([T1,T2],axis=1)
You need reset_index()
before concat
for default indices:
df = pd.concat([T1.reset_index(drop=True),T2.reset_index(drop=True)], axis=1)