Skip to content

Commit 6e0dfa9

Browse files
deepyamanHyukjinKwon
authored andcommitted
[MINOR][DOCS][PYTHON][PS] Fix the .groupby() method docstring
### What changes were proposed in this pull request? Update the docstring for the `.groupby()` method. ### Why are the changes needed? The `.groupby()` method accept a list of columns (or a single column), and a column is defined by a `Series` or name (`Label`). It's a bit confusing to say "using a Series of columns", because `Series` (capitalized) is a specific object that isn't actually used/reasonable to use here. ### Does this PR introduce _any_ user-facing change? Yes (documentation) ### How was this patch tested? N/A Closes #38625 from deepyaman/patch-3. Authored-by: Deepyaman Datta <[email protected]> Signed-off-by: Hyukjin Kwon <[email protected]> (cherry picked from commit 71154dc) Signed-off-by: Hyukjin Kwon <[email protected]>
1 parent 80e8df1 commit 6e0dfa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/pandas/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2190,7 +2190,7 @@ def groupby(
21902190
dropna: bool = True,
21912191
) -> "GroupBy[FrameLike]":
21922192
"""
2193-
Group DataFrame or Series using a Series of columns.
2193+
Group DataFrame or Series using one or more columns.
21942194
21952195
A groupby operation involves some combination of splitting the
21962196
object, applying a function, and combining the results. This can be

0 commit comments

Comments
 (0)