Commit 0c604b00 authored by 张彦钊's avatar 张彦钊

add

parent 17b83862
...@@ -17,6 +17,7 @@ def exp(): ...@@ -17,6 +17,7 @@ def exp():
result = cursor.fetchall() result = cursor.fetchall()
h_merchant_id = pd.DataFrame(list(result))[0].values.tolist() h_merchant_id = pd.DataFrame(list(result))[0].values.tolist()
print(len(h_merchant_id)) print(len(h_merchant_id))
h_merchant_id = [str(i) for i in h_merchant_id]
print(h_merchant_id[:6]) print(h_merchant_id[:6])
sql = "select merchant_id from statistic_merchant_rank_factor " \ sql = "select merchant_id from statistic_merchant_rank_factor " \
...@@ -28,6 +29,7 @@ def exp(): ...@@ -28,6 +29,7 @@ def exp():
db.close() db.close()
s_merchant_id = pd.DataFrame(list(result))[0].values.tolist() s_merchant_id = pd.DataFrame(list(result))[0].values.tolist()
print(len(s_merchant_id)) print(len(s_merchant_id))
s_merchant_id = [str(i) for i in s_merchant_id]
print(s_merchant_id[:6]) print(s_merchant_id[:6])
print(len(set(s_merchant_id)&set(h_merchant_id))) print(len(set(s_merchant_id)&set(h_merchant_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