Private
Public Access
1
0

fix remote task error

This commit is contained in:
Sander Roosendaal
2018-11-14 20:17:19 +01:00
parent f52de7e697
commit 7d06649cae

View File

@@ -866,6 +866,8 @@ def update_agegroup_db(age,sex,weightcategory,wcdurations,wcpower,
df['sex'] = sex
df['age'] = age
df['weightcategory'] = weightcategory
df.replace([np.inf,-np.inf],np.nan,inplace=True)
df.dropna(axis=0,inplace=True)
if debug:
engine = create_engine(database_url_debug, echo=False)