Update fitbit_parse_steps.py

pull/95/head
JulioV 2020-06-04 18:03:40 -04:00 committed by GitHub
parent 2e4ffeb4d4
commit b14ddcdea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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