1 import pandas 2 from matplotlib import pyplot 3 4 pandas.options.display.max_columns=10 #最多显示多少列 5 6 excel=pandas.read_excel('revenue.xlsx') 7 print(excel) 8 excel.plot.scatter(x='New York',y='Los Angeles') 9 pyplot.show()