x= y.index
plt.bar(x,y,color = 'gray')
plt.ylim(450,650)
plt.title('요일별 교통사고 건수',loc = 'center')
plt.ylabel('사고건수')
plt.xlabel('요일')
for i in range (0,7):
plt.text(x[i],y[i],f'{y[i]}')
plt.show
x = car1.index
y = car1['사상자수']
plt.plot(x,y, ls = '-',color = 'blue', lw = 1)
plt.ylim(0,850)
plt.title('차대차교통사상자수',loc = 'center')
plt.ylabel('수상자')
plt.xlabel('지역')
for i in range (len(y)):
plt.text(x[i],y[i],f'{y[i]}')
plt.show