0

I'm trying to identify all the y-axis values when my data passes through zero on the x-axis. Using scipy's interpolation function it only shows me the last value, why? or Can anyone help me to deal with this issue?

This is my code:

x = <https://drive.google.com/file/d/1shJtrg9orwLFm9Da5wXaysbQZVtZYO-r/view?usp=share_link>

y = np.arange(0,150,1)

y_interp = interp1d(x, y, kind='cubic')

y_interp(0)

The result is:

array(112.72889837)

But it also passes by ~50.

0 Answers0