message_ix_models.model.material.demand.read_pop_from_scen

message_ix_models.model.material.demand.read_pop_from_scen(scen: Scenario) DataFrame[source]

Extract population data from a MESSAGEix scenario.

Filters the data to include only years from 2020 onwards and renames columns.

Parameters:

scen ("Scenario") – The MESSAGEix scenario containing population data.

Returns:

A DataFrame containing population data with the following columns: - region: Region name. - year: Year of the data. - pop.mil: Population in millions.

Return type:

pd.DataFrame