Skip to content

ArrayInterface handler for cuDF DataFrame cannot yet handle Boolean columns #10181

Open
@hcho3

Description

@hcho3

Since the ArrayInterface class in XGBoost does not yet support Boolean columns, it throws an error

/workspace/src/c_api/../data/array_interface.h:500: Boolean-1 is not supported.

whenever 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 (pandas-dev/pandas#48022).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions