fitbit_intraday_dataset

Module that provides classes to work with a exported fitbit dataset at intraday resolution

Available datasets

  • Nutrition (food and water logs)

  • Weight

  • Physical Activity (distance, calories, heart-rate, active and sedentary minutes)

  • Sleep

class tasrif.data_readers.fitbit_intraday_dataset.FitbitIntradayDataset(folder_path, table_name)

Base class for all Fitbit Intraday datasets

__init__(folder_path, table_name)

Initializes a dataset reader with the input parameters.

Parameters
  • folder_path (str) – Path to the Fitbit Intraday folder_path containing data.

  • table_name (str) – The table to extract data from.

process(*data_frames)

Function that runs validation hooks and processes the input data_frames.

Parameters

*data_frames (list of pd.DataFrame) – Variable number of pandas dataframes to be processed

Returns

Output of _process method