code: def valences(self):
          
          el = [site.species_string for site in self._structure.sites]
          valence_dict = dict(zip(el, self._valences))
          return valence_dict
docs: List of oxidation states of elements in the order of sites.