tbryan2 / espnfantasyfootball Goto Github PK
View Code? Open in Web Editor NEWSimpler method of pulling ESPN Fantasy Football matchup data and player data using pre-built functions.
Simpler method of pulling ESPN Fantasy Football matchup data and player data using pre-built functions.
Starting in Week 8 of the 2023 season (Oct 24, 2023), I've been unable to use the get_league_data function. I'm seeing a "KeyError: 'location'" error when trying to pull information about any of my 3 leagues. Up until this point, things had been working perfectly. Thank you!
Terminal output
File "C:\Users\MYUSERNAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\espnfantasyfootball\espnfantasyfootball.py", line 206, in get_league_data
self.load_team_names(week)
File "C:\Users\MYUSERNAME\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\espnfantasyfootball\espnfantasyfootball.py", line 150, in load_team_names
team_location.append(team_json['teams'][team]['location'])
ufunc 'add' did not contain a loop with signature matching types (dtype('float64'), dtype('<U1')) -> None
File "/Users/mitchellgay/Documents/GitHub/FantasyOdds/FantasyLines.py", line 10, in
matchup_data = league.get_matchup_data()
^^^^^^^^^^^^^^^^^^^^^^^^^
numpy.core._exceptions._UFuncNoLoopError: ufunc 'add' did not contain a loop with signature matching types (dtype('float64'), dtype('<U1')) -> None
I keep getting this error when using espn.get_matchup_data()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.