Let x be a NumPy array. The following:
x
(x > 1) and (x < 3)
Gives the error message:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
How do I fix this?
← Назад к списку