code: def peak_generation_per_technology(self):
          
          peak_generation = defaultdict(float)
          for gen in self.generators:
              peak_generation[gen.type] += gen.nominal_capacity
  
          return pd.Series(peak_generation)
docs: Peak generation of each technology in the grid
  
          Returns
          -------
          :pandas:`pandas.Series<series>`
              Peak generation index by technology