Skip to content

Commit

Permalink
[MINOR][DOCS][PYTHON][PS] Fix the .groupby() method docstring
Browse files Browse the repository at this point in the history
### 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 <deepyaman.datta@utexas.edu>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 71154dc)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
  • Loading branch information
deepyaman authored and HyukjinKwon committed Feb 3, 2023
1 parent 80e8df1 commit 6e0dfa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/pandas/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2190,7 +2190,7 @@ def groupby(
dropna: bool = True,
) -> "GroupBy[FrameLike]":
"""
Group DataFrame or Series using a Series of columns.
Group DataFrame or Series using one or more columns.
A groupby operation involves some combination of splitting the
object, applying a function, and combining the results. This can be
Expand Down

0 comments on commit 6e0dfa9

Please sign in to comment.