Fitbit cleaner
✓ Published0🌍 Public
Aabehmiel
Last edited May 23, 2017
Created on May 23, 2017
This example cleans Fitbit activity and sleep data downloaded as CSV files. It loads the data with pandas, removes rows with zero activity calories or zero time in bed, and converts date strings into datetime objects using `datetime.strptime`. It then adds a weekday column via `strftime('%A')`, preparing the data for further analysis or visualization. The script outputs two data frames, one for activities and one for sleep, each with a date and weekday column.
AI-generated description