Commit 5bc958d9 authored by 张彦钊's avatar 张彦钊

add

parent e5738731
......@@ -117,7 +117,7 @@ def hospital():
db.close()
tmp = pd.DataFrame(list(result))
name = ["merchant_id", "doctor_discount_30_days","service_pv_30","mexpert_pv_30","organization_pv_30",
"doctor_discount_30_days"]
"expand_rechange_amount_30"]
tmp = tmp.rename(columns=dict(zip(list(range(len(name))), name)))
print(tmp.head(6))
......@@ -135,7 +135,7 @@ def hospital():
df = df[~df["all_exposure"].isin([0.0])]
df["tmp"] = df["service_pv_30"] + df["mexpert_pv_30"] +df["organization_pv_30"]
df = df[~df["tmp"].isin([0.0])]
print("aaaaaaaa")
print("ccc")
df["ctr"] = df["service_exposure_pv_30"] / df["all_exposure"] * df["service_ctr_30"] + \
df["hospital_exposure_pv_30"]/ df["all_exposure"] * df["hospital_ctr_30"] + \
df["expert_exposure_pv_30"]/df["all_exposure"] * df["expert_ctr_30"]
......
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