Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #103973

Re: merging number of csv files

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Newsgroups comp.lang.python
Subject Re: merging number of csv files
Date 2016-03-03 16:17 +0000
Message-ID <mailman.152.1457021870.20602.python-list@python.org> (permalink)
References <a261b10a-1199-4e12-920d-7ca97927b9cd@googlegroups.com>

Show all headers | View raw


On 03/03/2016 09:46, m.t.egle@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

merging number of csv files m.t.egle@student.rug.nl - 2016-03-03 01:46 -0800
  Re: merging number of csv files alister <alister.ware@ntlworld.com> - 2016-03-03 16:07 +0000
  Re: merging number of csv files Mark Lawrence <breamoreboy@yahoo.co.uk> - 2016-03-03 16:17 +0000

csiph-web