Overview

My Fitbit history data was exported from my Fitbit Dashboard.
The goal is to use this data to understand personal fitness habits and trends.

Date Range of Data

For now, the data I will work with is from 2020 as it is the only complete year of data available.

Directory Structure of the Fitbit Data:
/Physical Activity

From here I create separate directories for each data set type.

There are many separate JSON files for each data set. For example, for steps data, 1 example filename is steps-2019-08-21.json.

This process is repeated for all different data sets/directories.

Resources

https://medium.com/analytics-vidhya/exploring-your-fitbit-sleep-data-with-python-pandas-and-seaborn-in-jupyter-notebook-a997f17c3a42

https://towardsdatascience.com/formating-and-visualizing-time-series-data-ba0b2548f27b

https://github.com/CoreyMSchafer/code_snippets/blob/master/Python/Pandas/10-Datetime-Timeseries/Pandas-Demo.ipynb

https://github.com/soumilshah1995/Data-Analysis-Over-10-years-of-hourly-energy-consumption-data-from-PJM-in-Megawatts/blob/master/Exp3%20.ipynb

Import Packages

Data Wrangling

Load Data

Cleaning Data

Validating Data from Fitbit

Comparison between the JSON exported data and the Fitbit online dashboard data show that the data is not precisely matching, but it is fairly close.

Exported June Data

Dashboard June Data

Merging and Correlation

Resample Hourly Data to Create Daily Data

Weekday Averages

Monthly Averages

Export Data

Exporting finalized and cleaned data for future analysis and projects.

Insight from 2020 Data

Correlations

Weekly Data

Monthly Data