P51PandasBeginnerImplement10 min
Implement a Reshape From Wide Experiment Results to Long Format
Convert variant columns into a tidy experiment-results table.
#implement#melt#reshape
Scenario
Results contain week, control_conversion, variant_a_conversion, and variant_b_conversion. A plotting function expects variant and conversion columns.
Problem statement
Write the reshape operation.
Your Task
- Keep week as an identifier.
- Create variant and conversion columns.
- Explain why the output is easier to compare.
Related Concepts
pandas meltTidy dataExperiments
Ready to count this problem?
Mark it complete when you have reasoned through the solution in your own words.