Skip to content

Commit 5da848b

Browse files
anishkarkianishkarki
authored andcommitted
Refactor: Added Example for non-sequential dataframe at the end of docstring
1 parent c80d9bf commit 5da848b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7801,6 +7801,7 @@ def interpolate(
78017801
1 1.0 2.0 -2.0 5.0
78027802
2 2.0 3.0 -3.0 9.0
78037803
3 2.0 4.0 -4.0 16.0
7804+
78047805
Using polynomial interpolation.
78057806
78067807
>>> df["d"].interpolate(method="polynomial", order=2)
@@ -7809,7 +7810,6 @@ def interpolate(
78097810
2 9.0
78107811
3 16.0
78117812
Name: d, dtype: float64
7812-
78137813
Using index method for linear interpolation
78147814
with non-sequential index.
78157815
>>> data_non_seq = {"val": [1, np.nan, 3]}

0 commit comments

Comments
 (0)