def format_res(apriori_results):
    """Convert apriori results to what Mb Diff expects."""
    explanations = [rule.lhs for rule in apriori_results]
    dict_form_explanations = []
    for explanation in explanations:
        d = {}
        for term in explanation:
            col, value = term.split(":")
            d[col] = value
        dict_form_explanations.append(d)
    return dict_form_explanations