报错信息:ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
dataframe数据类型object是和实际数据类型int匹配,转换一下就OK了
df['A'] = df['A‘].astype(int)
报错信息:ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
dataframe数据类型object是和实际数据类型int匹配,转换一下就OK了
df['A'] = df['A‘].astype(int)