結果 : replace values in numpy array based on multiple conditions