merging two csv files

Peter Otten __peter__ at web.de
Thu Mar 3 05:18:41 EST 2016


m.t.egle at student.rug.nl wrote:

> I want to merge column-wise two csv files, say: file1.csv and file2.csv,
> both containing two columns, into a new csv file.
> 
> I could not find a good code for doing this. It never really worked.
> 
> If you could show me the code with this example, I would highly appreciate
> it.

Please provide really small examples of the input files. Then show what the 
resulting file exactly should look like. 

Finally: what have you tried? Show us the code you have written. We will 
help you fix it, but this is not a free coding service.




More information about the Python-list mailing list