I have the following code to do a majority vote for data in a dataframe:
def vote(df, systems): test = df.drop_duplicates(subset=[\'begin\', \'end\', \'case\'