Skip to content

Enable using a column’s aggregator in Python expressions #2862

@daniel-g-gagnon

Description

@daniel-g-gagnon

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions