config_filter#
- powerplantmatching.utils.config_filter(df, config)#
Convenience function to filter data source according to the config.yaml file. Individual query filters are applied if argument ‘name’ is given.
- Parameters:
df (pd.DataFrame) – Data to be filtered
name (str, default None) – Name of the data source to identify query in the config.yaml file
config (dict, default None) – Configuration overrides varying from the config.yaml file