Skip to content
masterclass Buddy

NumPy · Function

np.interp

numpy.interp calculates one-dimensional piecewise linear values from sample points. It supports endpoint defaults, custom outside-range values, and periodic coordinates.

Last updated

Syntax

numpy.interp(x, xp, fp, left=None, right=None, period=None)

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

Subscribe
  • scipy.interpolate

Source: numpy.interp — NumPy v2.5 Manual. Checked 2026-11-03.