-
Notifications
You must be signed in to change notification settings - Fork 113
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
Fan Duel CSV Upload #197
Comments
Can you attach the CSV you're attempting to ingest? It looks like the header doesn't have |
both csv's i used appear to have position. I used the below sheet for this attempt: I read in a previous comment that it hasnt been designed for the lineup build csv so i also tried with this version and got a different error. I have attached that below as well. I'll keep trying things out to see if I can fix it it may just be a simple error that i'm missing. Thanks, |
I think you need to invoke draftfast/draftfast/test/test_optimize.py Lines 102 to 114 in b3278d0
|
Nevermind, you need to do this:
game=rules.FAN_DUEL,
instead of
game=rules.FD_NFL_RULE_SET
…On Wed, Sep 14, 2022 at 8:30 AM Ram Goli ***@***.***> wrote:
Try this path instead:
salary_file_location="C://Users//J//Desktop//fdplayersweek2.csv"
On Wed, Sep 14, 2022 at 8:27 AM Ben Brostoff ***@***.***>
wrote:
> I think you need to invoke game with either DRAFT_KINGS or FAN_DUEL -
> generate_players_from_csv expects a str instead of a Ruleset. You can
> see an example here
> https://github.com/BenBrostoff/draftfast/blob/b3278d0913e85084394f047fb1bfd6808e56c6b7/draftfast/test/test_optimize.py#L102-L114
>
> —
> Reply to this email directly, view it on GitHub
> <#197 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AF6P2UVAEWTNY2BKCYW5FBTV6HAD3ANCNFSM6AAAAAAQL44SDA>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
|
It worked. Thank y'all so much! Will likely have more questions as I work to build my tests out, greatly appreciate this. |
Very new to coding here, so this may be a simple issue, but im having trouble importing Fan duel CSV.
Here is the error im getting:
The text was updated successfully, but these errors were encountered: