Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
ordered_merge improvements #1870
Comments
leonbaum
commented
Oct 24, 2012
|
It would be great to be able to perform ordered left joins using a time-series index as well. |
yarivm
commented
Jan 24, 2013
|
+1 vote for "ordered left joins." |
ngcrawford
commented
Feb 15, 2013
|
+1 vote for "ordered left joins. |
|
Any thoughts on this? A kdb-style asof-join is very useful in time-series analysis. The rows of the right-hand table would just be picked via a DataFrame.asof (see #2941). |
|
(unless something else was meant here). This has been in for a while. |
|
@jreback Unlike the pd.ordered_merge(), the kdb aj() only keeps the rows from the left-hand table. http://code.kx.com/wiki/Reference/aj I.e., as with a regular left-join, the table doesn't get more rows; it just appends columns from the right-hand table. Actually, it's very similar to a left-join, but instead of searching for equal keys, it searches for the greatest key from the right-hand table that is less-than-or-equal-to the key from the left-hand table. This is exactly what the asof function does in pandas, so we're part of the way there already. |
bwillers
referenced
this issue
Jun 13, 2015
Open
limiting reindex with MultiIndex ffill/bfill within levels. #10347
jreback
modified the milestone: 0.18.2, Someday
Jun 3, 2016
jreback
added a commit
to jreback/pandas
that referenced
this issue
Jun 15, 2016
|
|
jreback |
4592fa2
|
wesm commentedSep 9, 2012
http://stackoverflow.com/questions/12322289/kdb-like-asof-join-for-timeseries-data-in-pandas/12336039#12336039