I am trying to change all the values of a 3D numpy array situated between 2 other values such as:
array = np.random.randint(0,256,(44,640,640))
array[array < 93 and array != 0] = 1
array[array >= 93] = 7
However, this syntax does not work. What is the correct way to perform this operation ?
Thank you