Is there a way of using np.histogram under restriction of min values in a bin? e.g that each bin will have at least 2 values?
Thanks,