def filterDataframe(df):
    """
    Takes out the rows that need to be deleted from df: background, target, view_patient, view_thirdparty, info_thirdparty
    Returns filtered df and list of indexes of rows that were deleted
    
    :param df: pandas dataframe
    """
    rows_to_delete = []
    for index, item in enumerate(df['delete']):
        if item == 1:
            rows_to_delete.append(index)
    df = df.drop(rows_to_delete)
    return(rows_to_delete, df)