import pandas as pd import matplotlib.pyplot as plt #将txt文件转换为csv文件 grandtruth = pd.read_csv("sample_submission.csv") pred = pd.read_csv("Predictions.csv") plt.scatter('Id','SalePrice') #画出散点图 plt.show() #将散点图显示出来