thecodeforest / fantasyfootball

MIT License
7 stars 1 forks source link

Not an issue #43

Closed mharrison0224 closed 1 year ago

mharrison0224 commented 1 year ago

Just want to say thank you for building this! I'm trying to learn python with fantasy football and this package is a god send! Your hardwork is appreciated!

mharrison0224 commented 1 year ago

haha okay actually i do have an issue: i got this error when running the default commands from the readme.md File "C:\Users\myuseraccount\AppData\Local\Programs\Python\Python310\lib\site-packages\fantasyfootball\data.py", line 51, in _validate_season_year_range min_year = min(season_years) ValueError: min() arg is an empty sequence

here is the command: from janitor import get_features_targets from xgboost import XGBRegressor

from fantasyfootball.data import FantasyData from fantasyfootball.features import FantasyFeatures from fantasyfootball.benchmarking import filter_to_prior_week

fantasy_data = FantasyData(season_year_start='2021', season_year_end='2022')

thecodeforest commented 1 year ago

Glad you find it useful @mharrison0224 ! And thank you for the details around the issue. Could you re-try by passing the season_year_start and season_year_end as integers and not strings?

thecodeforest commented 1 year ago

Closing this issue.