Wide to Long with melt

A wide table keeps one kind of value in many columns, a column per quiz, which reads well but is hard to filter and group, and melt turns it into a long table with one row per value, named with id_vars, var_name and value_name, the shape textbooks call tidy data.

By

Updated

Cheat sheet: Wide to Long with melt
Category
Data Analysis
Level
Journeyman
Tags
Long Format, melt(), python, Tidy Data, Wide Format