Skip to content

Commit 1c35d4f

Browse files
anirudnitsNico Cernek
authored and
Nico Cernek
committed
Minor fixes in pandas.merge_asof docstrings (pandas-dev#28794)
1 parent 68a4a6d commit 1c35d4f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas/core/reshape/merge.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _groupby_and_merge(by, on, left, right, _merge_pieces, check_duplicates=True
9999
left: left frame
100100
right: right frame
101101
_merge_pieces: function for merging
102-
check_duplicates: boolean, default True
102+
check_duplicates: bool, default True
103103
should we check & clean duplicates
104104
"""
105105

@@ -339,9 +339,9 @@ def merge_asof(
339339
Field name to join on in left DataFrame.
340340
right_on : label
341341
Field name to join on in right DataFrame.
342-
left_index : boolean
342+
left_index : bool
343343
Use the index of the left DataFrame as the join key.
344-
right_index : boolean
344+
right_index : bool
345345
Use the index of the right DataFrame as the join key.
346346
by : column name or list of column names
347347
Match on these columns before performing merge operation.
@@ -352,10 +352,10 @@ def merge_asof(
352352
suffixes : 2-length sequence (tuple, list, ...)
353353
Suffix to apply to overlapping column names in the left and right
354354
side, respectively.
355-
tolerance : integer or Timedelta, optional, default None
355+
tolerance : int or Timedelta, optional, default None
356356
Select asof tolerance within this range; must be compatible
357357
with the merge index.
358-
allow_exact_matches : boolean, default True
358+
allow_exact_matches : bool, default True
359359
360360
- If True, allow matching with the same 'on' value
361361
(i.e. less-than-or-equal-to / greater-than-or-equal-to)
@@ -1267,7 +1267,7 @@ def _get_join_indexers(left_keys, right_keys, sort=False, how="inner", **kwargs)
12671267
----------
12681268
left_keys: ndarray, Index, Series
12691269
right_keys: ndarray, Index, Series
1270-
sort: boolean, default False
1270+
sort: bool, default False
12711271
how: string {'inner', 'outer', 'left', 'right'}, default 'inner'
12721272
12731273
Returns

0 commit comments

Comments
 (0)