a numarray question

Bas wegwerp at gmail.com
Wed Feb 15 05:03:56 EST 2006


I believe it is something like

a[a==0] = 5

Note that numarray will eventually be replaced by Scipy/Numpy at some
time, but this wouldn't change the basic stuff.

Cheers,
Bas




More information about the Python-list mailing list