Concept Flow - transform() for group-level operations
Start with DataFrame
Group data by key
Apply transform function to each group
Function returns same size output per group
Combine transformed groups into new DataFrame
Result: DataFrame with transformed values, same shape as original
The transform() method groups data, applies a function to each group, and returns a result with the same shape as the original data.