Someone suggested that in python it is possible to get a boolean array with criteria applied to certain numerical array.
Say I have
array1 = [1, 2, 3, 4, 5]
I want to apply the criteria
x>2 & x<5
so that the resulting array would be something like
>>> [F, F, T, T, F]
I wonder if this is possible and how should I get there, thanks!
(please just ignore any syntax mistake above as I'm new to python, sorry for any potential confusion those might cause)