Pandas bins as values

Viewed 13

I have a dataset which I have cut into bins:

col_0                 countelo_bin
(1120.412, 1987.177]    646
(1987.177, 2846.211]     19
(2846.211, 3705.245]     17
(3705.245, 4564.279]     10
(4564.279, 5423.313]      2
(5423.313, 6282.347]      4
(6282.347, 7141.381]      2
(7141.381, 8000.415]      2
(8000.415, 8859.449]      1

What I would like to do is create a variable out of these bins so I can then use them in a query. Is it possible to get these into variables?

0 Answers
Related