NumPy - Aggregation Functions
Why does
np.prod() return 1 when applied to an empty NumPy array?np.prod() return 1 when applied to an empty NumPy array?np.prod() returns 1 as the neutral product value.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions