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

Structured outputs (lineups & statistics) #394

Open
mcarroll316 opened this issue Dec 15, 2022 · 4 comments
Open

Structured outputs (lineups & statistics) #394

mcarroll316 opened this issue Dec 15, 2022 · 4 comments

Comments

@mcarroll316
Copy link

mcarroll316 commented Dec 15, 2022

Do the following have structured output options?

  1. for lineup in optimizer.optimize(10):
    print(lineup)
  2. print_statistic()

Each of those result in a text blob that I've built a parser for (not great). I'm not much of a python guy so trying to avoid modifications to the pydfs code.

@chanzer0
Copy link

optimizer.export('result.csv')

@mcarroll316
Copy link
Author

No. That gets me the lineups in the format to be uploaded directly into DK, for example. What I was looking for is have a structured output that includes the team, salary, player points, etc., just as you'd see when you print the lineups. Same goes for the statistics (players used) output. I built a custom parser and all is well now. Thanks.

@mcarroll316
Copy link
Author

I should've mentioned that I've implemented this in my site with a fully-functional UI for the optimizer, which is why I needed to pretty-up the print outputs.

moonshotsmlb dot com

@Denwen12
Copy link

Denwen12 commented Jan 11, 2023 via email

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

3 participants