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 11c6b1a commit 97095c9Copy full SHA for 97095c9
pandas/core/series.py
@@ -1829,14 +1829,12 @@ def _set_name(
1829
1 185.0
1830
Name: Max Speed, dtype: float64
1831
1832
-
1833
We can group by a level of the index:
1834
>>> ser.groupby(level=0).mean()
1835
Falcon 370.0
1836
Parrot 25.0
1837
1838
1839
1840
We can group by a condition applied to the Series values:
1841
>>> ser.groupby(ser > 100).mean()
1842
Max Speed
0 commit comments