yt.units.unit_object.Unit.as_coeff_Add

Unit.as_coeff_Add()

Efficiently extract the coefficient of a summation.