Skip to content

Commit 2525660

Browse files
committed
Fixed docstring error
1 parent 9fe0dcf commit 2525660

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

pandas/core/groupby/groupby.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3889,13 +3889,14 @@ def ewm(self, *args, **kwargs) -> ExponentialMovingWindowGroupby:
38893889
5 B 60
38903890
38913891
>>> df.groupby("Class").ewm(com=0.5).mean()
3892-
Value
3893-
0 10.000000
3894-
1 17.500000
3895-
2 26.153846
3896-
3 40.000000
3897-
4 47.500000
3898-
5 56.153846
3892+
Value
3893+
Class
3894+
A 0 10.000000
3895+
1 17.500000
3896+
2 26.153846
3897+
B 3 40.000000
3898+
4 47.500000
3899+
5 56.153846
38993900
"""
39003901
from pandas.core.window import ExponentialMovingWindowGroupby
39013902

0 commit comments

Comments
 (0)