From 1cdd3bdf82c5e2892c562f9b9a4fc78de53501bb Mon Sep 17 00:00:00 2001 From: Shing Chan Date: Fri, 3 May 2024 18:41:59 +0100 Subject: [PATCH] fix(skip_full_missing_days): fix bug all() -> any() --- src/stepcount/stepcount.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stepcount/stepcount.py b/src/stepcount/stepcount.py index 3390f7b..35ff3e0 100644 --- a/src/stepcount/stepcount.py +++ b/src/stepcount/stepcount.py @@ -583,7 +583,7 @@ def impute(data): if skip_full_missing_days: # find ok days - ok = data.notna().groupby(data.index.date).all() + ok = data.notna().groupby(data.index.date).any() ok = np.isin(data.index.date, ok[ok].index) # impute only on ok days data.loc[ok] = impute(data.loc[ok])