Python ValueError: Array mit Nullgröße zum Reduktionsbetrieb maximal, das keine Identität hat
#In this situation, the easiest solution is often:
try:
# Your code
except ValueError: #raised if `x` is empty.
pass
Powerful Penguin