1
0
Fork 0

Estimation Bugfix

master
Pietro 4 years ago
parent 8dfabb72c4
commit 1e3431ef76
  1. 2
      PyCTBN/PyCTBN/utility/abstract_importer.py

@ -78,7 +78,7 @@ class AbstractImporter(ABC):
Header of sample_frame = [Time | Variable values] Header of sample_frame = [Time | Variable values]
""" """
sample_frame = copy.deepcopy(sample_frame) 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 = sample_frame[columns_header].shift(-1).fillna(0).astype('int32')
shifted_cols.columns = shifted_cols_header shifted_cols.columns = shifted_cols_header
sample_frame = sample_frame.assign(**shifted_cols) sample_frame = sample_frame.assign(**shifted_cols)