human
Removing nan values from an array
assistant
Here is some code to remove Nan values from array `x`

x = x[numpy.logical_not(numpy.isnan(x))]

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