siha_dataset¶
- Module that provides classes to work with a fitbit dataset dumped from SIHA
- Available datasets:
EMR,
CGM,
Sleep, SleepIntraday
Steps, StepsIntraday
Distance, DistanceIntraday
Calories, CaloriesIntraday
HeartRateIntraday
TimeInHeartRateZones, SedentaryActiveMinutes, LightlyActiveMinutes, ModerateActiveMinutes, VeryActiveMinutes
-
class
tasrif.data_readers.siha_dataset.
SihaDataset
(folder_path, table_name)¶ Base class to work with the all SIHA based datasets.
-
__init__
(folder_path, table_name)¶ Initializes a dataset reader with the input parameters.
- Parameters
folder_path (str) – Path to the SIHA export 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
-