Retirez les NANS du tableau
x = x[~numpy.isnan(x)]
Cooperative Curlew
x = x[~numpy.isnan(x)]
function removeNaN(arr) {
return arr.filter(item => !isNaN(item));
}