
a = [21,34,56,57,24,14,47,68]
bins = np.arange(14, 68 + 5.4, 5.4)
pd.value_counts(pd.cut(a, bins, include_lowest=True),sort=False)
The number 68 is ignored by the value_counts function. You can see that the number of occurrences of the number in the interval (62.6, 68) is 0.