So I have a data column "trainData
" that looks like:
[
Nan
Nan
Nan
110
NaN
89
Nan
Nan
123
and so on
]
I basically need to interpolate this so as to get a final matrix column as :
[
0
36.6
73.2
110
99.5
89
101.3
112.6
123
and so on
]
Can anyone help me how to do so?
I tried doing interpl(traindata)
but that either gives me some weird row of NaN's or doesn't work. Please help me out with this.