From e309b849409e9ec391dec885dbbb6f962ac31303 Mon Sep 17 00:00:00 2001 From: Jeffrey Newman Date: Thu, 2 May 2024 11:52:49 -0500 Subject: [PATCH] ensure tour_type is categorical (#863) --- 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