def areplace (a,oldval,newval):
        return N.where(a==oldval,newval,a)
Replaces all occurrences of oldval with newval in array a.
dataset/ETHPy150Open sunlightlabs/clearspending/completeness/statlib/pstat.py/areplace