Some keys in 'stats' dict for Player object are numbers #651
Replies: 2 comments 4 replies
-
|
Hi, I am also digging into player stats for my fantasy league. I'm curious which method did you call to get that output because my JSON response for Lamar Jackson (I was testing it for your question) is a bit different. Did you pull this with league.player_info(playerId=3916387) for 2024 season? Or via accessing the player through the roster? I think the numbers that show up as keys have something to do with scoring settings for the league. Maybe if you have a certain scenario unchecked in your league, it comes across as a number. As an example, your payload includes: passing300To399YardGame': 0.177428356 but mine does not, and I confirmed that I have that option unchecked in my league scoring settings. If I could get my payload to match yours we might be able to triangulate on the keys. |
Beta Was this translation helpful? Give feedback.
-
|
@brikc that would make sense! The method I used to retrieve Player instances was: Then, If you are using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I spent some time working backwards through the python code to find this, but some keys in the 'stats' dict are numbers rather than named. It would be helpful to know what these represent (or where they come from). I'm very curious to understand what they are.
Example: Lamar Jackson
{1: {'projected_points': 21.93,
'projected_breakdown': {'passingAttempts': 29.42747142,
'passingCompletions': 19.57216397,
'passingIncompletions': 9.855307454,
'passingYards': 235.1190702,
'passingTouchdowns': 1.840532493,
'5': 47.0, <------ ???
'6': 23.0,
'7': 11.0,
'8': 9.0,
'9': 4.0,
'10': 2.0,
'11': 3.0,
'12': 1.0, <------ ???
'passing40PlusYardTD': 0.187897253,
'passing50PlusYardTD': 0.122790855,
'passing300To399YardGame': 0.177428356,
'passing400PlusYardGame': 0.023965919,
'passing2PtConversions': 0.084506857,
'passingInterceptions': 0.593560007,
'passingCompletionPercentage': 0.665098394,
'rushingAttempts': 8.309834847,
'rushingYards': 51.58898176,
'rushingTouchdowns': 0.254203748,
'rushing2PtConversions': 0.009961347,
'27': 10.0, <------ ???
'28': 5.0,
'29': 2.0,
'30': 2.0,
'31': 1.0,
'33': 1.0, <------ ???
'rushing40PlusYardTD': 0.016410738,
'rushing50PlusYardTD': 0.011487517,
'rushing100To199YardGame': 0.116369401,
'rushing200PlusYardGame': 0.003971241,
'rushingYardsPerAttempt': 6.208183762,
'2PtConversions': 0.094468204,
'fumbleRecoveredForTD': 0.002505968,
'passingTimesSacked': 2.205078462,
'65': 0.451048355, <------ ???
'66': 0.118489889, <------ ???
'fumbles': 0.569538244,
'69': 0.21650321, <------ ???
'70': 0.054505349, <------ ???
'lostFumbles': 0.271008559,
'turnovers': 0.864568566,
'210': 1.0, <------ ???
'211': 11.15860679, <------ ???
'212': 2.55815856}, <------ ???
'projected_avg_points': 0},
Beta Was this translation helpful? Give feedback.
All reactions