Comment compter les éléments positifs Numpy
>>> np.sum(np.array(x) > 0, axis=0)
array([3, 3, 3, 3, 3, 0])
Zany Zebra
>>> np.sum(np.array(x) > 0, axis=0)
array([3, 3, 3, 3, 3, 0])
print(np.sum(a % 2 == 1))