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

add

parent bbd3f354
......@@ -59,7 +59,11 @@ def doctor():
"merchant_id"]
df = df.rename(columns=dict(zip(list(range(len(name))), name)))
print(df.head(6))
print(df.shape)
df = df.dropna(subset=["merchant_id"])
print("drop")
print(df.shape)
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 " \
......@@ -74,7 +78,6 @@ def doctor():
"mexpert_pv_30", "organization_pv_30"]
tmp = tmp.rename(columns=dict(zip(list(range(len(name))), name)))
df = df.dropna()
df["merchant_id"] = df["merchant_id"].astype('int64')
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