Commit 2886bc30 authored by 张彦钊's avatar 张彦钊

add app list

parent 933c518e
...@@ -21,8 +21,8 @@ def json_format(x): ...@@ -21,8 +21,8 @@ def json_format(x):
def sort_app(): def sort_app():
db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_prod') db = pymysql.connect(host='10.66.157.22', port=4000, user='root', passwd='3SYz54LS9#^9sBvC', db='jerry_prod')
sql = "select device_id,app_list from device_id_applist limit 80" sql = "select device_id,app_list from device_id_applist limit 20000"
df = con_sql(db, sql) df = con_sql(db, sql).dropna()
df = df.rename(columns={0: "device_id", 1: "app_list"}) df = df.rename(columns={0: "device_id", 1: "app_list"})
category = {"competitor":{"新氧微整形", "新氧SoYoung"}, category = {"competitor":{"新氧微整形", "新氧SoYoung"},
......
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