Skip to content

Commit 1d3b4a5

Browse files
nmusolinoWillAyd
authored andcommitted
DOC: Reword Series.interpolate docstring for clarity (#25491)
1 parent 1f8d7e0 commit 1d3b4a5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: pandas/core/generic.py

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

0 commit comments

Comments
 (0)