indices = list( range( 0, 50, 2 ) )
bin_tups = []
count = 0
for index in indices:
if count != 0:
bin_tups.append( (indices[count - 1], index) )
count += 1
bins = pd.IntervalIndex.from_tuples(bin_tups)
cat_obj = pd.cut( $DATA, bins )
series = pd.value_counts( cat_obj )