Skip to content

Commit 5a4d60f

Browse files
Merge pull request #10418 from carpevitam/master
improve documentation for pandas.Series.interpolate
2 parents ff163a8 + a209fe4 commit 5a4d60f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pandas/core/generic.py

+7-4
Original file line numberDiff line numberDiff line change
@@ -2897,18 +2897,21 @@ def interpolate(self, method='linear', axis=0, limit=None, inplace=False,
28972897
'polynomial', 'spline' 'piecewise_polynomial', 'pchip'}
28982898
28992899
* 'linear': ignore the index and treat the values as equally
2900-
spaced. default
2900+
spaced. This is the only method supported on MultiIndexes.
2901+
default
29012902
* 'time': interpolation works on daily and higher resolution
29022903
data to interpolate given length of interval
29032904
* 'index', 'values': use the actual numerical values of the index
29042905
* 'nearest', 'zero', 'slinear', 'quadratic', 'cubic',
29052906
'barycentric', 'polynomial' is passed to
2906-
`scipy.interpolate.interp1d` with the order given both
2907+
`scipy.interpolate.interp1d` with the order given. Both
29072908
'polynomial' and 'spline' requre that you also specify and order
2908-
(int) e.g. df.interpolate(method='polynomial', order=4)
2909+
(int) e.g. df.interpolate(method='polynomial', order=4). These
2910+
use the actual numerical values of the index
29092911
* 'krogh', 'piecewise_polynomial', 'spline', and 'pchip' are all
29102912
wrappers around the scipy interpolation methods of similar
2911-
names. See the scipy documentation for more on their behavior:
2913+
names. These use the actual numerical values of the index. See
2914+
the scipy documentation for more on their behavior:
29122915
http://docs.scipy.org/doc/scipy/reference/interpolate.html#univariate-interpolation
29132916
http://docs.scipy.org/doc/scipy/reference/tutorial/interpolate.html
29142917

0 commit comments

Comments
 (0)