I have two different csv sample files:
first.csv
name,school
Derrick, schoolA
Peter,schoolB
second.csv
age ,address
21,abc
22,sdc
I need to combine the two csv files to one. So the result expected is :
combined.csv
name,school,age ,address
Derrick,schoolA, 21,abc
Peter,schoolB, 22,sdc
Is there a way I can achieve this using pandas?
pd.concatif you make sure that both dataframes are of equal length.