You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to access the number of offensive plays ran by each team in a game? I wrote a function to do this but it relies on some possibly unreliable specific strings in the play text.
def numPlays(year,week,team):
games=nflgame.games(year, week=week, home=team,away=team)
plays = nflgame.combine_plays(games)
n = 0
for play in plays.filter(team=team):
if 'No Play' not in str(play) and 'kicks' not in str(play):
n+=1
return n
The text was updated successfully, but these errors were encountered:
naymikm
changed the title
Plays successfully ran by each team
Offensive plays ran by each team
Oct 5, 2017
naymikm
changed the title
Offensive plays ran by each team
Offensive plays ran by a team
Oct 5, 2017
Is there a way to access the number of offensive plays ran by each team in a game? I wrote a function to do this but it relies on some possibly unreliable specific strings in the play text.
The text was updated successfully, but these errors were encountered: