Skip to content

Commit 5c91799

Browse files
committed
Fixed docstring error
1 parent 51c58fe commit 5c91799

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

pandas/core/groupby/groupby.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3846,14 +3846,15 @@ def expanding(self, *args, **kwargs) -> ExpandingGroupby:
38463846
4 B 50
38473847
5 B 60
38483848
3849-
>>> df.groupby("Class").expanding().mean()
3850-
Value
3851-
0 10.0
3852-
1 15.0
3853-
2 20.0
3854-
3 40.0
3855-
4 45.0
3856-
5 50.0
3849+
>>> df.groupby("Class").expanding().mean()\
3850+
Value
3851+
Class
3852+
A 0 10.0
3853+
1 15.0
3854+
2 20.0
3855+
B 3 40.0
3856+
4 45.0
3857+
5 50.0
38573858
"""
38583859
from pandas.core.window import ExpandingGroupby
38593860

0 commit comments

Comments
 (0)