From 1e3431ef762420f8e7f50cfef0b0747d1e500b00 Mon Sep 17 00:00:00 2001 From: Pietro Date: Sat, 1 May 2021 17:37:47 +0200 Subject: [PATCH] Estimation Bugfix --- PyCTBN/PyCTBN/utility/abstract_importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PyCTBN/PyCTBN/utility/abstract_importer.py b/PyCTBN/PyCTBN/utility/abstract_importer.py index 0b03cd3..8984b4d 100644 --- a/PyCTBN/PyCTBN/utility/abstract_importer.py +++ b/PyCTBN/PyCTBN/utility/abstract_importer.py @@ -78,7 +78,7 @@ class AbstractImporter(ABC): Header of sample_frame = [Time | Variable values] """ sample_frame = copy.deepcopy(sample_frame) - #sample_frame.iloc[:, 0] = sample_frame.iloc[:, 0].diff().shift(-1) + sample_frame.iloc[:, 0] = sample_frame.iloc[:, 0].diff().shift(-1) shifted_cols = sample_frame[columns_header].shift(-1).fillna(0).astype('int32') shifted_cols.columns = shifted_cols_header sample_frame = sample_frame.assign(**shifted_cols)