Skip to content
Snippets Groups Projects
Commit 4727eb27 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

removed implementation leftover from flag grubbs

parent 9ff84d96
No related branches found
No related tags found
2 merge requests!193Release 1.4,!188Release 1.4
Pipeline #5349 passed with stage
in 6 minutes and 24 seconds
......@@ -196,7 +196,7 @@ def flagManual(data, field, flagger, mdata, mflag: Any = 1, method='plain', **kw
It also determine the column in mdata if its of type pd.Dataframe or dios.DictOfSeries.
flagger : flagger
range_dict.keys()
mdata : {pd.Series, pd.Dataframe, DictOfSeries, str}
The manual data
......
......@@ -742,7 +742,5 @@ def spikes_flagGrubbs(data, field, flagger, winsz, alpha=0.05, min_periods=8, **
if partition.shape[0] > min_periods:
to_flag = smirnov_grubbs.two_sided_test_indices(partition['data'].values, alpha=alpha)
to_flag = partition['ts'].iloc[to_flag]
if not to_flag.empty:
print(to_flag)
flagger = flagger.setFlags(field, loc=to_flag, **kwargs)
return data, flagger
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment