set_uncommon_fueltypes_to_other

set_uncommon_fueltypes_to_other#

powerplantmatching.utils.set_uncommon_fueltypes_to_other(df, fillna_other=True, config=None, **kwargs)#

Replace uncommon fueltype specifications as by ‘Other’. This helps to compare datasources with Capacity statistics given by powerplantmatching.data.Capacity_stats().

Parameters:
  • df (pd.DataFrame) – DataFrame to replace ‘Fueltype’ argument

  • fillna_other (Boolean, default True) – Whether to replace NaN values in ‘Fueltype’ with ‘Other’

  • fueltypes (list) – list of replaced fueltypes, defaults to [‘Bioenergy’, ‘Geothermal’, ‘Mixed fuel types’, ‘Electro-mechanical’, ‘Hydrogen Storage’]