I have a numpy Array name
odd_num_mul = [ 2 0 0 0 0 12 0 8]
I want to count the numbers of elements in this array.For ex - (8 elements in this case). How can I count?
Use arr.size or np.prod(arr.shape)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With