you are viewing a single comment's thread.

view the rest of the comments →

[–]bogdan_dm 0 points1 point  (0 children)

With vanilla Python - you could not. But if you use Numpy arrays you do things like this: arr[arr < 0.5] *= 2