We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8b2b66 commit 78b1893Copy full SHA for 78b1893
pandas/core/generic.py
@@ -7817,11 +7817,11 @@ def interpolate(
7817
0 1.0
7818
1 2.0
7819
6 3.0
7820
- >>> df.interpolate(method="index")
7821
- val
7822
- 0 1.000000
7823
- 1 1.333333
7824
- 6 3.000000
+ >>> df.interpolate(method="index").round(1)
+ val
+ 0 1.0
+ 1 1.3
+ 6 3.0
7825
Using polynomial interpolation.
7826
7827
>>> df["d"].interpolate(method="polynomial", order=2)
0 commit comments