Can I use OneHotEncoder to one hot encode only a select values in a category column instead of constructing a dense ndarray and then dropping the unnecessary columns?
For example, If a categorical column named color has 3 colors say red, green and blue and I would like to one hot encode only 2 of those values say "red" and "green", how would I do that with OneHotEncoder?
I am new to ML, so also would like to know is it advisable and common thing to do such limited one hot encoding especially dealing with column having way too many categorical values?
Thanks in advance.