Re: [Numpy-discussion] Emulate left outer join?

2010-02-10 Thread David Carmean
On Tue, Feb 09, 2010 at 04:49:30PM -0600, John Hunter wrote: On Tue, Feb 9, 2010 at 4:43 PM, Fernando Perez fperez@gmail.com wrote: On Tue, Feb 9, 2010 at 5:02 PM, Robert Kern robert.k...@gmail.com wrote: numpy.lib.recfunctions.join_by(key, r1, r2, jointype='leftouter') And if

Re: [Numpy-discussion] Emulate left outer join?

2010-02-10 Thread John Hunter
On Tue, Feb 9, 2010 at 7:53 PM, Pierre GM pgmdevl...@gmail.com wrote: On Feb 9, 2010, at 8:16 PM, John Hunter wrote: and have totxt, tocsv. etc... from rec2txt, rec2csv, etc...   I think the functionality of mlab.rec_summarize and rec_groupby is very useful, but the interface is a bit clunky

Re: [Numpy-discussion] Emulate left outer join?

2010-02-10 Thread John Hunter
On Wed, Feb 10, 2010 at 8:54 AM, John Hunter jdh2...@gmail.com wrote: On Tue, Feb 9, 2010 at 7:53 PM, Pierre GM pgmdevl...@gmail.com wrote: On Feb 9, 2010, at 8:16 PM, John Hunter wrote: and have totxt, tocsv. etc... from rec2txt, rec2csv, etc...   I think the functionality of

Re: [Numpy-discussion] Emulate left outer join?

2010-02-10 Thread Pierre GM
On Feb 10, 2010, at 11:10 AM, John Hunter wrote: On Wed, Feb 10, 2010 at 8:54 AM, John Hunter jdh2...@gmail.com wrote: On Tue, Feb 9, 2010 at 7:53 PM, Pierre GM pgmdevl...@gmail.com wrote: On Feb 9, 2010, at 8:16 PM, John Hunter wrote: and have totxt, tocsv. etc... from rec2txt, rec2csv,

[Numpy-discussion] Emulate left outer join?

2010-02-09 Thread David Carmean
Hi, I've been working with numpy for less than a month, having learned about it after finding matplotlib. My foundation in things like set theory is... weak to nonexistent, so I need a little help mapping sql-like thoughts into set-theory thinking :) Some context to help me explain: I'm

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Robert Kern
On Tue, Feb 9, 2010 at 15:52, David Carmean d...@halibut.com wrote: Hi, I've been working with numpy for less than a month, having learned about it after finding matplotlib.  My foundation in things like set theory is... weak to nonexistent, so I need a little help mapping sql-like thoughts

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Fernando Perez
On Tue, Feb 9, 2010 at 5:02 PM, Robert Kern robert.k...@gmail.com wrote: numpy.lib.recfunctions.join_by(key, r1, r2, jointype='leftouter') And if that isn't sufficient, John has in matplotlib.mlab a few other similar utilities that allow for more complex cases: In [2]: mlab.rec_

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread John Hunter
On Tue, Feb 9, 2010 at 4:43 PM, Fernando Perez fperez@gmail.com wrote: On Tue, Feb 9, 2010 at 5:02 PM, Robert Kern robert.k...@gmail.com wrote: numpy.lib.recfunctions.join_by(key, r1, r2, jointype='leftouter') And if that isn't sufficient, John has in matplotlib.mlab a few other similar

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread David Warde-Farley
On 9-Feb-10, at 5:02 PM, Robert Kern wrote: Examples? Pointers? Shoves toward the correct sections of the docs? numpy.lib.recfunctions.join_by(key, r1, r2, jointype='leftouter') Huh. All these years, how have I missed this? Yet another demonstration of why my never skip over a Kern posting

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Robert Kern
On Tue, Feb 9, 2010 at 17:47, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern robert.k...@gmail.com wrote: For some reason, numpy.lib.recfunctions isn't in the documentation editor. I'm not sure why. Because it's not in np.lib.__all__ . Then

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread josef . pktd
On Tue, Feb 9, 2010 at 6:52 PM, Robert Kern robert.k...@gmail.com wrote: On Tue, Feb 9, 2010 at 17:47, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern robert.k...@gmail.com wrote: For some reason, numpy.lib.recfunctions isn't in the

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Robert Kern
On Tue, Feb 9, 2010 at 18:02, josef.p...@gmail.com wrote: On Tue, Feb 9, 2010 at 6:52 PM, Robert Kern robert.k...@gmail.com wrote: On Tue, Feb 9, 2010 at 17:47, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern robert.k...@gmail.com wrote: For

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Pierre GM
On Feb 9, 2010, at 6:52 PM, Robert Kern wrote: On Tue, Feb 9, 2010 at 17:47, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern robert.k...@gmail.com wrote: For some reason, numpy.lib.recfunctions isn't in the documentation editor. I'm not

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Pauli Virtanen
ti, 2010-02-09 kello 18:04 -0600, Robert Kern kirjoitti: On Tue, Feb 9, 2010 at 18:02, josef.p...@gmail.com wrote: [clip] numpy.lib.recfunctions I think, it's possible to directly import/reference them in the docs without adding them to lib.__all__ Okay. What is that way? What do we

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Pierre GM
On Feb 9, 2010, at 7:54 PM, Pauli Virtanen wrote: But, should we make these functions available under some less internal-ish namespace? There's numpy.rec at the least -- it could be made a real module to pull in things from core and lib. I still think these functions are more generic than

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread josef . pktd
On Tue, Feb 9, 2010 at 7:06 PM, Pierre GM pgmdevl...@gmail.com wrote: On Feb 9, 2010, at 6:52 PM, Robert Kern wrote: On Tue, Feb 9, 2010 at 17:47, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern robert.k...@gmail.com wrote: For some reason,

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread John Hunter
On Tue, Feb 9, 2010 at 7:02 PM, Pierre GM pgmdevl...@gmail.com wrote: On Feb 9, 2010, at 7:54 PM, Pauli Virtanen wrote: But, should we make these functions available under some less internal-ish namespace? There's numpy.rec at the least -- it could be made a real module to pull in things from

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Pierre GM
On Feb 9, 2010, at 8:16 PM, John Hunter wrote: I still think these functions are more generic than the rec_ prefix let think, and I'd still prefer a decision being made about what should go in the module before thinking too hard about how to advertise it. I would love to see many of these