Skip to content
masterclass Buddy

SciPy · Function

interpolate.interp1d

interp1d creates a callable object that estimates values between one-dimensional sample points. It supports several interpolation methods and optional handling of points outside the sample range.

Last updated

Since
0.17.0

Syntax

scipy.interpolate.interp1d(x, y, kind='linear', axis=-1, copy=True, bounds_error=None, fill_value=np.nan, assume_sorted=False)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • splrep
  • splev
  • UnivariateSpline
  • interp2d

Source: interp1d — SciPy v1.18.0 Manual. Checked 2026-11-03.