cdleong / pyfantasy

Not Playing Fantasy Sports
GNU General Public License v3.0
1 stars 0 forks source link

Graph the player data #18

Closed cdleong closed 4 years ago

cdleong commented 5 years ago

Do some exploration of the Player data.

Examples: sort the wide receivers by score, then figure out the distribution.

Sounds like a good job for Pandas and Seaborn...

cdleong commented 5 years ago

Figured out how to query for the actual data from my work league, which gave me actual fantasy points scored.

Then looped through that, and made a Pandas dataframe,

Then passed that to a Seaborn distplot, and got this:

k_top_14 qb qb_top_14 rb rb_top_14 te te_top_14 wr wr_top_14 def def_top_14 k

cdleong commented 5 years ago

Note how Patrick Mahomes kinda jumps out as an outlier here:

qb_top_14

cdleong commented 5 years ago

Boxplot!

Again, Mahomes is a clear outlier:

player_box

cdleong commented 5 years ago

It has been pointed out to me, that in our league we had TWO wide receivers per team. So some positions have, shall we say, higher demand. Graphed the top 28 for each position now:

te_top_28 qb_top_28 k_top_28 def_top_28 rb_top_28 wr_top_28