pymrio.IOSystem.extension_contains

IOSystem.extension_contains(find_all=None, extensions=None, **kwargs)

Get a dict of extension index dicts which contains a search pattern.

This calls the extension.contains for all extensions.

Similar to pandas str.contains, thus the index string must contain the regex pattern.

Note:

Arguments are set to case=True, flags=0, na=False, regex=True. For case insensitive matching, use (?i) at the beginning of the pattern.

See the pandas/python.re documentation for more details.

param find_all

If str (regex pattern) search in all index levels. All matching rows are returned. The remaining kwargs are ignored.

type find_all

None or str

param extensions

Which extensions to consider, default (None): all extensions

type extensions

str, list of str, list of extensions, None

param kwargs

The regex which should be contained. The keys are the index names, the values are the regex. If the entry is not in index name, it is ignored silently.

type kwargs

dict

returns

A dict with the extension names as keys and an Index/MultiIndex of the matched rows as values

rtype

dict