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 3b408ca commit ee1544cCopy full SHA for ee1544c
pandas/core/series.py
@@ -1821,15 +1821,6 @@ def _set_name(
1821
b 185.0
1822
Name: Max Speed, dtype: float64
1823
1824
- Grouping by numeric labels yields similar results:
1825
-
1826
- >>> ser.groupby([0, 1, 0, 1]).mean()
1827
- 0 210.0
1828
- 1 185.0
1829
- Name: Max Speed, dtype: float64
1830
1831
- We can group by a level of the index:
1832
1833
>>> ser.groupby(level=0).mean()
1834
Falcon 370.0
1835
Parrot 25.0
0 commit comments