I’m not 100% sure what you’re looking for. You could, for example, use a bader analysis of the CHGCAR at the end of a calculation, but that’s not currently available via the API. You could also use the bond valence analyzer in pymatgen to get an estimate of the electron occupancy. Something like this:
from pymatgen.analysis.bond_valence import BVAnalyzer
bv = BVAnalyzer()
print(bv.get_valences(data[0]))