def rule_run_check(conditions, df):
    """
    Check for consistency between parameters and the dataframe, an assertion
    error will incur if the check is not passed.

    :param conditions: Conditions on which to filter before running the metric.
    :type conditions: list
    :param df: Dataframe on which to run the metric
    :type df: DataFrame
    """
    for cond in conditions:
        assert cond['column'
            ] in df.columns, 'Column %s in conditions %s is not part of the df' % (
            cond['column'], cond)
