Skip to content

Commit 30f48c0

Browse files
committed
Fix docstring errors
1 parent 6362124 commit 30f48c0

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pandas/core/window/expanding.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,11 @@ def pipe(
285285
value in one pass, you can do
286286
287287
>>> df.expanding().pipe(lambda x: x.max() - x.min())
288-
A
289-
2012-08-02 0
290-
2012-08-03 1
291-
2012-08-04 2
292-
2012-08-05 3""",
288+
A
289+
2012-08-02 0.0
290+
2012-08-03 1.0
291+
2012-08-04 2.0
292+
2012-08-05 3.0""",
293293
)
294294
@Appender(template_pipe)
295295
def pipe(

pandas/core/window/rolling.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2112,11 +2112,11 @@ def pipe(
21122112
value in one pass, you can do
21132113
21142114
>>> df.rolling('2D').pipe(lambda x: x.max() - x.min())
2115-
A
2116-
2012-08-02 0
2117-
2012-08-03 1
2118-
2012-08-04 1
2119-
2012-08-05 1""",
2115+
A
2116+
2012-08-02 0.0
2117+
2012-08-03 1.0
2118+
2012-08-04 1.0
2119+
2012-08-05 1.0""",
21202120
)
21212121
@Appender(template_pipe)
21222122
def pipe(

0 commit comments

Comments
 (0)