Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Dask, Flink and DataFlow
Context. I encountered this error while working on #10175. Starting from Pandas 2.0, pd.get_dummies() returns Boolean type, instead of uint8 (https://github.com/pandas-dev/pandas/pull/48022).
Since the
ArrayInterface
class in XGBoost does not yet support Boolean columns, it throws an errorwhenever Boolean columns are passed in. The error is only relevant for cuDF DataFrames, since the handler for Pandas DataFrame converts Boolean columns into float type.
Context. I encountered this error while working on #10175. Starting from Pandas 2.0,
pd.get_dummies()
returns Boolean type, instead of uint8 (https://github.com/pandas-dev/pandas/pull/48022).