We have the function _filter_out_variables_not_in_dataframe which is used by the selection transformers within self._confirm_variables(X).
The current logic is unreadable and convoluted.
We need to think:
if we want to expose the filter out function (probably not), and
what is the best design of that function to use if from the transformers.
Probably just to remove the variables, and, more importantly, it should not allow None as argument, because if variables is None, then there is nothing to filter out.
We have the function
_filter_out_variables_not_in_dataframe
which is used by the selection transformers withinself._confirm_variables(X)
.The current logic is unreadable and convoluted.
We need to think:
Probably just to remove the variables, and, more importantly, it should not allow
None
as argument, because if variables is None, then there is nothing to filter out.