title: How to reduce the number of columns after One-hot encoding
body: <p>I am working with a dataset that requires converting a categorical column into a numeric equivalent as the dataset requires a couple of ML techniques to be implemented. I used one-hot encoding technique to convert the categorical column (i.e. Nationalities) into numeric columns suitable for machine learning models. However, this technique tends to return a total of 227 columns. Just wanted to know if there is a way to reduce the number of columns obtained after implementing OHE. thanks.</p>
  <p>The image is attached <a href="https://i.stack.imgur.com/zUpXg.png" rel="nofollow noreferrer">Image</a>.</p>