pydfs-lineup-optimizer
pydfs-lineup-optimizer copied to clipboard
Starter
I'm trying to force starting players in Mvp slot to confirmed starters , can anyone help with coding that? @DimaKudosh. @sansbacon
You can achieve this using player groups:
optimizer.add_players_group(PlayersGroup(
[player for player in optimizer.players if 'MVP' in player.positions and player.is_confirmed_starter],
min_from_group=1,
))
@Denwen12 assuming your question is for Fanduel. Im looking at a player CSV for showdown mode....and dont see a column for Confirmed Starter. Do you make one and put a Y or something in a field?
You are correct, you make that column and it should say true
On Tue, Sep 28, 2021, 9:36 AM lightninglarry @.***> wrote:
@Denwen12 https://github.com/Denwen12 assuming your question is for Fanduel. Im looking at a player CSV for showdown mode....and dont see a column for Confirmed Starter. Do you make one and put a Y or something in a field?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/DimaKudosh/pydfs-lineup-optimizer/issues/297#issuecomment-929217101, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANBWO7QR4PT2PWF72ZRM333UEHAGFANCNFSM5EDHH4LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
@Denwen12 how would you tackle this for nba with 2 other non utility spots. Mvp, star, pro positions?