fatf.utils.array.validation.is_textual_array

fatf.utils.array.validation.is_textual_array(array: numpy.ndarray) → bool[source]

Determines whether a numpy array-like object has a textual data type.

Checks whether the array is a unicode string type (textual). The zero-terminated bytes type is unsupported and not considered a textual type.

Parameters
arraynumpy.ndarray

The array to be checked.

Returns
is_textualboolean

True if the array has a textual data type, False otherwise.

Raises
TypeError

The input array is not a numpy array-like object.