Skip to content

Commit 55cf532

Browse files
committed
Pandas 3 Support. Allow new str dtype for exogenous.
1 parent bc1ebea commit 55cf532

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyaf/TS/Exogenous.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ def updateExogenousVariableInfo(self):
210210
lEstimFrame = lEstimFrame[lEstimFrame[self.mDateVariable] <= lTimeMax]
211211
for exog in self.mExogenousVariables:
212212
lType = self.mExogenousDataFrame[exog].dtype
213-
# tsutil.print_pyaf_detailed_info("EXOG_DTYPE" , exog, lType)
214-
if((lType == object) or (lType.name == 'category')):
213+
# tsutil.print_pyaf_detailed_info("EXOG_DTYPE" , exog, lType.name , lType)
214+
if((lType == object) or (lType == "str") or (lType.name == 'category')):
215215
self.updateExogenousVariableInfo_Categorical(exog, lEstimFrame[exog])
216216
else:
217217
self.updateExogenousVariableInfo_Continuous(exog, lEstimFrame[exog])

0 commit comments

Comments
 (0)