Commit 1e191aec authored by 张彦钊's avatar 张彦钊

add app list

parent 59b6d428
......@@ -34,7 +34,7 @@ def sort_app():
df = df.rename(columns={0: "device_id", 1: "app_list"})
df = df.loc[df["app_list"].apply(is_json)]
category = {"competitor":{"新氧微整形", "新氧SoYoung"},
category = {"competitor":{"新氧美容"},
"dianshang":{"京东","淘宝","唯品会","天猫","苏宁易购","国美","当当","亚马逊","网易严选","小米有品"},
"kuajing_dianshang": {"小红书", "网易考拉", "洋码头", "达令全球好货", "海狐海淘",
"HIG0", "豌豆公主", "尚品网", "丰趣海淘", "比呀比海外购"},
......@@ -74,6 +74,7 @@ def sort_app():
print(i)
print(df[i].unique())
df = df.drop("app_list",axis=1)
yconnect = create_engine('mysql+pymysql://root:3SYz54LS9#^9sBvC@10.66.157.22:4000/jerry_test?charset=utf8')
pd.io.sql.to_sql(df, "app_list_sort", yconnect, schema='jerry_test', if_exists='replace', index=False)
......
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