Commit 9b48f751 authored by 张彦钊's avatar 张彦钊

add

parent 0c604b00
...@@ -17,7 +17,7 @@ def exp(): ...@@ -17,7 +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] h_merchant_id = [int(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 " \
...@@ -29,7 +29,7 @@ def exp(): ...@@ -29,7 +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] s_merchant_id = [int(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