fatf.utils.array.validation.is_base_array

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

Determines whether a numpy array-like object holds base data types.

Checks whether the array is of any type but numpy.void – this usually happens when a numpy array holds objects instead of base type entities.

Parameters
arraynumpy.ndarray

The array to be checked.

Returns
is_basicboolean

True if the array is of a base data type, False otherwise.

Raises
TypeError

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