lookup

Contents

lookup#

powerplantmatching.utils.lookup(df, keys=None, by='Country, Fueltype', exclude=None, unit='MW')#

Returns a lookup table of the dataframe df with rounded numbers. Use different lookups as “Country”, “Fueltype” for the different lookups.

Parameters:
  • df (pandas.Dataframe or list of pandas.Dataframe's) – powerplant databases to be analysed. If multiple dataframes are passed the lookup table will display them in a MulitIndex

  • by (string out of 'Country, Fueltype', 'Country' or 'Fueltype') – Define the type of lookup table you want to obtain.

  • keys (list of strings) – labels of the different datasets, only necessary if multiple dataframes passed

  • exclude (list) – list of fueltype to exclude from the analysis