def get_previous_tour_by_tourid(current_tour_person_ids,
                                previous_tour_by_personid,
                                alts):
    previous_tour_by_tourid = \
        previous_tour_by_personid.loc[current_tour_person_ids]

    previous_tour_by_tourid = alts.loc[previous_tour_by_tourid]

    previous_tour_by_tourid.index = current_tour_person_ids.index
    previous_tour_by_tourid.columns = [x+'_previous' for x in
                                       previous_tour_by_tourid.columns]

    return previous_tour_by_tourid
Modify FIPS code to match GeoJSON property
dataset/ETHPy150Open UDST/activitysim/activitysim/defaults/models/util/vectorize_tour_scheduling.py/get_previous_tour_by_tourid--crossover with--dataset/ETHPy150Open python-visualization/folium/examples/choropleth_counties.py/set_id