2 ms·
You can supply a map to agg, something like {col1:'sum', col2: 'mean',...}
by theghostofjr 9y ago
You can supply a map to agg, something like {col1:'sum', col2: 'mean',...}
- closed 9y agoYes, but it is still applying that function to a single column (the summarise example I gave could aggregate multiple columns into a single result, e.g. sum(col1 / col2))