Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python ValueError: zero-size array to reduction operation maximum which has no identity

#In this situation, the easiest solution is often:
try:
    # Your code
except ValueError:  #raised if `x` is empty.
    pass
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #array #reduction #operation #maximum #identity
ADD COMMENT
Topic
Name
6+5 =