Question 27 of 93 · New Columns
HelpCategorize with when/then/otherwise
Add a "size_category" column: "large" if weight_lbs > 30, "medium" if weight_lbs > 10, otherwise "small". Use `pl.when(...).then(...).when(...).then(...).otherwise(...)`.
Question 27 of 93 · New Columns
HelpAdd a "size_category" column: "large" if weight_lbs > 30, "medium" if weight_lbs > 10, otherwise "small". Use `pl.when(...).then(...).when(...).then(...).otherwise(...)`.