def estimate_phones(x):
    """
    Allocate consumption category given a specific luminosity.

    """
    if x['mean_luminosity_km2'] > 5:
        return 10
    elif x['mean_luminosity_km2'] > 1:
        return 5
    else:
        return 1