Java замените Nans на линию 0 CSV
if (some_double!=some_double)
some_double=0.0
Nice Newt
if (some_double!=some_double)
some_double=0.0