def weighted_avg(data, numeric_cols, weight):
    """
    Computes weighted average for specificied columns
    """
    sumprod = data[numeric_cols].multiply(data[weight], axis=0).sum()
    return sumprod / data[weight].sum()
