Skip to content

Commit

Permalink
fix(skip_full_missing_days): fix bug all() -> any()
Browse files Browse the repository at this point in the history
  • Loading branch information
chanshing committed May 3, 2024
1 parent c6fff46 commit 1cdd3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stepcount/stepcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 1cdd3bd

Please sign in to comment.