The Python Oracle

Determine mean value of ‘data’ where the highest number of CONTINUOUS cond=True

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: Flying Over Ancient Lands

--

Chapters
00:00 Question
01:08 Accepted answer (Score 2)
02:13 Answer 2 (Score 3)
04:17 Thank you

--

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

Answer 1 links:
[Calculating the number of specific consecutive equal values in a vectorized way in pandas]: https://stackoverflow.com/questions/2914...

--

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

--

Tags
#python #performance #pandas #numpy

#avk47