title: How to categorize a range of values in Pandas DataFrame
body: <p>Supose I have the following DataFrame:</p>
  
  <pre><code>   Area
  0  14.68
  1  40.54
  2  10.82
  3  2.31
  4  22.3
  </code></pre>
  
  <p>And I want to categorize that values in range. Like A: [1,10], B: [11,20], C...</p>
  
  <pre><code>   Area
  0  B
  1  D
  2  C
  3  A
  4  C
  </code></pre>
  
  <p>How can I do it with Pandas? I tried following code:</p>
  
  <pre><code>bins = pd.IntervalIndex.from_tuples([(0, 11), (11, 20), (20, 50), (50, 100), (100, 500), (500, np.max(df["area"]) + 1)], closed='left')
  catDf = pd.cut(df["area"], bins = bins)
  </code></pre>
  
  <p>But "cut" command just put range values in DataFrame and I want put the categories names instead of range.</p>
  
  <p><strong>EDIT</strong>: I tried to pass label to the cut, but nothing changes.
  <strong>EDIT2</strong>: To clarify, if the value of "area" have 10.21, so it's in range of [10,20], so it must be labeled like "B" or other label for that range of values.</p>