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

add print

parent 1e1a69e0
...@@ -122,7 +122,7 @@ def save_result(queue_name, x_list): ...@@ -122,7 +122,7 @@ def save_result(queue_name, x_list):
score_df["cid"] = x_list score_df["cid"] = x_list
score_df = score_df.sort_values(by="score", ascending=False) score_df = score_df.sort_values(by="score", ascending=False)
print("概率前十行:") print("概率前十行:")
print(score_df.head(100)) print(score_df)
return score_df return score_df
...@@ -140,7 +140,7 @@ def merge_score(x_list, score_df): ...@@ -140,7 +140,7 @@ def merge_score(x_list, score_df):
result = cursor.fetchall() result = cursor.fetchall()
score = pd.DataFrame(list(result)) score = pd.DataFrame(list(result))
print("数据库日记表前十行") print("数据库日记表前十行")
print(score.head(10)) print(score)
score_list = score[0].values.tolist() score_list = score[0].values.tolist()
db.close() db.close()
......
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