def assert_type_int_or_float(df, variable, name_arg):
    """This function asserts if variable is a string or a list dataType."""
    assert isinstance(variable, (int, float)
        ), 'Error: %s argument must be a int or a float.' % name_arg
