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


Groups > comp.lang.python > #103950 > unrolled thread

merging two csv files

Started bym.t.egle@student.rug.nl
First post2016-03-03 01:50 -0800
Last post2016-03-03 12:35 +0200
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  merging two csv files m.t.egle@student.rug.nl - 2016-03-03 01:50 -0800
    Re: merging two csv files Peter Otten <__peter__@web.de> - 2016-03-03 11:18 +0100
    Re: merging two csv files "K. Elo" <maillists@pp.inet.fi> - 2016-03-03 12:35 +0200

#103950 — merging two csv files

Fromm.t.egle@student.rug.nl
Date2016-03-03 01:50 -0800
Subjectmerging two csv files
Message-ID<b0dab882-8383-4d07-a3de-18a03a3be441@googlegroups.com>
Hey!

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.

Best wishes,
Tiber

[toc] | [next] | [standalone]


#103951

FromPeter Otten <__peter__@web.de>
Date2016-03-03 11:18 +0100
Message-ID<mailman.141.1457000349.20602.python-list@python.org>
In reply to#103950
m.t.egle@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.

[toc] | [prev] | [next] | [standalone]


#103955

From"K. Elo" <maillists@pp.inet.fi>
Date2016-03-03 12:35 +0200
Message-ID<mailman.143.1457001738.20602.python-list@python.org>
In reply to#103950
Hi!

Is this a homework or something you need a quick solution for?

For the latter: 'man paste' (on Linux) :)

Anyway, some sample data and code would be good.

BR, Kimmo

03.03.2016, 11:50, m.t.egle@student.rug.nl wrote:
> Hey!
>
> 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.
>
> Best wishes,
> Tiber
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web