def compute_range(travel_data, attr, travel_time_attr, dist, agg=np.sum):
    travel_data = travel_data.reset_index(level=1)
    travel_data = travel_data[travel_data[travel_time_attr] < dist]
    travel_data["attr"] = attr[travel_data.to_zone_id].values
    return travel_data.groupby(level=0).attr.apply(agg)
This function would grab the birthdate from the ID card number and test
dataset/ETHPy150Open UDST/urbansim/urbansim/utils/misc.py/compute_range--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/localflavor/cn/forms.py/CNIDCardField.has_valid_birthday