Data UrchinData Urchin

Question 78 of 93 · Window Functions

Help

Combine .over() with arithmetic

Add a "weight_vs_species_avg" column showing how far each pet's weight is from its species' average weight. Subtract a `.over("species")` broadcast from the raw column, inside one expression.