R 로 그래프 그리기 :
movie<-read.csv("Movie-p.csv")
#head(movie)
plot(movie$연도,movie$한국관객수,main='2004년~2021년한국 영화 관객수 그래프',xlab='년도',ylab='관객수',col='red',type='l')
판이썬으로 그래프 그리기:
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib import font_manager, rc
font = font_manager.FontProperties(fname="c:/Windows/Fonts/malgun.ttf").get_name()
rc('font', family=font)
fig, ax2 = plt.subplots()
movie=pd.read_csv("d:\\data\\Movie-p.csv",encoding="euckr")
mp=movie[['연도','한국관객수']]
mp.plot(kind='line',x='연도',ax=ax2)
plt.ylabel('관객수')
plt.title('2004년~2021년한국 영화 관객수 그래프')