def _infer_precision(base_precision, bins):
for precision in range(base_precision, <NUM_LIT:20>):<EOL><INDENT>levels = [_round_frac(b, precision) for b in bins]<EOL>if algos.unique(levels).size == bins.size:<EOL><INDENT>return precision<EOL><DEDENT><DEDENT>return base_precision<EOL>
Infer an appropriate precision for _round_frac