Handle empty ACC.csv

sociality-task
Primoz 2022-08-22 14:20:47 +00:00
parent 0aa0e82673
commit f088e9586f
1 changed files with 2 additions and 0 deletions

View File

@ -67,6 +67,8 @@ def extract_empatica_data(data, sensor):
df['y'] = df['y'].astype(float)
df['z'] = df['z'].astype(float)
df.index.name = 'timestamp'
if df.empty:
return df
elif sensor == 'EMPATICA_INTER_BEAT_INTERVAL':