Skip to content

Commit acb0ea8

Browse files
Fixed pandas-dev#12561: providing links to the .cum* in .expanding
pandas-dev#12651 commit for the .cum* in .expanding
1 parent bc3ad9a commit acb0ea8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/source/computation.rst

+9
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,15 @@ they are implemented in pandas such that the following two calls are equivalent:
578578
df.expanding(min_periods=1).mean()[:5]
579579
580580
These have a similar set of methods to ``.rolling`` methods.
581+
Also ``.expanding().sum()`` has a similar functionality to ``.cumsum().ffill()``
582+
583+
..ipython:: python
584+
df.expanding().sum()
585+
586+
df.cumsum().ffill()
587+
df.cumprod().ffill()
588+
df.cummax().ffill()
589+
df.cummin().ffill()
581590

582591
Method Summary
583592
~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)