Skip to content

feat: Add handling of NaN values to Scaler TableTransformers #873

@Tarmandan

Description

@Tarmandan

Is your feature request related to a problem?

Currently RobustScaler, StandardScaler and possibly RangeScaler will not work on columns containing NaN-values.

Desired solution

The fit and transform methods of the scalers should ignore NaN as they ignore None.

Possible alternatives (optional)

Implementing and raising a ContainsNaNError for the end user might be preferable, as the choice of how to handle rows and columns containing NaN might be relevant to the data science problem.

Screenshots (optional)

No response

Additional Context (optional)

Currently there is no test coverage for NaN and None values in tables for the scalers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions