def _apply_function(args):
        
    """
    Calls an apply function on a DataFrame with a set of parameters

    Parameters
    ----------
    args: dict
        Parameters for functon

    Returns
    -------
    data.apply : Function 
        The result of the apply function

    """
    
    df_data, function, kwargs = args
    return df_data.apply(function, **kwargs)