Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "K. Elo" Newsgroups: comp.lang.python Subject: Re: merging two csv files Date: Thu, 3 Mar 2016 12:35:29 +0200 Lines: 22 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de B+y2cdvJ3WmSMNgi5vxCKQn05Ufs0QfEeeDCj0RQlZxQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'subject:two': 0.07; 'csv': 0.09; 'subject:files': 0.09; 'worked.': 0.09; 'linux)': 0.16; 'received:fi': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'wrote:': 0.16; 'merge': 0.18; '(on': 0.22; 'file.': 0.22; 'for?': 0.23; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'this.': 0.28; 'code': 0.30; 'good.': 0.32; 'wishes,': 0.33; 'could': 0.35; 'files,': 0.35; 'something': 0.35; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'really': 0.37; 'two': 0.37; 'doing': 0.38; 'data': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'show': 0.62; 'charset:windows-1252': 0.62; 'received:62': 0.63; 'sample': 0.63; 'received:130': 0.73; 'br,': 0.84; 'homework': 0.84 RazorGate-KAS: Rate: 25 RazorGate-KAS: {HEADERS: 8-bit header Content-Type found with 7-bit header Content-Transfer-Encoding} RazorGate-KAS: Envelope from: RazorGate-KAS: Version: 5.5.3 RazorGate-KAS: LuaCore: 80 2014-11-10_18-01-23 260f8afb9361da3c7edfd3a8e3a4ca908191ad29 RazorGate-KAS: Method: none RazorGate-KAS: Lua profiles 69136 [Nov 12 2014] RazorGate-KAS: Status: not_detected User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:103955 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 >