ensure div by zero is replaced with 0 after normalization (#10528)

This commit is contained in:
Josh Hawkins 2024-03-18 22:21:09 -05:00 committed by GitHub
parent d249e5b27f
commit 3bd0ad63b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -400,7 +400,7 @@ def motion_activity():
(part["motion"] - part["motion"].min())
/ (part["motion"].max() - part["motion"].min())
* 100
)
).fillna(0.0)
# change types for output
df.index = df.index.astype(int) // (10**9)