I have two data frames that I want to join side by side.
They have the same number of rows and I want them next to eachother so I can then total the resulting rows.
So I tried to join using pd.concat
df1 = pd.DataFrame(data.iloc[34:55, 1:19])
df2 = pd.DataFrame(data.iloc[91:112, 1:19])
df3 = pd.concat([df1, df2], axis=1)
This joins the two data frames one on top of the other and changes 0's to NaN
I tried merging but with no success either.
Apologies if very basic, I have researched the problem but am very much a beginner.
Thanks
Here is one of the data frames, extracted from an excel spreadhseet