I want to interpolate a value at y=60, the output I'm expecting should something in the region of 0.27
My code:
x = [4.75, 2.00, 0.850, 0.425, 0.250, 0.180, 0.150, 0.075]
y = [100, 94.5, 86.3, 74.1, 54.9, 38.1, 9.3, 1.7]
x.sort()
xi = np.interp(60, y, x)
Output:
4.75
Expected output:
0.27