Skip to content

Commit 62a2359

Browse files
anishkarkianishkarki
authored andcommitted
CLN: Remove trailing whitespace in docstring and adding comment
1 parent 5da848b commit 62a2359

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7802,16 +7802,16 @@ def interpolate(
78027802
2 2.0 3.0 -3.0 9.0
78037803
3 2.0 4.0 -4.0 16.0
78047804
7805-
Using polynomial interpolation.
7805+
# Using polynomial interpolation.
78067806
78077807
>>> df["d"].interpolate(method="polynomial", order=2)
78087808
0 1.0
78097809
1 4.0
78107810
2 9.0
78117811
3 16.0
78127812
Name: d, dtype: float64
7813-
Using index method for linear interpolation
7814-
with non-sequential index.
7813+
# Using index method for linear interpolation with
7814+
# non-sequential index.
78157815
>>> data_non_seq = {"val": [1, np.nan, 3]}
78167816
>>> df_non_seq = pd.DataFrame(
78177817
... data, index=[0, 1, 6]

0 commit comments

Comments
 (0)