Back to search

What does explode do in pandas?

`explode` turns each item in a list-like cell into its own row while repeating the other column values.

Pandas Easy Theory

What does explode do in pandas?

`explode` turns each item in a list-like cell into its own row while repeating the other column values.

  • List-like values become multiple rows
  • Other columns repeat
  • Useful before groupby or joins

What does explode do in pandas?