def renorm_series(series, new_min, new_max):
    """Normalize series in a given range"""
    old_min = series.min()
    old_max = series.max()
    delta1 = old_max - old_min
    delta2 = new_max - new_min
    series = series.map(lambda n: new_min + (delta2 * (n - old_min) / delta1))
    return series