Feb-27-2020, 03:12 PM
Hi,
I have three data frames, I want to connate them horizontally. However. third df is Date column. when I concatenate, its values showing nana.
result:
I have three data frames, I want to connate them horizontally. However. third df is Date column. when I concatenate, its values showing nana.
df1: [python]s1 s2 s3 1 2 3 na 0 nadf2
s1 s2 s3 8 9 3 2 5 6df3:
date 0 2020-02-12 1 2020-02-12 2 2020-01-23 3 2020-02-06I use below code:
result = pd.concat([df1, df2,df_date], axis=1, join_axes=[df1.index])But I am getting the resuls is as below:
result:
s1 s2 s3 s1 s2 s3 date 1 2 3 8 9 3 na na 0 na 2 5 6 na