def float2int(x):
    """
    converts floats to int when only float() is not enough.

    :param x: float
    """
    if not pd.isnull(x):
        if is_numeric(x):
            x=int(x)
    return x
def float2int ( x ) : if not pd . isnull ( x ) : if is_numeric ( x ) : x = int ( x ) return x
converts floats to int when only float() is not enough.

    :param x: float