message_ix_models.tools.iea.web.load_data

message_ix_models.tools.iea.web.load_data(provider: str, edition: str, query_expr="MEASURE == 'TJ' and TIME >= 1980", path: Path | None = None) DataFrame[source]

Load data from the IEA World Energy Balances.

Parameters:
  • provider (str) – First entry in FILES.

  • edition (str) – Second entry in FILES.

  • query_expr (str, optional) – Used with pandas.DataFrame.query() to reduce the returned data.

  • base_path (os.Pathlike, optional) – Path containing FILES. If not provided, locations within message_data or message_ix_models are used.

Returns:

The data frame has one column for each of DIMS, plus “Value”.

Return type:

pandas.DataFrame