import pandas as pd data = pd.read_csv("./system_error_test.csv") system_error.set_index("System Time", inplace=True) # 将str转换为int类型,并且设置为索引 system_error.head()