Introduction
We use groupby with transform to normalize data within groups. This helps compare values fairly inside each group.
You want to scale test scores within each class to see who did better compared to classmates.
You have sales data by region and want to compare sales performance normalized by each region's average.
You want to adjust employee salaries by department to see who earns more or less than their department average.