pydfs-lineup-optimizer
pydfs-lineup-optimizer copied to clipboard
[FEATURE]: Team Groups similar to PlayerGroups
Is there a way to group teams like player groups? For example, we can use PlayersGroup(optimizer.player_pool.get_players('Corbin Burnes', 'Tony Gonsolin'))
like this, but I would like to be able to do the same thing with stacks for MLB. So it would look something like this TeamGroup((optimizer.player_pool.get_players('ATL', 'LAD'), stack=[5,2])
. That way, I can give the optimizer multiple pairs to stack instead of giving a list of teams and risk having teams I don't want to pair together.