Skip to content

Commit 97095c9

Browse files
committed
more formatting correction
1 parent 11c6b1a commit 97095c9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/core/series.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,14 +1829,12 @@ def _set_name(
18291829
1 185.0
18301830
Name: Max Speed, dtype: float64
18311831
1832-
18331832
We can group by a level of the index:
18341833
>>> ser.groupby(level=0).mean()
18351834
Falcon 370.0
18361835
Parrot 25.0
18371836
Name: Max Speed, dtype: float64
18381837
1839-
18401838
We can group by a condition applied to the Series values:
18411839
>>> ser.groupby(ser > 100).mean()
18421840
Max Speed

0 commit comments

Comments
 (0)