isnan

isnan(x: array, /) array

Tests each element x_i of the input array x to determine whether the element is NaN.

Parameters:

x (array) – input array. Should have a numeric data type.

Returns:

out (array) – an array containing test results. An element out_i is True if x_i is NaN and False otherwise. The returned array should have a data type of bool.