Replace Numpy Array Elements Python Documentation