我试图使用matplotlib显示特定索引的图像,但它显示了错误,我没有得到为什么?我尝试获取mnist数据的索引0,并将其大小调整为28 x 28像素,然后通过plot.show()函数显示该索引值。_engine.get_loc(casted_key)
pandas/_libs/index.pyx in pandas_libs.hashtable.PyObj
KeyError: (nan, 'occurred at index 95') 在列LoanAmount的索引95处,Loan_ID,Gender,Married,Dependents,Education,Self_Employed,Semiurban,Y,3620.0,8.194229304819817
95,LP001326,1,0,0,0,,6782,0.0,,360.0,1.0,U
我有一个名为DataFrame的maximoVerano,并且希望重新索引它,因为我将用不同的年份索引追加其他DataFrames。fechaHoraMaxDem31.5 fechaHoraMaxDem63>>> maximosVerano.set_index([anio], inplace=True)
Tra