From eaad67317734767c5101e6620e5c1b07915bc2b8 Mon Sep 17 00:00:00 2001 From: luzhenxiong <397132445@qq.com> Date: Fri, 2 Sep 2022 11:33:22 +0800 Subject: [PATCH] DOC: add pd.Grouper type to groupby by argument types --- pandas/core/shared_docs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index 09c8cf39f5839..296e25fd5c187 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -94,7 +94,7 @@ Parameters ---------- -by : mapping, function, label, or list of labels +by : mapping, function, label, pd.Grouper or list of labels Used to determine the groups for the groupby. If ``by`` is a function, it's called on each value of the object's index. If a dict or Series is passed, the Series or dict VALUES