Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

WIP: Feature: Simple imputer many missing data kinds #30884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
Loading
from

Conversation

timotta
Copy link

@timotta timotta commented Feb 24, 2025

Reference Issues/PRs

#17625

What does this implement/fix? Explain your changes.

Enabling the possibility to specify multiple missing_values in SimpleImputer, as discussed in this issue: #17625

PR still in progress to be discussed in the issue.

SimpleImputer(
        ...
       missing_values=[np.nan, None, pd.NA]
)

Any other comments?

The idea is to start by allowing multiple missing values and then, in a later PR, change the default missing_values to include all common missing values (np.nan, None, pd.NA, pd.NaT). There may be an intermediate PR after this one, before the later PR that changes the default, to add a FutureWarning explaining the upcoming change in the default missing_values.

Copy link

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 18e6b75. Link to the linter CI: here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.