def adv_season_data_filter(season_data, season):
    """
  A function that fixes a problem with the advanced data from multiple years
  ----------
  Parameters
  ----------
    season_data: DataFrame
    season: int
  """
    season_data = season_data[(season_data['offense.drives'] > 5) & (
        season_data['defense.drives'] > 5) & (season_data['offense.plays'] >
        29) & (season_data['defense.plays'] > 29)].copy().reset_index(drop=True
        )
    if season == 2014:
        season_data.loc[(season_data.team == 'Stanford') & (season_data.
            opponent == 'UC Davis'), 'offense.drives'] = 14
        season_data.loc[(season_data.team == 'Stanford') & (season_data.
            opponent == 'UC Davis'), 'defense.drives'] = 15
    elif season == 2015:
        season_data.loc[(season_data.team == 'Alabama') & (season_data.
            opponent == 'Charleston Southern'), 'offense.drives'] = 10
        season_data.loc[(season_data.team == 'Alabama') & (season_data.
            opponent == 'Charleston Southern'), 'defense.drives'] = 11
    elif season == 2016:
        season_data.loc[(season_data.team == 'Kent State') & (season_data.
            opponent == 'Northern Illinois'), 'offense.drives'] = 16
        season_data.loc[(season_data.team == 'Kent State') & (season_data.
            opponent == 'Northern Illinois'), 'defense.drives'] = 17
        season_data.loc[(season_data.team == 'Northern Illinois') & (
            season_data.opponent == 'Kent State'), 'offense.drives'] = 17
        season_data.loc[(season_data.team == 'Northern Illinois') & (
            season_data.opponent == 'Kent State'), 'defense.drives'] = 16
    return season_data
