def main()

in decisionai_plugin/sample/util/csvdiff.py [0:0]


def main(f1, f2, outfile, sorting_column):
    set1 = get_dataset(f1)
    set2 = get_dataset(f2)
    #different = set1 ^ set2

    output = csv.writer(outfile)

    # for row in sorted(different, key=lambda x: x[sorting_column], reverse=True):
    #     output.writerow(row)

    output.writerow('**********************file1********************')
    for line in set1:
        if line not in set2:
            output.writerow(line)

    output.writerow('**********************file2********************')
    for line in set2:
        if line not in set1:
            output.writerow(line)