Skip to content

Commit 4cb1d73

Browse files
dwillmerjorisvandenbossche
authored andcommitted
[Backport #14718] DOC: fix typo in merge_asof docstring examples (#14718)
(cherry picked from commit 4143b32)
1 parent 02bd86a commit 4cb1d73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tools/merge.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def merge_asof(left, right, on=None,
371371
372372
By default we are taking the asof of the quotes
373373
374-
>>> pd.asof_merge(trades, quotes,
374+
>>> pd.merge_asof(trades, quotes,
375375
... on='time',
376376
... by='ticker')
377377
time ticker price quantity bid ask
@@ -383,7 +383,7 @@ def merge_asof(left, right, on=None,
383383
384384
We only asof within 2ms betwen the quote time and the trade time
385385
386-
>>> pd.asof_merge(trades, quotes,
386+
>>> pd.merge_asof(trades, quotes,
387387
... on='time',
388388
... by='ticker',
389389
... tolerance=pd.Timedelta('2ms'))
@@ -398,7 +398,7 @@ def merge_asof(left, right, on=None,
398398
and we exclude exact matches on time. However *prior* data will
399399
propogate forward
400400
401-
>>> pd.asof_merge(trades, quotes,
401+
>>> pd.merge_asof(trades, quotes,
402402
... on='time',
403403
... by='ticker',
404404
... tolerance=pd.Timedelta('10ms'),

0 commit comments

Comments
 (0)