Data UrchinData Urchin

Question 80 of 93 · Reshaping (Pivot & Unpivot)

Help

Unpivot to long format

Unpivot (melt) the weight/height/length columns into a long measurement/value format, keeping pet_id and pet_name as identifiers. Use `.unpivot(index_cols, on_cols, "variable_name", "value_name")`.