I used Pandas qcut function to sort a column of values into quantiles but I can't filter the DataFrame by those quantiles, here goes an example:
df = pd.DataFrame(data = [i for i in range(100)], columns = ['values'])
df['bins'] = pd.qcut(df['values'], q = 10)
This gives me this DataFrame:

But when I try to filter by some decile:
df[df['bins'] == (-0.001, 9.9]]
I get:
SyntaxError: invalid syntax
Changing the interval to a string, like df[df['bins'] == '(-0.001, 9.9]'] just returns me an empty DataFrame, so it doesn't help either. How should I go about this?