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.
**datatot = [...
[19250.0 768.27 20.35]
[19345.0 770.17 11.32]
[19433 0 0]
[19545 0 0]
[19679.0 777.25 14.95]
[19741.0 778.46 14.32]
[19822.0 780.8 19.01]
...]**
I tried to look into numpy.interp but I cant really make it work.
How could i set up this function?
Thank you