As per [this thread](https://stackoverflow.com/questions/65153240/categorical-data-encoder-for-unseen-data-in-python), the user may want to encode certain categories, that may not be the most frequent.