Skip to content

Commit fbddfeb

Browse files
committed
Update docstring
1 parent b7012c3 commit fbddfeb

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: pandas/core/resample.py

+11-11
Original file line numberDiff line numberDiff line change
@@ -897,17 +897,17 @@ def interpolate(
897897
to non-aligned timestamps, as in the following example:
898898
899899
>>> series.resample("400ms").interpolate("linear")
900-
2023-03-01 07:00:00.000 1.0
901-
2023-03-01 07:00:00.400 0.2
902-
2023-03-01 07:00:00.800 -0.6
903-
2023-03-01 07:00:01.200 -0.4
904-
2023-03-01 07:00:01.600 0.8
905-
2023-03-01 07:00:02.000 2.0
906-
2023-03-01 07:00:02.400 1.6
907-
2023-03-01 07:00:02.800 1.2
908-
2023-03-01 07:00:03.200 1.4
909-
2023-03-01 07:00:03.600 2.2
910-
2023-03-01 07:00:04.000 3.0
900+
2023-03-01 07:00:00.000 1.000000
901+
2023-03-01 07:00:00.400 0.333333
902+
2023-03-01 07:00:00.800 -0.333333
903+
2023-03-01 07:00:01.200 0.000000
904+
2023-03-01 07:00:01.600 1.000000
905+
2023-03-01 07:00:02.000 2.000000
906+
2023-03-01 07:00:02.400 1.666667
907+
2023-03-01 07:00:02.800 1.333333
908+
2023-03-01 07:00:03.200 1.666667
909+
2023-03-01 07:00:03.600 2.333333
910+
2023-03-01 07:00:04.000 3.000000
911911
Freq: 400ms, dtype: float64
912912
913913
Note that the series correctly decreases between two anchors

0 commit comments

Comments
 (0)