有时候即便对数据类型做了强转,也会这么报错,lightgbm不识别int64,只识别int32,即需要对np.int64做强转。 dataframe[col]=dataframe[col].astype(int)