Skip to content

Conversation

@brandonhawi
Copy link

Summary

This PR removes the PF (Personal Fouls) context measure from the ContextMeasureSimple class as it has been deprecated by the NBA.com API.

Issue

Fixes #600

Details

The NBA.com API endpoint for shotchartdetail no longer returns data when using PF as a context measure. Other context measures such as FGA, FGM, PTS, EFG_PCT, and TS_PCT continue to function correctly.

This appears to be a backend change by the NBA, as Personal Fouls are not a relevant metric for filtering shot chart data (which focuses on shooting statistics).

Changes

  • Removed pf = "PF" from the ContextMeasureSimple class in src/nba_api/stats/library/parameters.py

Testing

Users who were experiencing issues with the PF context measure returning no data should no longer be able to use this deprecated parameter, preventing confusion and API errors.

The NBA.com API no longer returns data when using "PF" (Personal Fouls) as a context measure for the shotchartdetail endpoint. Other context measures like FGA, FGM, and PTS continue to work correctly.

Fixes swar#600
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

Successfully merging this pull request may close these issues.

shotchartdetail issue - context measure "PF" no longer returns data

1 participant