shalom !
I want to fill the missing values of a pandas series with nan, in the series bellow the 6.0 is missing, how can i use that pandas series bellow to obtain an np.array or other series like without having to use a for look (i need to repeat this operation a lot of times, a loop will took too much time)
input :
1 2.0
2 3.0
3 4.0
4 5.0
5 7.0
6 8.0
7 9.0
return :
np.array([2.0,3.0,4.0,5.0,np.nan,7.0,8.0,9.0])
i recieved response with the wrong inputs (wrong index situation basically) so be careful with the index there.
thank you in advance
i know how to solve it with a loop, but it isn't what i am looking for here