The Python Oracle

Pandas creating new column based on consecutive duplicates

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Over Ancient Waters Looping

--

Chapters
00:00 Pandas Creating New Column Based On Consecutive Duplicates
00:50 Accepted Answer Score 2
01:39 Answer 2 Score 2
01:54 Answer 3 Score 0
02:06 Thank you

--

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

--

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

--

Tags
#python #pandas #numpy #boolean #shift

#avk47