Empty DataFrame
Columns: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
Index: []
time error
Traceback (most recent call last):
File "C:\Users\李sir\Desktop\项目演示\wfw2\Identification and Model Training.py", line 677, in <module>
exec_data()
File "C:\Users\李sir\Desktop\项目演示\wfw2\Identification and Model Training.py", line 645, in exec_data
df_cpu = cputiqu(path)
File "C:\Users\李sir\Desktop\项目演示\wfw2\Identification and Model Training.py", line 115, in cputiqu
df_cpu = df_main.loc[time_list[0]:time_list[-1], int(conf.get('Loc', 'cpu'))]
IndexError: list index out of range
Process finished with exit code 1
一般原因是列表为空,无法索引造成的报错,可以输出一下看看。