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 5da848b commit 62a2359Copy full SHA for 62a2359
pandas/core/generic.py
@@ -7802,16 +7802,16 @@ def interpolate(
7802
2 2.0 3.0 -3.0 9.0
7803
3 2.0 4.0 -4.0 16.0
7804
7805
- Using polynomial interpolation.
+ # Using polynomial interpolation.
7806
7807
>>> df["d"].interpolate(method="polynomial", order=2)
7808
0 1.0
7809
1 4.0
7810
2 9.0
7811
3 16.0
7812
Name: d, dtype: float64
7813
- Using index method for linear interpolation
7814
- with non-sequential index.
+ # Using index method for linear interpolation with
+ # non-sequential index.
7815
>>> data_non_seq = {"val": [1, np.nan, 3]}
7816
>>> df_non_seq = pd.DataFrame(
7817
... data, index=[0, 1, 6]
0 commit comments