On 14-04-2015 23:49, Rob Gaddi wrote: > On Tue, 14 Apr 2015 23:41:56 +0100, Paulo da Silva wrote: > >> Supposing I have 2 vectors v1 and v2 and a value (constant) k. >> I want to build a vector r with all values of v1 greater than k and the >> others from v2. >> > > You're looking for numpy.where() . > That's it! Thank you.
-- https://mail.python.org/mailman/listinfo/python-list