Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meaning of statistics keys #478

Open
carlobongiovanni opened this issue Oct 13, 2023 · 3 comments
Open

meaning of statistics keys #478

carlobongiovanni opened this issue Oct 13, 2023 · 3 comments

Comments

@carlobongiovanni
Copy link

Sport

Basketball

Summary

hi, has anybody understood what is the meaning of those statistics which have a number as key? For e.g.: in this example you can see that some keys in the stats["2024_projected"] are named 30, 31, 32, etc..

Kemba Walker 6479 [] DAL PG {'applied_total': 19.0, 'applied_avg': 19.0, 'team': None, 'date': None, 'avg': {'PTS': 12.0, 'STL': 1.0, 'AST': 4.0, 'REB': 3.0, 'TO': 1.0, 'FGM': 4.0, 'FGA': 11.0, 'FTM': 2.0, 'FTA': 3.0, '3PTM': 2.0, '3PTA': 6.0, 'FG%': 0.412, 'FT%': 0.86, '3PT%': 0.35, '23': 7.0, '24': 1.0, '25': 4.0, '26': 3.6, '27': 0.2, 'MPG': 25.3, '29': 13.0442, '30': 3.0, '31': 0.7, '32': 1.3, '33': 2.0, '34': 0.52, '35': 4.0, '36': 1.0, 'MIN': 25.3, 'GP': 1.0}, 'total': {'PTS': 12.0, 'STL': 1.0, 'AST': 4.0, 'REB': 3.0, 'TO': 1.0, 'FGM': 4.0, 'FGA': 11.0, 'FTM': 2.0, 'FTA': 3.0, '3PTM': 2.0, '3PTA': 6.0, 'FG%': 0.412, 'FT%': 0.86, '3PT%': 0.35, '23': 7.0, '24': 1.0, '25': 4.0, '26': 3.6, '27': 0.2, 'MPG': 25.3, '29': 13.0442, '30': 3.0, '31': 0.7, '32': 1.3, '33': 2.0, '34': 0.52, '35': 4.0, '36': 1.0, 'MIN': 25.3, 'GP': 1.0}}

thanks

Logs/Data

No response

@bigkho
Copy link

bigkho commented Oct 17, 2023

I don't know why they're bothered to be mapped but I'm pretty sure it's just filler repeating stats. The API seems to just have a list from 0-40 ish and has a lot of miscellaneous stats that just appear to repeat itself. The author of this API has correctly mapped each stat, and ignored the ones that have no significance by mapping it with their index it seems. I don't think you gotta worry too much about those, and I hope this helps.

@cwendt94
Copy link
Owner

Thanks @bigkho, yeah we tried to map all of the important stats and hopefully haven't missed any. The ones that are numbered and don't have a name basically means we don't know exactly what they are.

ESPN doesn't directly tell use the mapping so we have to do a lot of manual checking and figuring it from their UI to then the data. If you are looking for a stat that is not named in the API it could possibly be one of those numbers. But like @bigkho said they do have a lot of random/repeated stats as well.

@samthom1
Copy link
Contributor

The only one I've found significance in is the '30' in Hockey denotes to games appeared in. There are separate mappings for goalie games started and skater games played, but the '30' field universally indicates the number of games a player actually appeared in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants