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


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

Help "joining" two files delimited with pipe character ("|")

Started byDaniel Doo <dd@topekacapitalmarkets.com>
First post2012-12-05 11:57 -0600
Last post2012-12-05 10:17 -0800
Articles 3 — 2 participants

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


Contents

  Help "joining" two files delimited with pipe character ("|") Daniel Doo <dd@topekacapitalmarkets.com> - 2012-12-05 11:57 -0600
    Re: Help "joining" two files delimited with pipe character ("|") Miki Tebeka <miki.tebeka@gmail.com> - 2012-12-05 10:17 -0800
    Re: Help "joining" two files delimited with pipe character ("|") Miki Tebeka <miki.tebeka@gmail.com> - 2012-12-05 10:17 -0800

#34303 — Help "joining" two files delimited with pipe character ("|")

FromDaniel Doo <dd@topekacapitalmarkets.com>
Date2012-12-05 11:57 -0600
SubjectHelp "joining" two files delimited with pipe character ("|")
Message-ID<mailman.512.1354730874.29569.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hello,

I am new to Python.  Is there a method to "join" two pipe delimited files using a unique key that appears in both files?  I would like to implement something similar to the Unix join command.

Thanks for your help!

________________________________
Topeka Capital Markets Disclaimers - http://topekacapitalmarkets.com/Disclaimers.aspx

[toc] | [next] | [standalone]


#34305

FromMiki Tebeka <miki.tebeka@gmail.com>
Date2012-12-05 10:17 -0800
Message-ID<08e9d25a-ec58-47b0-bcd3-26b5e0d853a3@googlegroups.com>
In reply to#34303
On Wednesday, December 5, 2012 9:57:31 AM UTC-8, Daniel Doo wrote:
> I am new to Python.  Is there a method to “join” two pipe delimited files using a unique key that appears in both files? 
Have a look at Panda's concat (http://pandas.pydata.org/pandas-docs/dev/merging.html). It also have utilities to read delimited files into DataFrame.

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


#34306

FromMiki Tebeka <miki.tebeka@gmail.com>
Date2012-12-05 10:17 -0800
Message-ID<mailman.513.1354731456.29569.python-list@python.org>
In reply to#34303
On Wednesday, December 5, 2012 9:57:31 AM UTC-8, Daniel Doo wrote:
> I am new to Python.  Is there a method to “join” two pipe delimited files using a unique key that appears in both files? 
Have a look at Panda's concat (http://pandas.pydata.org/pandas-docs/dev/merging.html). It also have utilities to read delimited files into DataFrame.

[toc] | [prev] | [standalone]


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


csiph-web