Use float

This commit is contained in:
Nicolas Mowen 2024-03-11 07:31:40 -06:00
parent 86baac1b85
commit aa31c8a7c9

View File

@ -403,7 +403,7 @@ def motion_activity():
df.set_index(["start_time"], inplace=True) df.set_index(["start_time"], inplace=True)
# normalize data # normalize data
df = df.resample(f"{scale}S").sum().fillna(0) df = df.resample(f"{scale}S").sum().fillna(0.0)
mean = df["motion"].mean() mean = df["motion"].mean()
std = df["motion"].std() std = df["motion"].std()
df["motion"] = (df["motion"] - mean) / std df["motion"] = (df["motion"] - mean) / std