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

update

parent 37c1b366
......@@ -28,7 +28,7 @@ def ctr():
click_list = []
rate_list = []
a = "2018-10-0"
for i in range(3,10):
for i in range(1,12):
date.append(a+str(i))
sql_exp = "select count(cid) from data_feed_exposure " \
"where cid_type = 'diary' and stat_date= '{}' and " \
......@@ -55,7 +55,7 @@ def ctr():
df["click"] = click_list
df["ctr"] = rate_list
print(df)
df.to_csv(DIRECTORY_PATH+"10.3-10.9ctr.csv",index=None)
df.to_csv(DIRECTORY_PATH+"10.1-10.11ctr.csv",index=None)
if __name__ == "__main__":
......
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