Calculate weighted average over all targets using pandas.