bhf_smarthealth.process.intraday_process#
This module utilises functions from the parse.intraday_parser module to batch process raw Fitbit intraday activity data
Attributes#
Functions#
|
|
|
Process a daily batch of raw Fitbit intraday activity .json files |
Module Contents#
- bhf_smarthealth.process.intraday_process.logger#
- bhf_smarthealth.process.intraday_process.process_file(part_path: pathlib.Path, data_type: str, rename_columns: list[str]) dict[str, pandas.DataFrame][source]#
- bhf_smarthealth.process.intraday_process.process_day(in_dir: pathlib.Path, out_paths: dict[str, pathlib.Path], data_type: str, date_str: str)[source]#
Process a daily batch of raw Fitbit intraday activity .json files
- Parameters:
in_dir (Path) – Path of the directory containing raw data to batch process
out_paths (dict[str, Path]) – Dictionary of Paths (values) to save each of the aggregation periods (keys) to
data_type (str) – Intraday activity data type, e.g. heart, steps