pymrio.IOSystem.find
- IOSystem.find(term)
Looks for term in index, sectors, regions, Y_categories
Mostly useful for a quick check if entry is present.
Internally that uses pd.str.contains as implemented in ioutil.index_contains
For a multiindex, all levels of the multiindex are searched.
- Parameters
term (string) – String to search for
- Returns
With keys ‘index’, ‘region’, ‘sector’, ‘Y_category’ and values the found index entries. Empty keys are ommited. The values can be used directly on one of the DataFrames with .loc
- Return type
dict of (multi)index