pymrio.IOSystem.get_index

IOSystem.get_index(as_dict=False, grouping_pattern=None)

Returns the index of the DataFrames in the system

Parameters:
  • as_dict (boolean, optional) – If True, returns a 1:1 key-value matching for further processing prior to groupby functions. Otherwise (default) the index is returned as pandas index.
  • grouping_pattern (dict, optional) – Dictionary with keys being regex patterns matching index and values the name for the grouping. If the index is a pandas multiindex, the keys must be tuples of length levels in the multiindex, with a valid regex expression at each position. Otherwise, the keys need to be strings. Only relevant if as_dict is True.