9 Feb 23:49
Re: Emulate left outer join?
John Hunter <jdh2358 <at> gmail.com>
2010-02-09 22:49:30 GMT
2010-02-09 22:49:30 GMT
On Tue, Feb 9, 2010 at 4:43 PM, Fernando Perez <fperez.net <at> gmail.com> wrote: > On Tue, Feb 9, 2010 at 5:02 PM, Robert Kern <robert.kern <at> 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: The numpy.lib.recfunctions were ported from matplotlib.mlab so most of the functionality is overlapping, but we have added some stuff since the port, eg matplotlib.mlab.recs_join for a multiway join, and some stuff was never ported (rec_summarize, rec_groupby) so it may be worth looking in mlab too. Some of the stuff for mpl is only in svn but most of it is released. Examples are at http://matplotlib.sourceforge.net/examples/misc/rec_join_demo.html http://matplotlib.sourceforge.net/examples/misc/rec_groupby_demo.html JDH
RSS Feed