'Return contingencies for a given class value.'

def __getitem__(self, index):

    if isinstance(index, (str, float)):
        index = self.row_variable.to_val(index)
    C = self.counts[index]
    ind = (C > 0)
    return np.vstack((self.values[ind], C[ind]))
