You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature request is related to my question on stackoverflow, which has been already answered by cbilot.
The problem is that currently a "between" join is syntactical not very nice because two operations are necessary to do the job therefor I am thinking to extend the asof_join function for the parameter strategy with the keyword between.
So three parameters would have to be adjusted for this new feature. The parameter strategy gets an additional keyword like between, the parameters right_on and left_on take list of tuples/ tuples for lower and upper bound.
The text was updated successfully, but these errors were encountered:
I guess it is more than just syntactical as the answer in SO assumes non-overlapping while this doesn't :-)
From SO:
I'm going to assume that your intervals in df_1 do not overlap for a particular id - otherwise, there may not be a unique value that we can assign to the id/dates combinations in df_2
I think it would be great with a version that supports overlapping intervals. Something similar to what DuckDB is supporting here with IEJOIN https://duckdb.org/2022/05/27/iejoin.html
Describe your feature request
This feature request is related to my question on stackoverflow, which has been already answered by cbilot.
The problem is that currently a "between" join is syntactical not very nice because two operations are necessary to do the job therefor I am thinking to extend the asof_join function for the parameter
strategy
with the keywordbetween
.Example
Data
So the aim is to join on
id
and thatdates
is in betweenstart
andend
##Current Solution (by cbilot)
Result:
Suggested Solution
Result:
So three parameters would have to be adjusted for this new feature. The parameter
strategy
gets an additional keyword likebetween
, the parametersright_on
andleft_on
take list of tuples/ tuples for lower and upper bound.The text was updated successfully, but these errors were encountered: