# 匯入套件
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
# 用字典形式來建立 DataFrame
scores = {'Chinese':[100,80,90,70,100],
'English':[70,90,80,100,90],
'Math':[80,100,90,70,60]}
df = pd.DataFrame(scores)
print(df)
# 在 DataFrame 加入索引
df.index = ['Jobs','Mary','Simon','Allen','Bob']
print(df)
# 印出 DataFrame 直行索引
print(df.index)
# 印出 DataFrame 維度
print(df.shape)
# 印出 DataFrame 資料型態
print(df.dtypes)