@@ -897,17 +897,17 @@ def interpolate(
897
897
to non-aligned timestamps, as in the following example:
898
898
899
899
>>> 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
911
911
Freq: 400ms, dtype: float64
912
912
913
913
Note that the series correctly decreases between two anchors
0 commit comments