mjk2244 / pro-football-reference-web-scraper

Web scraper to retrieve player and team data from Pro Football Reference.
https://mjk2244.github.io/pro-football-reference-web-scraper/
Apache License 2.0
28 stars 19 forks source link

Fixed an issue where you scrape current year you would get an error #57

Open RobbyG1989 opened 10 months ago

RobbyG1989 commented 10 months ago

Have to add some conditional ifs for each of the ints if you're trying to pull current year, you'll get a ValueError since the value is blank.

RobbyG1989 commented 10 months ago

Wrong update.

emuccino commented 10 months ago

Perhaps np.nan or None should be used to fill missing stats instead of 0?