Skip to content

add missing_only=True to all imputers to use in combination with variables=None - #974

Open
ojassharma7 wants to merge 2 commits into
feature-engine:mainfrom
ojassharma7:autocontrib/issue-388
Open

add missing_only=True to all imputers to use in combination with variables=None#974
ojassharma7 wants to merge 2 commits into
feature-engine:mainfrom
ojassharma7:autocontrib/issue-388

Conversation

@ojassharma7

Copy link
Copy Markdown
Contributor

Fixes #388.

What changed

  • feature_engine/imputation/arbitrary_number.py
  • feature_engine/imputation/base_imputer.py
  • feature_engine/imputation/categorical.py
  • feature_engine/imputation/end_tail.py
  • feature_engine/imputation/mean_median.py
  • feature_engine/imputation/random_sample.py
  • tests/test_imputation/test_arbitrary_number_imputer.py
  • tests/test_imputation/test_categorical_imputer.py
  • tests/test_imputation/test_end_tail_imputer.py
  • tests/test_imputation/test_mean_median_imputer.py
  • tests/test_imputation/test_random_sample_imputer.py

Verification

The project's own test suite was run before and after this change; it introduces no new test failures or lint violations.

ojassharma7 and others added 2 commits July 27, 2026 16:46
The imputers import feature_engine._docstrings.init_parameters.imputers,
but the new file was left untracked so CircleCI failed on import.

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

Copy link
Copy Markdown
Collaborator

Hi @ojassharma7

I am making a full migration from pandas to narwahls to support polars and pyarrow as well. So before we expand the functionality of the transformers, I need to complete that migration first.

I'll keep this one on hold for now.

I'd be happy to have your support on issues related to that migration. You'll find it in #965. We need to update each module to support narwahls instead of the current pandas logic in the fit transform functionality. 1 PR per module. Before choosing what to work on, leave a comment on the main PR, or check that no other PR is open already for that module, not to duplicate work :)

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.

add missing_only=True to all imputers to use in combination with variables=None

2 participants