报错处理|ValueError: DataFrame.dtype
2022-01-04 本文已影响0人
Veigar_01
ValueError: DataFrame.dtypes for data must be int, float, bool or categorical. When
categorical type is supplied, DMatrix parameter
enable_categorical
must be set to True
.customer_id, call_date
报错解读:句末的customer_id, call_date两个字段数据类型不对;
解决方式:修改成int类型或删掉这个字段都可以。