ENH Adds support for drop + handle_unknown=ignore in the OneHotEncoder #19041
Do you think it would be a good idea to expose an attribute containing the column with unknown categories? I am wondering if the warning will not be too much annoying.
I am thinking that we could have 2 attributes, one containing the column indices and another the unknown categories, when it applies. In this case, we could avoid to warn but you could always check the attributes for sanity check?
If the goal is to avoid warnings, we can hope that the documentation is clear enough and remove the warning.