hestia_earth.aggregation.aggregate

hestia_earth.aggregation.aggregate(type, country, product, start_year, end_year, source)[source]

Aggregates data from Hestia. Produced data will be aggregated by product, country and year.

Parameters
  • type (NodeType) – The type of Node to aggregate. Can be either: NodeType.IMPACTASSESSMENT, NodeType.CYCLE.

  • country (dict) – The country to group the data.

  • product (dict) – The product to group the data.

  • start_year (int) – The start year of the data.

  • end_year (int) – The end year of the data.

  • source (dict) – Optional - the source of the generate data. Will be set to Hestia if not provided.

Returns

A list of aggregations. Example: [<impact_assesment1>, <impact_assesment2>, <cycle1>, <cycle2>]

Return type

list