title: How to retain Scikit-learn OneHotEncoding from model generation to use on new data?
body: <p>I'm using <code>OneHotEncoding</code> to generate dummies for a classification problem. When used on the training data, I get ~300 dummy columns, which is fine. However, when I input new data (which is fewer rows), the <code>OneHotEncoding</code> only generates ~250 dummies, which isn't surprising considering the smaller dataset, but then I can't use the new data with the model because the features don't align.</p>
  
  <p>Is there a way to retain the <code>OneHotEncoding</code> schema to use on new incoming data?</p>