title: Convert continuous numerical data to discrete numerical data in Pandas
body: <p>I have  a pandas dataframe <code>df</code> with a column having continuous numerical data.</p>
  <pre><code>   A    
  0   1.5   
  1   15.0   
  2   12.8   
  3   23.2  
  4   9.6
  </code></pre>
  <p>I want to replace the continuous variables with numerical value based on the following rules:</p>
  <pre><code>0-10=10
  10-20=50
  20-100=80
  </code></pre>
  <p>The final dataframe obtained should be like this:</p>
  <pre><code>    A    
  0   10  
  1   50   
  2   50  
  3   80  
  4   10
  </code></pre>
  <p>I had tried to use <code>pandas.cut(df, bins=[0,10,20,100], labels=[10,50,80])</code> but it returns a Categorical column. I need the output column to be numerical.</p>