Skip to content

Commit 9d1934a

Browse files
committed
DOC: Reword Series.interpolate docstring for clarity
1 parent db978c7 commit 9d1934a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/generic.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -6610,10 +6610,10 @@ def replace(self, to_replace=None, value=None, inplace=False, limit=None,
66106610
* 'pad': Fill in NaNs using existing values.
66116611
* 'nearest', 'zero', 'slinear', 'quadratic', 'cubic', 'spline',
66126612
'barycentric', 'polynomial': Passed to
6613-
`scipy.interpolate.interp1d`. Both 'polynomial' and 'spline'
6614-
require that you also specify an `order` (int),
6615-
e.g. ``df.interpolate(method='polynomial', order=5)``.
6616-
These use the numerical values of the index.
6613+
`scipy.interpolate.interp1d`. These methods use the numerical
6614+
values of the index. Both 'polynomial' and 'spline' require that
6615+
you also specify an `order` (int), e.g.
6616+
``df.interpolate(method='polynomial', order=5)``.
66176617
* 'krogh', 'piecewise_polynomial', 'spline', 'pchip', 'akima':
66186618
Wrappers around the SciPy interpolation methods of similar
66196619
names. See `Notes`.

0 commit comments

Comments
 (0)