Skip to content

Instantly share code, notes, and snippets.

@jj-github-jj
Created February 12, 2022 18:22
Show Gist options
  • Save jj-github-jj/ca0bfd716f681dc6ab5a19a399d1089a to your computer and use it in GitHub Desktop.
Save jj-github-jj/ca0bfd716f681dc6ab5a19a399d1089a to your computer and use it in GitHub Desktop.
interpolate function for one line interpolation
def y_interpolate (xnew,x,y):
from scipy.interpolate import interp1d
y_interpolate_function = interp1d(x, y)
return (y_interpolate_function(xnew))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment