aggregate_units

aggregate_units#

powerplantmatching.cleaning.aggregate_units(df, dataset_name=None, pre_clean_name=False, country_wise=True, config=None, **kwargs)#

Vertical cleaning of the database. Cleans the “Name”-column, sums up the capacity of powerplant units which are determined to belong to the same plant.

Parameters:
  • df (pandas.Dataframe or string) – Dataframe or name to use for the resulting database

  • dataset_name (str, default None) – Specify the name of your df, required if use_saved_aggregation is set to True.

  • pre_clean_name (Boolean, default True) – Whether to clean the ‘Name’-column before aggregating.

  • country_wise (Boolean, default True) – Whether to aggregate only entries with a identical country.