From 791b1ccf1a9aa42415e5837dcddf4fbf43622925 Mon Sep 17 00:00:00 2001 From: Sean Wallace Date: Wed, 30 Aug 2023 15:54:22 -0400 Subject: [PATCH] Get rid of pandas warning --- choicemodels/tools/simulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/choicemodels/tools/simulation.py b/choicemodels/tools/simulation.py index 3040167..1652ed3 100644 --- a/choicemodels/tools/simulation.py +++ b/choicemodels/tools/simulation.py @@ -176,7 +176,7 @@ def iterative_lottery_choices( capacity, size = (alt_capacity, chooser_size) len_choosers = len(choosers) - valid_choices = pd.Series() + valid_choices = pd.Series(dtype='float64') iter = 0 while (len(valid_choices) < len_choosers):