Skip to content

Commit

Permalink
docs: Clarify the join pre-condition of join_asof (#20509)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrumiller authored Dec 31, 2024
1 parent c88911f commit a569b7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion py-polars/polars/dataframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -6940,7 +6940,8 @@ def join_asof(
This is similar to a left-join except that we match on nearest key rather than
equal keys.
Both DataFrames must be sorted by the asof_join key.
Both DataFrames must be sorted by the `on` key (within each `by` group, if
specified).
For each row in the left DataFrame:
Expand Down
3 changes: 2 additions & 1 deletion py-polars/polars/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4274,7 +4274,8 @@ def join_asof(
This is similar to a left-join except that we match on nearest key rather than
equal keys.
Both DataFrames must be sorted by the join_asof key.
Both DataFrames must be sorted by the `on` key (within each `by` group, if
specified).
For each row in the left DataFrame:
Expand Down

0 comments on commit a569b7d

Please sign in to comment.