Numpy Sprawdź, czy tablica jest zerowa
>>> all_zeros = not np.any(a)
Obnoxious Oryx
>>> all_zeros = not np.any(a)