Does anyone know How to find ranges of repeated categorical values in a column?
I mean, it's something like this:

```
    [Floor]         [Height]
1     A                10
2     A                11
3     A                12
4     B                13
5     B                14
6     C                15
7     C                16
8     A                17
9     A                18
10    C                19
11    C                20
12    B                21
13    B                22
14    B                23

```

What I'm trying to achieve is to determine the Height ranges for each Floor, as shown below:

```
Floor     Height
 A       [10 - 12]
 B       [13 - 14]
 C       [15 - 16]
 A       [17 - 18]
 C       [19 - 20]
 B       [21 - 23]

```

I was trying with pandas.cut() but I can't find the way to set the intervals for repeated values.