Element partial Density of states

#1

Hello all,

first, I use this code to get total dos with respect to mp id.

import numpy as np
from pymatgen.ext.matproj import MPRester
mpr = MPRester()
dos = mpr.get_dos_by_material_id(“mp-134”)
total_density = sum(dos.densities.values())

using this code, I can get energy versus DOS data.
but I do not know, how should I get element partial dos with respect to mp id.
for example, in case of binary compounds(ternary, Quaternary and so on) ,
E Si O
-10 0.0 0.0
-9.8 0.8 0.3

Thank you in advance for your help!