Skip to main content
my python programs
Share
Get link
Facebook
X
Pinterest
Email
Other Apps
July 20, 2020
Reading data from excel data and plotting graph
What is pandas?
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)