I have 3 dataFrames and all 3 have different columns. How do I make 1 big dataFrame of it?
Example of df1:
type - country 0 001 - US 1 002 - DE 2 003 - ES 3 004 - FR Example of df2:
Model 0 Clio 1 Q5 2 RS6 3 AMG Example of df3:
Name 0 Richard 1 Paul 2 Juan 3 Del Castillo This is the code I'm using:
df123 = pd.concat([df1, df2, df3]) The output is:
type - country - Model - Name 0 001 - US - NaN - NaN 1 002 - DE - NaN - NaN 2 003 - ES - NaN - NaN 3 004 - FR - NaN - NaN Expected output:
type - country- Model - Name 0 001 - US - Clio - Richard 1 002 - DE - Q5 - Paul 2 003 - ES - RS6 - Juan 3 004 - FR - AMG - Del Castillo
pd.concat([df1, df2, df3], axis=1)?