Commit 780a781c authored by 张彦钊's avatar 张彦钊

修改志伟ctr统计文件

parent 1b014ca3
......@@ -25,8 +25,8 @@ def get_data():
cursor.execute(sql)
output = DIRECTORY_PATH + "ffm_get_data_" + get_yesterday_date() + ".csv"
result = cursor.fetchall()
device_id = tuple(pd.DataFrame(list(result))["0"].values.tolist())
pd.DataFrame(list(result)).to_csv("/data2/ffm/abc.csv")
device_id = tuple(pd.DataFrame(list(result))["_0"].values.tolist())
print(device_id[0:1])
cursor.close()
return device_id
......
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