gather_set_info#
- powerplantmatching.cleaning.gather_set_info(df, search_col=['Name', 'Fueltype', 'Technology'], config=None)#
Parses in a set of columns for distinct Set specifications.
This function uses the mappings (key -> regex pattern) given by the config under the section target_sets. The representative keys are set if any of the columns in search_col matches the regex pattern.
Parameter#
- dfpandas.DataFrame
DataFrame to be parsed.
- search_collist, default is [“Name”, “Fueltype”, “Technology”, “Set”]
Set of columns to be parsed. Must be in df.
- configdict, default None
Custom configuration, defaults to powerplantmatching.config.get_config().