def is_float_array ( val ) : return is_np_array ( val ) and issubclass ( val . dtype . type , np . floating )
check if a number is in type of float python
Checks whether a variable is a numpy float array .
def is_float_array(val):
    """
    Checks whether a variable is a numpy float array.

    Parameters
    ----------
    val
        The variable to check.

    Returns
    -------
    bool
        True if the variable is a numpy float array. Otherwise False.

    """
    return is_np_array(val) and issubclass(val.dtype.type, np.floating)