Skip to content
Advertisement

Pandas merge 3 dataframes with same columns

I have 3 dataframes where I have one string column which I want to merge on and 2 similar columns which I want to add up

df1:

JavaScript

df2:

JavaScript

df3:

JavaScript

I want: df4:

JavaScript

Advertisement

Answer

try this, first pandas.concat then groupby

JavaScript

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement