dat2 = np.array([1, 2, 1, 2])
old_val = [1, 2]
new_val = [33, 66]
z = np.array((old_val, new_val)).T
for i, j in z:
    np.place(dat2, dat2 == i, j)
dat2
Replace elements in numpy array using list of old and new values