<human>:  replace values in an array
<bot>: Here is some code to replace NaN values in array `a` with zeros

b = np.where(np.isnan(a), 0, a)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.