code: def rename_sectors(self, sectors):
          
  
          if type(sectors) is list:
              sectors = {old: new for old, new in
                         zip(self.get_sectors(), sectors)}
  
          for df in self.get_DataFrame(data=True):
              df.rename(index=sectors, columns=sectors, inplace=True)
  
          try:
              for ext in self.get_extensions(data=True):
                  for df in ext.get_DataFrame(data=True):
                      df.rename(index=sectors, columns=sectors, inplace=True)
          except:
              pass
          self.meta._add_modify("Changed sector names")
          return self
docs: Sets new names for the sectors
  
          Parameters
          ----------
          sectors : list or dict
              In case of dict: {'old_name' :  'new_name'} with an
                  entry for each old_name which should be renamed
              In case of list: List of new names in order and
                  complete without repetition