Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError in Data_Transformations.py #4

Closed
megacorvega opened this issue Sep 29, 2019 · 1 comment
Closed

KeyError in Data_Transformations.py #4

megacorvega opened this issue Sep 29, 2019 · 1 comment

Comments

@megacorvega
Copy link

Hey all,

After running the Data_Transformations.py I'm getting:

Week 1: Team: 1 Traceback (most recent call last): File "X:\PYTHON\projects\nfl-fantasy-football-master\Data Analysis\Data_Transformations.py", line 120, in <module> player_points = float(player_points_json['fantasy_content']['league'][1]['players']['0']['player'][1]['player_points']['total']) KeyError: 'fantasy_content'

X:\PYTHON\projects\nfl-fantasy-football-master\Data Analysis>pause Press any key to continue . . .

Any ideas?

@yahoo-fantasy
Copy link
Collaborator

This should be resolved. I had my own personal League ID hard coded in the data transformations. This should now be automatic if you update the new league_info_form.txt with your League ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants