Skip to content

BUG - ColumnTransformer fails with min-optional-reqs when using a Polars dataframe #1557

Description

@rcap107

Follow up of #1540 and #1543

min-optional-reqs is a configuration that includes both early scikit-learn versions and early polars versions, and in scikit-learn 1.2 there was no proper support for polars. The result is that using polars dataframes with the ColumnTransformer leads to incompatibilities.

Fixing this would involve patching the ColumnTransformer on skrub's side, which is complicated and can lead to other issues. Also, given that the fix would involve converting the dataframe to pandas and then back, it's just easier for the users to do that on their side if they encounter the issue.

This should not be fixed on skrub's side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions