nflverse / nfl_data_py

Python code for working with NFL play by play data.
MIT License
278 stars 53 forks source link

Data Dictionary #38

Closed DavidAllyn68 closed 1 year ago

DavidAllyn68 commented 2 years ago

Hey guys - thanks for pulling this all together!!! Do you have a data dictionary explaining the columns? Most are self explanatory, but a few are cryptic (e.g. in weekly_data dakota, pacr, racr, wopr, and ..._epa).

alecglen commented 2 years ago

Hi @DavidAllyn68! This project is mostly a wrapper of data compiled by the nflfastR community, and as such, their documentation holds what you're looking for. It can take a little searching to find the correct mapping from their function names to these - here is the page for weekly_data!

DavidAllyn68 commented 2 years ago

Thanks!

Best Regards, David Allyn @.*** LinkedIn https://www.linkedin.com/pub/david-allyn/4/1aa/252 Twitter: @DavidAllyn68 https://twitter.com/DavidAllyn68

On Mon, Oct 17, 2022, at 5:47 PM, Alec Ostrander wrote:

Hi @DavidAllyn68 https://github.com/DavidAllyn68! This project is mostly a wrapper of data compiled by the nflfastR community https://discord.com/invite/5Er2FBnnQa, and as such, their documentation https://www.nflfastr.com/index.html holds what you're looking for. It can take a little searching to find the correct mapping from their function names to these - here https://www.nflfastr.com/reference/calculate_player_stats.html is the page for weekly_data!

— Reply to this email directly, view it on GitHub https://github.com/cooperdff/nfl_data_py/issues/38#issuecomment-1281671474, or unsubscribe https://github.com/notifications/unsubscribe-auth/AE3DBINLYRLVZMKM7FPUCIDWDXXTNANCNFSM6AAAAAARHHHNJY. You are receiving this because you were mentioned.Message ID: @.***>

Alex-Bishka commented 10 months ago

Was looking through this, and the vignettes, but I'm still confused by a couple of stats.

For example, wopr_x and wopr_y are in the seasonal data, but I only see a definition for for wopr:

Weighted OPportunity Rating - 1.5 x target_share + 0.7 x air_yards_share - a weighted average that contextualizes total fantasy usage.

What do the letters x and y mean? Expected and actual? Horizontal and vertical? Is there a more detailed resource available somewhere?

Thanks!