Question
Answered step-by-step

Question 5:(20 Points)  score_diff = row.item("Cal Score") - row.item("Opponent Score")   

 Sometimes in football the two teams are equally matched and the game is quite close. Other times, it is a blowout, where the winning team wins by a large margin of victory. Let's define a big win to be a game in which the winning team won by more than 10 points. Use your final_scores table to assign big_wins to an array of team names that Cal had big wins against during the 2019 football season. You may find the is_big_win function defined below helpful to you! 

def is_big_win(row):

  '''Return a boolean to describe whether or not a game (row) is a big win'''

  if score_diff > 10:

    return True

  else:

    return False



big_wins = make_array()


for row in final_scores.rows: # This will help us iterate through rows of final_scores tab

  opponent = ...

   

if ... : # You should use the function you just wrote!

   big_wins = np.append(big_wins, opponent) # Do not change this line - Adds character to the end of some_string

big_wins

Answer & Explanation
Verified Solved by verified expert

ipiscing elit. Nam latrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit

gue

sum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellen

Unlock full access to Course Hero

Explore over 16 million step-by-step answers from our library

Subscribe to view answer
Step-by-step explanation

rem ipsumongue velce dui lectus, congue vel laoreet ac,cing elit. Ns

gue

o. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nicitur laoreFusce dui lectus, congue vel laoreet ac, dictua. Fusc

gue

ec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus

Student review
100% (1 rating)