Skip to content

Rename MeanMedianImputer to MeanImputer - #975

Merged
solegalli merged 2 commits into
feature-engine:mainfrom
ojassharma7:rename/mean-imputer
Jul 29, 2026
Merged

Rename MeanMedianImputer to MeanImputer#975
solegalli merged 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
Contributor

Hi @ojassharma7,

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

@aniq63

aniq63 commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

@ojassharma7 @solegalli

As requested, I've closed PR #972 and split the changes into separate PRs.

Thanks for the guidance!

@aniq63 aniq63 mentioned this pull request Jul 29, 2026
3 tasks
@solegalli
solegalli merged commit e5af3eb into feature-engine:main Jul 29, 2026
13 checks passed
@solegalli

Copy link
Copy Markdown
Collaborator

Thanks a lot @ojassharma7 ! Great contribution :)

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.

3 participants