Introduction
We change data from wide to long format to make it easier to analyze and visualize. Long format stacks related data into fewer columns, which many tools prefer.
You have survey data with one column per question and want one row per answer.
You want to plot time series data where each time point is a separate column.
You need to prepare data for statistical tests that require long format.
You want to group and summarize data by categories stored in column names.