Skip to content
Advertisement

Python merging csv files problem coping and dupplicated cells-parts

I have the following two CSV files:

file1.csv

JavaScript

and the second file2.csv

JavaScript

and i would like to have them merged like this:

JavaScript

my code that I wrote is:

JavaScript

but when I do this I get for each calc_1 point the whole dataset copied like this:

JavaScript

what am I doing wrong?

Advertisement

Answer

Here is a solution you can try out, using pd.concat

JavaScript

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