Skip to content

Commit 97195f2

Browse files
Merge pull request pandas-dev#11916 from jorisvandenbossche/doc-rolling-fixup
DOC: adapt remaining occurences of pf.rolling_
2 parents c525674 + 00779d2 commit 97195f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/visualization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,8 +1595,8 @@ when plotting a large number of points.
15951595
15961596
price = pd.Series(np.random.randn(150).cumsum(),
15971597
index=pd.date_range('2000-1-1', periods=150, freq='B'))
1598-
ma = pd.rolling_mean(price, 20)
1599-
mstd = pd.rolling_std(price, 20)
1598+
ma = price.rolling(20).mean()
1599+
mstd = price.rolling(20).std()
16001600
16011601
plt.figure()
16021602

0 commit comments

Comments
 (0)