Extract the x value corresponding to a given y
Given some data I have in a daraframe, I am trying to extract the x value for a given y value (where y is not necessarily present in the data), using np.interp as I have seen in many other posts (and as I used to do in MATLAB). The problem is that I am not able to make it work.
Interpolation on a 2D Numpy array along one axis
I have a 2D array in the shape of (273, 3). Some of this values are 0 and I need to replace the zeros with a value interpolated along side the vertical axis.