Skip to content

Commit e309b84

Browse files
authored
ensure tour_type is categorical (#863)
1 parent 50c05c5 commit e309b84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activitysim/abm/models/util/tour_frequency.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -791,5 +791,6 @@ def create_joint_tours(
791791
tours["tour_type_num"] = tours["tour_type_num"].astype("int8")
792792
tours["tour_type_count"] = tours["tour_type_count"].astype("int8")
793793
tours["number_of_participants"] = tours["number_of_participants"].astype("int8")
794+
tours["tour_type"] = tours["tour_type"].astype("category")
794795

795796
return tours

0 commit comments

Comments
 (0)