The Python Oracle

How to get (fast) first non-Nan daily value of a DataFrame while keeping the shape and index?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Switch On Looping

--

Chapters
00:00 Question
01:10 Accepted answer (Score 2)
03:01 Answer 2 (Score 1)
03:42 Thank you

--

Full question
https://stackoverflow.com/questions/6809...

Answer 1 links:
[df.where]: https://pandas.pydata.org/docs/reference...
[pd.Series.first_valid_idnex]: https://pandas.pydata.org/docs/reference...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #pandas #dataframe

#avk47