code: def select_profile(self, index):
          
          new_profile = self.profile_combo.itemText(index)
          self.resources_list.clear()
          self.minimum_needs.load_profile(new_profile)
          self.clear_resource_list()
          self.populate_resource_list()
          self.minimum_needs.save()
docs: Select a given profile by index.
  
          Slot for when profile is selected.
  
          :param index: The selected item's index
          :type index: int