The Python Oracle

Split (explode) pandas dataframe string entry to separate rows

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: Puzzle Game 5 Looping

--

Chapters
00:00 Question
01:23 Accepted answer (Score 104)
01:43 Answer 2 (Score 230)
06:26 Answer 3 (Score 143)
07:05 Answer 4 (Score 138)
09:48 Thank you

--

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

Answer 1 links:
[Series.explode()]: https://pandas.pydata.org/docs/reference...
[@AFinkelstein solution]: https://stackoverflow.com/a/28182629/574...

Answer 3 links:
[.explode()]: https://pandas.pydata.org/pandas-docs/st...
[Exploding a list-like column]: https://pandas.pydata.org/pandas-docs/st...

--

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

--

Tags
#python #pandas #numpy #dataframe

#avk47