I have two arrays in Python.
array1 looks like this:
[[ 59.13425446 85.62345123]
[ 59.4981575 87.67746735]
[ 57.4234575 83.34333335]]
array2 looks like this:
[[ 255 255]
[ 1.0 255]
[ 255 1.0]]
I want to update array1. For every value in array2 that equals 1.0, I want to update array1 with a value of 0.0. In the end it should look like this:
[[ 59.13425446 85.62345123]
[ 0.0 87.67746735]
[ 57.4234575 0.0]]
How can I do this in Python?