https://bestthaifoodrecipeshopppp.blogspot.com/2024/01/numpy-truth-value-of-array-with-more.html
Numpy : The Truth Value Of An Array With More Than One Element Is Ambiguous