samdansobe at yahoo
Apr 29, 2012, 7:40 AM
Help with how to combine two csv files
I am new to python and I have been trying to merge two csv files, and upon several hours of unsuccessful attempts, I have decided to seek for help.
the format of the file is as follows. file A has columns a, b, c and values 1,2,3 for several rows. File B also has columns d,e and values 4,5 for same number of rows as A. the files however do not have any unique column between the two.
I want an output file C to have columns a,b,c,d,e with values 1,2,3,4,5
I would be very grateful for your help with some code.
Thanks very much,