Skip to content

Rename MeanMedianImputer to MeanImputer - #975

Open
ojassharma7 wants to merge 2 commits into
feature-engine:mainfrom
ojassharma7:rename/mean-imputer
Open

Rename MeanMedianImputer to MeanImputer#975
ojassharma7 wants to merge 2 commits into
feature-engine:mainfrom
ojassharma7:rename/mean-imputer

Conversation

@ojassharma7

@ojassharma7 ojassharma7 commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Renames MeanMedianImputerMeanImputer (issue rename imputer classes #971), keeping a deprecated MeanMedianImputer alias that raises FutureWarning until 2.1.0.
  • Updates tests so both the new class and the alias pass.
  • Updates documentation and renames MeanMedianImputer.rstMeanImputer.rst (API + user guide), plus call sites in quickstart/other guides.

Why a focused PR

Per @solegalli on #973: split the rename into one PR per class and start with MeanMedianImputer. The other two renames (AddMissingIndicator, ArbitraryNumberImputer) will follow separately to avoid overlap with #972.

Related

Test plan

  • CircleCI green
  • Confirm docs build / MeanImputer pages render
  • Confirm MeanMedianImputer() warns and still works

Keep MeanMedianImputer as a FutureWarning wrapper until 2.1.0, update
tests for both names, and refresh docs/API pages (including file renames).

Co-authored-by: Cursor <cursoragent@cursor.com>
Sphinx -W failed with undefined label mean_median_imputer after the
user-guide ref was renamed with the page.

Co-authored-by: Cursor <cursoragent@cursor.com>
@aniq63

aniq63 commented Jul 29, 2026

Copy link
Copy Markdown

Hi @ojassharma7,

I saw that you're already working on MeanImputer. I'll work on the other two classes, as @solegalli suggested.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants