SyntaxFix
Write A Post
Hire A Developer
Questions
My problem were different indices, the following code solved my problem.
df1.reset_index(drop=True, inplace=True) df2.reset_index(drop=True, inplace=True) df = pd.concat([df1, df2], axis=1)