Skip to content

Commit da38483

Browse files
author
Christopher C. Aycock
committed
Description of direction parameters is now a bullet-point list
1 parent 879c9f0 commit da38483

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

pandas/tools/merge.py

+14-8
Original file line numberDiff line numberDiff line change
@@ -273,14 +273,20 @@ def merge_asof(left, right, on=None,
273273
274274
Both DataFrames must be sorted by the key.
275275
276-
For each row in the left DataFrame, a "backward" search selects the last
277-
row in the right DataFrame whose 'on' key is less than or equal to the
278-
left's key. A "forward" search selects the first row in the right DataFrame
279-
whose 'on' key is greater than or equal to the left's key. A "nearest"
280-
search selects the row in the right DataFrame whose 'on' key is closest
281-
in absolute distance to the left's key. (The default is "backward" and is
282-
the compatible in versions below 0.20.0. The direction parameter was added
283-
in version 0.20.0 and introduces "forward" and "nearest".)
276+
For each row in the left DataFrame:
277+
278+
- A "backward" search selects the last row in the right DataFrame whose
279+
'on' key is less than or equal to the left's key.
280+
281+
- A "forward" search selects the first row in the right DataFrame whose
282+
'on' key is greater than or equal to the left's key.
283+
284+
- A "nearest" search selects the row in the right DataFrame whose 'on'
285+
key is closest in absolute distance to the left's key.
286+
287+
The default is "backward" and is the compatible in versions below 0.20.0.
288+
The direction parameter was added in version 0.20.0 and introduces
289+
"forward" and "nearest".
284290
285291
Optionally match on equivalent keys with 'by' before searching with 'on'.
286292

0 commit comments

Comments
 (0)