title: Pandas qcut error: Bin labels must be one fewer than the number of bin edges
body: <p>I am trying to use <code>qcut</code> on a single column. Here is the column:</p>
  <pre><code>data['Frequency'].head()
  
  0     5
  1     5
  2    89
  3     2
  4     1
  5     1
  6    86
  7     1
  8    64
  9     2
  </code></pre>
  <p>However when I try this:</p>
  <pre><code>data['Frequency_Score'] = pd.qcut(data['Frequency'],5,labels=[1,2,3,4,5],duplicates='drop')`
  </code></pre>
  <p>I get the error:</p>
  <pre><code>ValueError: Bin labels must be one fewer than the number of bin edges
  </code></pre>
  <p>I have tried it with and without the <code>duplicates='drop'</code> parameter. Both give errors.</p>
  <p>How can I fix this?</p>