diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 58f8aa3..7de4edc 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,10 +3,7 @@ - - - - + diff --git a/imputegap/contamination/contamination.py b/imputegap/contamination/contamination.py index 66a68cb..f581cab 100644 --- a/imputegap/contamination/contamination.py +++ b/imputegap/contamination/contamination.py @@ -145,7 +145,7 @@ def scenario_missing_percentage(ts, series_impacted=0.2, missing_rate=0.2, prote W = int((N - P) * missing_rate) # number of data to remove for to_remove in range(0, W): - index = P + to_remove - ts_contaminated.iat[series, index] = np.nan + I = P + to_remove + ts_contaminated[S, I] = np.nan return ts_contaminated