You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/anaconda3/envs/time/lib/python3.7/site-packages/giottotime/causality_tests/shifted_pearson_correlation.py in transform(self, data)
119 for col in data_t:
120 if col != self.target_col:
--> 121 data_t[col] = data_t[col].shift(self.best_shifts_[col][self.target_col])
122
123 if self.dropna:
Description
Error is thrown when using ShiftedPearsonCorrelation and a time series (i.e. a column in the data frame) is constant.
Steps/Code to Reproduce
This is the example as shown in the documentation with an additional column 'E' which is constant.
Expected Results
No error is thrown.
Actual Results
Versions
Darwin-18.7.0-x86_64-i386-64bit
Python 3.7.5 (default, Oct 25 2019, 10:52:18)
[Clang 4.0.1 (tags/RELEASE_401/final)]
NumPy 1.18.0
SciPy 1.4.1
joblib 0.14.1
Scikit-Learn 0.22
giotto-Learn 0.1.3
giotto-time 0.1.0
The text was updated successfully, but these errors were encountered: