Position Pool
pangadfs.pospool
¶
PospoolDefault()
¶
Bases: PospoolBase
Source code in pangadfs/base.py
pospool(*, pool, posfilter, column_mapping, flex_positions=('RB', 'WR', 'TE'), **kwargs)
¶
Creates initial position pool
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pool
|
DataFrame
|
|
required |
posfilter
|
Dict[str, int]
|
filter out low scorers by position |
required |
column_mapping
|
Dict[str, str]
|
column names for player, position, salary, projection |
required |
flex_positions
|
Iterable[str]
|
e.g. (WR, RB, TE) |
('RB', 'WR', 'TE')
|
**kwargs
|
Keyword arguments for plugins (other than default) |
{}
|
Returns:
Type | Description |
---|---|
Dict[str, DataFrame]
|
Dict[str, pd.DataFrame] where keys == posfilter.keys |