How to determine the electronegativity of a material using pymatgen?

Can someone please help me with the steps to determine if a material is ionic based on its electronegativity? Using pymatgen