Answers for "concat two dataframes with different lines"

10

merge two dataframes based on column

df_outer = pd.merge(df1, df2, on='id', how='outer') #here id is common column

df_outer
Posted by: Guest on July-27-2020
0

pandas concat / merge two dataframe within one dataframe

In [9]: result = pd.concat([df1, df4], axis=1)
Posted by: Guest on July-01-2021

Code answers related to "concat two dataframes with different lines"

Python Answers by Framework

Browse Popular Code Answers by Language