Skip to content

Conversation

@brandonhawi
Copy link

Summary

Adds deprecation warning to PlayByPlayV2 endpoint. NBA API no longer returns data for this endpoint (returns empty JSON).

Changes

  • Added deprecation notice to module docstring
  • Added deprecation notice to class docstring with Sphinx directive
  • Added runtime DeprecationWarning in __init__ directing users to PlayByPlayV3

Validation

from nba_api.stats.endpoints import PlayByPlayV2
# Should show deprecation warning
pbp = PlayByPlayV2(game_id="0022300001")

Fixes

Closes #591

Pattern

Follows existing deprecation pattern from BoxScoreTraditionalV2.

Add deprecation warning to PlayByPlayV2 endpoint following the established
pattern used in BoxScoreTraditionalV2. The NBA API no longer returns data
for this endpoint (returns empty JSON).

Users are directed to use PlayByPlayV3 instead.

Fixes swar#591
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.

Empty DataFrame playbyplayv2

1 participant