From b14ddcdea696ecc011198a0a2dceff0c7f2ff423 Mon Sep 17 00:00:00 2001 From: JulioV Date: Thu, 4 Jun 2020 18:03:40 -0400 Subject: [PATCH] Update fitbit_parse_steps.py --- src/data/fitbit_parse_sensors/fitbit_parse_steps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/fitbit_parse_sensors/fitbit_parse_steps.py b/src/data/fitbit_parse_sensors/fitbit_parse_steps.py index f031b408..f4bfeef3 100644 --- a/src/data/fitbit_parse_sensors/fitbit_parse_steps.py +++ b/src/data/fitbit_parse_sensors/fitbit_parse_steps.py @@ -11,7 +11,7 @@ STEPS_INTRADAY_COLUMNS = ("device_id", def parseStepsData(steps_data, HOUR2EPOCH): if steps_data.empty: - return pd.DataFrame(), pd.DataFrame(columns=STEPS_COLUMNS) + return pd.DataFrame(), pd.DataFrame(columns=STEPS_INTRADAY_COLUMNS) device_id = steps_data["device_id"].iloc[0] records_intraday = [] # Parse JSON into individual records