#範例3-9:印出四位學生的三科成績 import pandas as pd #數據資料表,採用三個串列List(coulumn=course,record_name=name, record_data = score) score = [[75,85,95],[90,90,90],[65,55,60],[95,65,90]] name = ['tom','john','peter','jolin'] course = ['chinese','english','math'] #設定dataFrame設定資料結構 df = pd.DataFrame(score, index = name, columns = course) #繪line線條圖 df.plot(kind='line',title='score of students') #繪bar柱狀圖 df.plot(kind='bar',title='score of students')