title: Applying pandas qcut bins to new data
body: <p>I am using pandas qcut to split some data into 20 bins as part of data prep for training of a binary classification model like so:</p>
  
  <pre><code>data['VAR_BIN'] = pd.qcut(cc_data[var], 20, labels=False)
  </code></pre>
  
  <p>My question is, how can I apply the same binning logic derived from the qcut statement above to a new set of data, say for model validation purposes. Is there an easy way to do this?</p>
  
  <p>Thanks</p>