feat: raise ValueError when variables and missing_only=True are used together in AddMissingIndicator and DropMissingData#912
Conversation
…s and missing_only=True are used together (feature-engine#905)
|
Hi @solegalli |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #912 +/- ##
=======================================
Coverage 98.27% 98.27%
=======================================
Files 116 116
Lines 4978 4996 +18
Branches 795 804 +9
=======================================
+ Hits 4892 4910 +18
Misses 55 55
Partials 31 31 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@solegalli, @ankitlade12 Hi! I'm facing issues with the two failing codecov checks on this PR:
Could you help me understand:
I want to bring the patch coverage up to meet the target. Any guidance would be appreciated. |
|
Hey @direkkakkar319
Thank you so much for all PRs and issues on feature-engine. I really appreciate your contributions and motivation!
I am currently on the last weeks of travel, so had very little time and internet connection to look at them in detail. I will come back to you with some comments from 21st march.
Sorry for the delay and thanks for the patience!
Sent from [Proton Mail](https://proton.me/mail/home) for iOS.
… Message ID: ***@***.***>
|
|
Hey @solegalli,no worries at all ,take your time! I hope you're enjoying your travels. |
8eb611c to
213acab
Compare
|
there were few local file that were push to this branch , I removed them |

Description
Fixes #905
Makes
variablesandmissing_only=Truemutually exclusive in bothAddMissingIndicatorandDropMissingData. Previously, passing both silently produced confusing behaviour — variables with no missing data would be quietly dropped from the output with no indication to the user.Changes
feature_engine/imputation/missing_indicator.pyValueErrorin__init__()whenvariablesis notNoneandmissing_only=Truevariablesandmissing_onlyto document mutual exclusivityfeature_engine/imputation/drop_missing_data.pytests/test_imputation/test_missing_indicator.pymissing_only=False, valid withvariables=Nonemissing_only=Truealongsidevariablestests/test_imputation/test_drop_missing_data.pydocs/whats_new/v_190.rstType of Change
Tests
Notes
variables=None,missing_only=True) is completely unchangedvariablesandmissing_only=Truenow get a clearValueErrorinstead of silent unexpected output