The Python Oracle

Pandas split dataframe into multiple when condition is 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: Music Box Puzzles

--

Chapters
00:00 Question
01:05 Accepted answer (Score 5)
01:37 Answer 2 (Score 5)
02:21 Answer 3 (Score 3)
02:40 Thank you

--

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

Accepted answer links:
[consecutive_groups]: http://more-itertools.readthedocs.io/en/...
[more_itertools]: http://more-itertools.readthedocs.io/en/...

Answer 2 links:
[cumsum]: http://pandas.pydata.org/pandas-docs/sta...
[where]: http://pandas.pydata.org/pandas-docs/sta...

--

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

--

Tags
#python #python3x #pandas #split

#avk47