Skip to content

recipe procedure: groupby #4

Closed
Closed
@semio

Description

@semio

Reason

Sometimes we want to group a datapoint by some of its domains and calculate a new datapoint. For example we have population for age 0, 1, 2, 3, ... 10 for each country and we want to calculate population_between_0_and_10. Then we need to have a procedure to group the datapoint by country/year and sum up all data.

API

groupby groups the data in a ingredient by a key/keys and return aggregated results as new ingredient.

groupby accepts following options:

  • by: the key/keys to group
  • aggregate: the function to calculate the result.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions