I am trying to assign decile index to each of group of the grouped data individually based on another column which has the amount of that item. However I am shown the error "ValueError: Bin edges must be unique: array([ -12., 1...])" exception".
I referred to : Why use pandas qcut return ValueError: Bin edges must be unique? But this solution generates highly uneven bins (difference between some bin counts almost 1000 records) for my data with some bins having 0 occurrences.
How do I resolve this error?