2025-11-29 【Numpy】すべての要素が0かどうかの判定してエラー処理 python dataはnumpyのndarray if np.all(data == 0): print("caution : all values are zero")</div>