merging number of csv files

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Mar 3 11:17:06 EST 2016


On 03/03/2016 09:46, m.t.egle at student.rug.nl wrote:
> Hey!
>
> I have been goggling around for the last few days and tried out many python codes.
> I want to merge two csv files, say thought_probe1.csv and thought_probe2.csv. I want them to merge column-wise in a new csv file 'new_file.csv'.
> What coding is smart to use in order to achieve it?
>
> I would really appreciate if someone could right a good code below.
>
> Thanks so much!!
>
> Best,
> Tiber
>

Sorry, we don't write code for you.

Start with the csv module https://docs.python.org/3/library/csv.html

Alternatively try pandas http://pandas.pydata.org/

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence




More information about the Python-list mailing list