From 0198e2d8cc41d53305d045691e345202bb99d8b0 Mon Sep 17 00:00:00 2001 From: Sijia Wang Date: Sun, 5 May 2024 15:52:34 -0400 Subject: [PATCH] joint tour freq composition column --- activitysim/abm/models/joint_tour_frequency_composition.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/activitysim/abm/models/joint_tour_frequency_composition.py b/activitysim/abm/models/joint_tour_frequency_composition.py index f3e4a7df8..64d4c72b4 100644 --- a/activitysim/abm/models/joint_tour_frequency_composition.py +++ b/activitysim/abm/models/joint_tour_frequency_composition.py @@ -192,6 +192,9 @@ def joint_tour_frequency_composition( households_merged["joint_tour_frequency_composition"] = ( choices.reindex(households_merged.index).fillna(no_tours_alt).astype(str) ) + households_merged["joint_tour_frequency_composition"] = households_merged[ + "joint_tour_frequency_composition" + ].astype("category") households_merged["num_hh_joint_tours"] = ( joint_tours.groupby("household_id")