Skip to content

Commit

Permalink
rollback num_escortees fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Mar 6, 2024
1 parent de2242c commit 96ba369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext-configs/trip_mode_choice_annotate_trips_preprocessor.csv
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Description,Target,Expression
,tour_mode_is_drive_transit,i_tour_mode.isin(I_DRIVE_TRANSIT_MODES)
,tour_mode_is_ride_hail,i_tour_mode.isin(I_RIDE_HAIL_MODES)
#,,
,selected_tour_vehicle,"pd.Series(reindex(tours.selected_vehicle, df.tour_id), index=df.index, dtype=tours.selected_vehicle.dtype)"
,selected_tour_vehicle,"reindex(tours.selected_vehicle, df.tour_id)"
,auto_op_cost,"reindex(vehicles.groupby('vehicle_type')['auto_operating_cost'].mean(), pd.Series(selected_tour_vehicle, df.index))"
,auto_op_cost,"np.where(pd.isna(auto_op_cost), costPerMile, auto_op_cost)"
,inbound,~df.outbound
Expand Down Expand Up @@ -92,4 +92,4 @@ dest terminal time not counted at home,_dest_terminal_time,"np.where(inbound & l
#,dist_bike,od_skims['DISTBIKE']
#,dist_only,od_skims['DIST']
# added for school escorting model,,
Number of school children in vehicle on trip,num_escortees,df.escort_participants.fillna('').apply(lambda x: len(x.split('_')) if len(x)>0 else 0)
Number of school children in vehicle on trip,num_escortees,df.escort_participants.fillna('').apply(lambda x: len(x.split('_')))

0 comments on commit 96ba369

Please sign in to comment.