-
-
Notifications
You must be signed in to change notification settings - Fork 312
Open
Labels
Description
Column aggregators should be usable in Python expression.
Take for instance this data I was working with
province | population |
---|---|
Québec | 9110616 |
Ontario | 16176977 |
Colombie-Britannique | 5719961 |
Alberta | 4980659 |
Manitoba | 1507330 |
Saskatchewan | 1253569 |
Nouvelle-Écosse | 1080418 |
Nouveau-Brunswick | 859839 |
Terre-Neuve-Labrador | 545464 |
Ile-du-prince-Édouard | 180029 |
I would like to be able to add a sum
on population, then be able to add a new column with the expression =population / population_sum
to get the ratio from each province. Right now I have to hard code the sum in my expression.
Or maybe have an aggregator object, where I could get the value at aggregators.sum.population
?