From 60e220c4312ced63de1354b607a365484c8a74e3 Mon Sep 17 00:00:00 2001 From: Antoine CARME Date: Sat, 19 Mar 2022 16:43:17 +0100 Subject: [PATCH] Internal Datframes index refactoring #190 --- pyaf/TS/Exogenous.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyaf/TS/Exogenous.py b/pyaf/TS/Exogenous.py index dd22feb80..89fd0e006 100644 --- a/pyaf/TS/Exogenous.py +++ b/pyaf/TS/Exogenous.py @@ -91,9 +91,9 @@ def transformDataset(self, df): return df1; def createEncodedExogenous(self): - self.mExogDummiesDataFrame = pd.DataFrame(); + self.mExogDummiesDataFrame = pd.DataFrame(index = self.mExogenousDataFrame.index); self.mEncodedExogenous = []; - self.mEncodedExogenousDataFrame = pd.DataFrame(); + self.mEncodedExogenousDataFrame = pd.DataFrame(index = self.mExogenousDataFrame.index); self.mEncodedExogenousDataFrame[self.mDateVariable] = self.mExogenousDataFrame[self.mDateVariable]; for exog in self.mExogenousVariables: if(exog not in self.mExcluded):