관리 메뉴

moozi

pandas excel barchart 본문

TIS_2018/응용sw2018_1기

pandas excel barchart

moozi 2018. 7. 18. 11:43

import pandas as pd
import matplotlib.pylab as plt
from matplotlib import font_manager, rc
font_name = font_manager.FontProperties(fname="c:/Windows/Fonts/malgunbd.ttf").get_name()
rc('font', family=font_name)
 
score = pd.read_excel("성적표.xlsx")
 
name = score["이름"]
korean=score["국어"]

print(name)
print(korean)
 
plt.bar(name, korean)
plt.show()

 

'TIS_2018 > 응용sw2018_1기' 카테고리의 다른 글

하둡시작이 잘 안될때  (0) 2018.07.19
하둡연습문제01  (1) 2018.07.18
성적엑셀파일  (0) 2018.07.18
python pandas  (0) 2018.07.17
파이썬연습문제03  (0) 2018.07.17
Comments