Is there a convenient way to apply a lookup table to a large array in numpy? Is there a convenient way to apply a lookup table to a large array in numpy? arrays arrays