fatf.utils.array.validation.is_2d_array

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

Determines whether a numpy array-like object has 2 dimensions.

Parameters
arraynumpy.ndarray

The array to be checked.

Returns
is_2dboolean

True if the array is 2-dimensional, False otherwise.

Raises
TypeError

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

Warns
UserWarning

The input array is 2-dimensional but its components are 1D structured.