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):