def sanitize(extracted_df):
    """
    Drops all rows that have invalid values
    :param extracted_df: The dataframe generated from the data extracted from the loaded file
    :return: A dataframe with no invalid values
    """
    columns = extracted_df.columns
    cleaned_df = extracted_df.copy()

    print('Removing invalid values')
    print(f'Total values before invalid value removal: {len(extracted_df.index)}')

    for column in columns:
        cleaned_df = cleaned_df[cleaned_df[column] != -1]

    print('Invalid values removed')
    print(f'Total values after invalid value removal: {len(cleaned_df.index)}')

    return cleaned_df