📅  最后修改于: 2022-03-11 14:45:32.970000             🧑  作者: Mango
# Read the csv file with 'Date' as index and parse_dates=True
df = pd.read_csv("data.csv", index_col='Date', parse_dates=True, nrows=5)
# Display index
df.index