I\'m trying to get a better grip on numpy arrays, so I have a sample question to ask about them:
Say I have a numpy array called a. I want to perform an operation on
To mutate it:
a[a<0] += 1
To leave the original array alone:
a+[a<0]