def writeResults(Patterns, df):
    """
    utility function to write patterns in a pandas dataframe

    Parameters
    ----------
    Patterns : list
        list of patterns
    df : pandas dadaframe
        input dataframe

    Returns
    -------
    pandas dadaframe
        updated dataframe
    """
    for pat in Patterns:
        df = df.append(pat.getDictForm(), ignore_index=True)
    return df