import pandas as pd #1.讀入資料集 df = pd.read_csv("./diabetes.csv") #2.印出前5筆 print(df.head()) #3.把前5筆,輸出成網頁檔案 df.head().to_html("./Ch5_2_1.html") #4.印出資料集的size(row,column)=(筆數,欄位數) print(df.shape)