SHARE
TWEET

Untitled

a guest Mar 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def remove_Teams_If_Program_Does_Not_Exist_Yet(teams, year):
  2.     if year < 2019:
  3.         for program in ['California Baptist', 'North Alabama']:
  4.             teams = drop_School_From_DataFrame(teams, program)
  5.         if year < 2014:
  6.             for program in ['Grand Canyon', 'Incarnate Word', 'Massachusetts-Lowell']:
  7.                 teams = drop_School_From_DataFrame(teams, program)
  8.             if year < 2013:
  9.                 if year > 1973:
  10.                     teams = drop_School_From_DataFrame(teams, 'Abilene Christian')
  11.                 for program in ['Northern Kentucky', 'nebraska-omaha']:
  12.                     teams = drop_School_From_DataFrame(teams, program)
  13.                 if year == 2012 or year == 2011:
  14.                     teams = drop_School_From_DataFrame(teams, 'New Orleans')
  15.                 if year < 2011:
  16.                     for program in ['Bryant', 'Cal State Bakersfield', 'Central Arkansas', 'Florida Gulf Coast', 'Houston Baptist',
  17.                                     'North Carolina Central', 'North Dakota', 'Presbyterian', 'Seattle', 'South Carolina Upstate',
  18.                                     'South Dakota', 'southern-illinois-edwardsville']:
  19.                         teams = drop_School_From_DataFrame(teams, program)
  20.                     if year < 2010:
  21.                         for program in ['Kennesaw State', 'NJIT','North Florida', 'Utah Valley']:
  22.                             teams = drop_School_From_DataFrame(teams, program)                 
  23.                         if year < 2009:
  24.                             for program in ['North Dakota State', 'South Dakota State']:
  25.                                 teams = drop_School_From_DataFrame(teams, program)                 
  26.                             if year < 2008:
  27.                                 for program in ['california-davis', 'Longwood', 'Northern Colorado']:
  28.                                     teams = drop_School_From_DataFrame(teams, program)             
  29.                                 if year < 2004:
  30.                                     teams = drop_School_From_DataFrame(teams, 'Lipscomb')          
  31.                                     if year < 2003:
  32.                                         for program in ['Gardner-Webb', 'IPFW', 'Savannah State', 'Texas A&M-Corpus Christi']:
  33.                                             teams = drop_School_From_DataFrame(teams, program)
  34.                                         if year < 2002:
  35.                                             for program in ['Binghamton', 'california-riverside']:
  36.                                                 teams = drop_School_From_DataFrame(teams, program)
  37.                                             if year < 2000:
  38.                                                 for program in ['Alabama A&M', 'Albany (NY)', 'Belmont', 'Elon', 'High Point', 'Oakland', 'Sacred Heart', 'Stony Brook']:
  39.                                                     teams = drop_School_From_DataFrame(teams, program) 
  40.     return (teams.reset_index()['School'])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top