Reading data from excel data and plotting graph




import pandas as pd
from matplotlib import pyplot as plt
try:
data=pd.read_excel('data1.xlsm')
print(data)
plt.plot(data['Year'],data['Sales'])
plt.show()



except Exception as e:
print(e)