Traceback (most recent call last): File "D:\pycharm\PyCharm Community Edition 2023.1.1\双色球8分区预测模型.py", line 58, in <module> y_pred_filtered.drop(y_pred_prob[(y_pred_prob.iloc[:, :6].sum(axis=1) != 6)].index, inplace=True) File "C:\Users\Administrator.CN-20170703TIIO\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\frame.py", line 5268, in drop return super().drop( File "C:\Users\Administrator.CN-20170703TIIO\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\generic.py", line 4549, in drop obj = obj._drop_axis(labels, axis, level=level, errors=errors) File "C:\Users\Administrator.CN-20170703TIIO\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\generic.py", line 4591, in _drop_axis new_axis = axis.drop(labels, errors=errors) File "C:\Users\Administrator.CN-20170703TIIO\AppData\Local\Programs\Python\Python38\lib\site-packages\pandas\core\indexes\base.py", line 6696, in drop raise KeyError(f"{list(labels[mask])} not found in axis") KeyError: '[0, 1, 3, 4, 5, 7, 8, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 22, 23, 24, 25, 26, 27, 29, 31, 32, 33, 34, 35, 36, 37, 38, 40, 42, 43, 46, 47, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 63, 64, 65, 66, 67, 69, 70, 72, 74, 75, 76, 77, 78, 80, 81, 82, 84, 85, 86, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 108, 109, 110, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124] not found in axis' 进程已结束,退出代码1