1. 程式人生 > >python之pandas

python之pandas

讀取csv檔案

fixed_df = pd.read_csv('data/bikes.csv', sep=';',  parse_dates=['Date'],encoding='latin1',header=0, dayfirst=True, index_col='Date')

fixed_df.header()檢視頭幾個,預設頭五個

fixed_df.index