Skip to content

Commit e6da4df

Browse files
committed
Elaborate on join_asof description
These descriptions are mostly lifted from the Pandas `merge_asof` docs. https://pandas.pydata.org/docs/reference/api/pandas.merge_asof.html#pandas.merge_asof
1 parent 7dd4e21 commit e6da4df

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

python/pyarrow/_dataset.pyx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,12 @@ cdef class Dataset(_Weakrefable):
884884
"""
885885
Perform an asof join between this dataset and another one.
886886
887+
This is similar to a left-join except that we match on nearest key rather
888+
than equal keys. Both datasets must be sorted by the key. This type of join
889+
is most useful for time series data that are not perfectly aligned.
890+
891+
Optionally match on equivalent keys with "by" before searching with "on".
892+
887893
Result of the join will be a new Dataset, where further
888894
operations can be applied.
889895

python/pyarrow/table.pxi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4863,6 +4863,12 @@ cdef class Table(_Tabular):
48634863
"""
48644864
Perform an asof join between this table and another one.
48654865
4866+
This is similar to a left-join except that we match on nearest key rather
4867+
than equal keys. Both tables must be sorted by the key. This type of join
4868+
is most useful for time series data that are not perfectly aligned.
4869+
4870+
Optionally match on equivalent keys with "by" before searching with "on".
4871+
48664872
Result of the join will be a new Table, where further
48674873
operations can be applied.
48684874

0 commit comments

Comments
 (0)