Skip to content

Add CheckInputDataframe to DropSimilar to avoid issues with column names that aren't unique strings #2186

Description

@jeromedockes

The DropSimilar transformer fails if the dataframe to transform includes non-unique strings, or non-string column names.

We may want to include a checkinputdataframe to ensure column names are unique strings to avoid issues.

import numpy as np
import skrub
import pandas as pd

df = pd.DataFrame(np.eye(3))
skrub.DropSimilar().fit_transform(df)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions