Commit 08a6f18f authored by 张彦钊's avatar 张彦钊

add hospital_id

parent e9c2c225
......@@ -149,7 +149,7 @@ def get_data():
"u.device_type,u.manufacturer,u.channel,c.top,cid_time.time,s.hospital_id " \
"from esmm_train_data e left join user_feature u on e.device_id = u.device_id " \
"left join cid_type_top c on e.device_id = c.device_id left join cid_time on e.cid_id = cid_time.cid_id " \
"left join service_hospital on e.diary_service_id = s.id " \
"left join service_hospital s on e.diary_service_id = s.id " \
"where e.stat_date >= '{}'".format(start)
df = con_sql(db, sql)
print(df.shape)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment