From d97c3b47cdb798c89d34f16bdb3860a4370acb26 Mon Sep 17 00:00:00 2001 From: mazghal Date: Sat, 14 Sep 2019 20:18:25 +0200 Subject: [PATCH 1/3] replace args by *args and kwargs by **kwargs --- pandas/core/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/common.py b/pandas/core/common.py index cf113c8aecbfe..a45a3b2750cef 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -450,9 +450,9 @@ def pipe(obj, func, *args, **kwargs): ``(callable, data_keyword)`` tuple where ``data_keyword`` is a string indicating the keyword of `callable`` that expects the object. - args : iterable, optional + *args : iterable, optional positional arguments passed into ``func``. - kwargs : dict, optional + **kwargs : dict, optional a dictionary of keyword arguments passed into ``func``. Returns From 32c8a558070d647e3dd49c8d627089b4849517aa Mon Sep 17 00:00:00 2001 From: mazghal Date: Sat, 14 Sep 2019 20:19:33 +0200 Subject: [PATCH 2/3] description of *args and **kwargs now starts with a capital letter --- pandas/core/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/common.py b/pandas/core/common.py index a45a3b2750cef..df5508db6a327 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -451,9 +451,9 @@ def pipe(obj, func, *args, **kwargs): string indicating the keyword of `callable`` that expects the object. *args : iterable, optional - positional arguments passed into ``func``. + Positional arguments passed into ``func``. **kwargs : dict, optional - a dictionary of keyword arguments passed into ``func``. + A dictionary of keyword arguments passed into ``func``. Returns ------- From efffa4ea7b0360b4915a8d36f66626b4339e861f Mon Sep 17 00:00:00 2001 From: mazghal Date: Sat, 14 Sep 2019 20:20:06 +0200 Subject: [PATCH 3/3] replace string by str --- pandas/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/common.py b/pandas/core/common.py index df5508db6a327..565f5076fdddb 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -445,7 +445,7 @@ def pipe(obj, func, *args, **kwargs): Parameters ---------- - func : callable or tuple of (callable, string) + func : callable or tuple of (callable, str) Function to apply to this object or, alternatively, a ``(callable, data_keyword)`` tuple where ``data_keyword`` is a string indicating the keyword of `callable`` that expects the