Neal Becker wrote: > Is there a function to apply a limit to an array? I want to (efficiently) do: > > y = x if x < limit, otherwise limit What about np.clip? r.