Commit 57659656 authored by 张彦钊's avatar 张彦钊

add

parent 4e8200a3
......@@ -24,6 +24,7 @@ def doctor():
"merchant_id"]
df = df.rename(columns=dict(zip(list(range(len(name))), name)))
print(df.head(6))
sql = "select merchant_id,doctor_discount_30_days,expand_rechange_amount_30," \
"service_pv_30,expert_pv_30,organization_pv_30 from statistic_merchant_rank_factor " \
......@@ -86,7 +87,6 @@ def doctor():
def hospital():
date_str = "20200101"
date_tmp = "2020-01-01"
# date_str = (datetime.datetime.now() - datetime.timedelta(days=1)).strftime("%Y%m%d")
# date_tmp = (datetime.datetime.now() - datetime.timedelta(days=1)).strftime("%Y-%m-%d")
......@@ -109,6 +109,7 @@ def hospital():
df = df.rename(columns=dict(zip(list(range(len(name))), name)))
print("df")
print(df.shape)
print(df.head(6))
sql = "select merchant_id,doctor_discount_30_days," \
"service_pv_30,expert_pv_30,organization_pv_30,expand_rechange_amount_30 from statistic_merchant_rank_factor " \
......@@ -124,6 +125,7 @@ def hospital():
tmp = tmp.rename(columns=dict(zip(list(range(len(name))), name)))
print("tmp")
print(tmp.shape)
print(tmp.head(6))
df["merchant_id"] = df["merchant_id"].astype("str")
tmp["merchant_id"] = tmp["merchant_id"].astype("str")
......
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