mario.Database.read_aggregated_index#

Database.read_aggregated_index(io, levels='all', ignore_nan=False)#

Load aggregation mappings without applying them yet.

Parameters:
  • io – Either the path to an aggregation workbook or a {level: dataframe} mapping shaped like that workbook.

  • levels – One classification level, an iterable of levels, or "all" to read every aggregable level for the current table type.

  • ignore_nan – When True, missing aggregation targets are interpreted as identity mappings for those labels.

Returns:

Aggregation mappings are stored on self._indeces under the "aggregated" level.

Return type:

None