We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9968d87 commit 8dd7aa3Copy full SHA for 8dd7aa3
spec/API_specification/dataframe_api/dataframe_object.py
@@ -11,9 +11,28 @@
11
12
13
class DataFrame:
14
- def groupby(self, keys: list[str], /) -> GroupBy:
+ def groupby(self, keys: Sequence[str], /) -> GroupBy:
15
"""
16
Group the DataFrame by the given columns.
17
+
18
+ Parameters
19
+ ----------
20
+ keys : Sequence[str]
21
22
+ Returns
23
+ -------
24
+ GroupBy
25
26
+ Raises
27
+ ------
28
+ KeyError
29
+ If any of the requested keys are not present.
30
31
+ Notes
32
+ -----
33
+ Downstream operations from this function, like aggregations, return
34
+ results for which row order is not guaranteed and is implementation
35
+ defined.
36
37
...
38
0 commit comments