Re: joining two column

2010-05-15 Thread Tim Chase
On 05/15/2010 09:20 AM, mannu jha wrote: BTW: your mailer makes an absolute mess of plain-text emails, putting multiple spaces between every single line which makes it very hard to read. Please fix it, use a real mailer, or risk getting ignored (or worse, plonked). For

Re: Re: joining two column

2010-05-15 Thread mannu jha
On Sat, 15 May 2010 00:14:05 +0530 wrote >On 05/14/2010 12:55 PM, James Mills wrote: >> file1: >> a1 a2 >> a3 a4 >> a5 a6 >> a7 a8 >> >> file2: >> b1 b2 >> b3 b4 >> b5 b6 >> b7 b8 >> >> and I want to join them so the output should look like this: >> >> a1 a2 b1 b2 >> a3 a4 b3 b4

Re: joining two column

2010-05-14 Thread James Mills
On Sat, May 15, 2010 at 4:46 AM, Tim Chase wrote: > I think you meant izip() instead of chain() ... the OP wanted to be able to > join the two lines together, so I suspect it would look something like You're quite right! My mistake :) --James -- http://mail.python.org/mailman/listinfo/python-li

Re: joining two column

2010-05-14 Thread Tim Chase
On 05/14/2010 12:55 PM, James Mills wrote: file1: a1 a2 a3 a4 a5 a6 a7 a8 file2: b1 b2 b3 b4 b5 b6 b7 b8 and I want to join them so the output should look like this: a1 a2 b1 b2 a3 a4 b3 b4 a5 a6 b5 b6 a7 a8 b7 b8 This is completely untested, but this "should" (tm) work: from itertools impo

Re: joining two column

2010-05-14 Thread James Mills
On Sat, May 15, 2010 at 3:22 AM, mannu jha wrote: > Hi, > > I have two different file > > file1: > > a1 a2 > a3 a4 > a5 a6 > a7 a8 > > file2: > > b1 b2 > b3 b4 > b5 b6 > b7 b8 > > and I want to join them so the output should look like this: > > a1 a2 b1 b2 > a3 a4 b3 b4 > a5 a6 b5 b6 > a7 a8 b7 b8

joining two column

2010-05-14 Thread mannu jha
Hi, I have two different file file1: a1 a2 a3 a4 a5 a6 a7 a8 file2: b1 b2 b3 b4 b5 b6 b7 b8 and I want to join them so the output should look like this: a1 a2 b1 b2 a3 a4 b3 b4 a5 a6 b5 b6 a7 a8 b7 b8 how to do that? -- http://mail.python.org/mailman/listinfo/python-list