Skip to content

Commit 833620d

Browse files
committed
removed some part of addee text
1 parent fe098c0 commit 833620d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pandas/core/series.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,15 +1816,14 @@ def _set_name(
18161816
Parrot 20.0
18171817
Name: Max Speed, dtype: float64
18181818
1819-
We can pass a list of values (Here: ["a", "b", "a", "b"]) to
1820-
group the Series data by custom labels:
1819+
We can pass a list of values to group the Series data by custom labels:
18211820
18221821
>>> ser.groupby(["a", "b", "a", "b"]).mean()
18231822
a 210.0
18241823
b 185.0
18251824
Name: Max Speed, dtype: float64
18261825
1827-
Grouping by numeric labels yields similar results (Here: [0, 1, 0, 1]):
1826+
Grouping by numeric labels yields similar results:
18281827
18291828
>>> ser.groupby([0, 1, 0, 1]).mean()
18301829
0 210.0
@@ -1896,7 +1895,7 @@ def _set_name(
18961895
dtype: int64
18971896
18981897
We can also group by a custom list with NaN values to handle
1899-
missing group labels (Here: ["a", "b", "a", np.nan]):
1898+
missing group labels:
19001899
19011900
>>> arrays = ['Falcon', 'Falcon', 'Parrot', 'Parrot']
19021901
>>> ser = pd.Series([390., 350., 30., 20.], index=arrays, name="Max Speed")

0 commit comments

Comments
 (0)