Skip to content

Commit 9ca05ca

Browse files
committed
fix num_escortees bug
1 parent e72dbc5 commit 9ca05ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext-configs/trip_mode_choice_annotate_trips_preprocessor.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,4 @@ dest terminal time not counted at home,_dest_terminal_time,"np.where(inbound & l
9292
#,dist_bike,od_skims['DISTBIKE']
9393
#,dist_only,od_skims['DIST']
9494
# added for school escorting model,,
95-
Number of school children in vehicle on trip,num_escortees,df.escort_participants.fillna('').apply(lambda x: len(x.split('_')))
95+
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)

0 commit comments

Comments
 (0)