From 3d4a92ea208b8ff7436fde78cc4f1bf7d6b91403 Mon Sep 17 00:00:00 2001 From: anirudnits Date: Fri, 4 Oct 2019 21:44:21 +0530 Subject: [PATCH] Minor fixes in pandas.merge_asof docstrings --- pandas/core/reshape/merge.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 62a30073a53fd..910c7ea561929 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -99,7 +99,7 @@ def _groupby_and_merge(by, on, left, right, _merge_pieces, check_duplicates=True left: left frame right: right frame _merge_pieces: function for merging - check_duplicates: boolean, default True + check_duplicates: bool, default True should we check & clean duplicates """ @@ -339,9 +339,9 @@ def merge_asof( Field name to join on in left DataFrame. right_on : label Field name to join on in right DataFrame. - left_index : boolean + left_index : bool Use the index of the left DataFrame as the join key. - right_index : boolean + right_index : bool Use the index of the right DataFrame as the join key. by : column name or list of column names Match on these columns before performing merge operation. @@ -352,10 +352,10 @@ def merge_asof( suffixes : 2-length sequence (tuple, list, ...) Suffix to apply to overlapping column names in the left and right side, respectively. - tolerance : integer or Timedelta, optional, default None + tolerance : int or Timedelta, optional, default None Select asof tolerance within this range; must be compatible with the merge index. - allow_exact_matches : boolean, default True + allow_exact_matches : bool, default True - If True, allow matching with the same 'on' value (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) ---------- left_keys: ndarray, Index, Series right_keys: ndarray, Index, Series - sort: boolean, default False + sort: bool, default False how: string {'inner', 'outer', 'left', 'right'}, default 'inner' Returns