numpy count values in a column where column contains code example Example: numpy count where print(np.sum(a % 2 == 1))