code: def bin_data(data, dim = 40, num_bins = 10):
    
    intervals = generate_RF_bins(data, dim, num_bins)
    binned_data = [numpy.concatenate([bin_number(data[x][i], intervals[i])
        for i in range(len(data[x]))]) for x in range(len(data))]
    return binned_data
docs: Fully bins the data generated by generate_data, using generate_RF_bins and
    bin_number.