PL: remove whitespace
PY3: use logical_not and check whether not all values are NaN