What does the melt() function in pandas do?

Data Science with Python Medium

Data Science with Python — Medium

What does the melt() function in pandas do?

Key points

  • melt() function converts wide to long format
  • Unpivots columns into rows
  • Facilitates data analysis and visualization

Ready to go further?

Related questions