From 1d8b299185a2b8459294aa0d29a8e55abaa81584 Mon Sep 17 00:00:00 2001 From: Jeff Newman Date: Wed, 1 May 2024 23:44:24 -0500 Subject: [PATCH] ensure tour_type is categorical --- activitysim/abm/models/util/tour_frequency.py | 1 + 1 file changed, 1 insertion(+) diff --git a/activitysim/abm/models/util/tour_frequency.py b/activitysim/abm/models/util/tour_frequency.py index 048221d80..93c624b13 100644 --- a/activitysim/abm/models/util/tour_frequency.py +++ b/activitysim/abm/models/util/tour_frequency.py @@ -791,5 +791,6 @@ def create_joint_tours( tours["tour_type_num"] = tours["tour_type_num"].astype("int8") tours["tour_type_count"] = tours["tour_type_count"].astype("int8") tours["number_of_participants"] = tours["number_of_participants"].astype("int8") + tours["tour_type"] = tours["tour_type"].astype("category") return tours