
from nba import enums
from nba.utils import clean_locals
from nba.endpoints.baseendpoint import BaseEndpoint


class PlayByPlay(BaseEndpoint):

    def playbyplay(self, GameID, StartPeriod=enums.StartPeriod.Default, EndPeriod=enums.EndPeriod.Default):
        """
        Play by play data for a given game, comments from home, away and neutral perspective.
    
        :param GameID: ID of the game to get data for.
        :type GameID: str
        :param StartPeriod: starting period filter on the data.
        :type StartPeriod: nba.nba.bin.enums.StartPeriod
        :param EndPeriod: ending period filter on the data.
        :type EndPeriod: nba.nba.bin.enums.EndPeriod
        :returns: play by play event descriptions and details of players involved
        :rtype: Dataframe
    
        """
        params = clean_locals(locals())
        endpoint = 'playbyplayv2'
        r = self.request(endpoint, params)
        df = self.process_response(r, 0, 'resultSets')
        return df

@@ -146,26 +146,28 @@
     def play
+_
 by
+_
 play(self, G
@@ -169,22 +169,24 @@
 lf, 
-GameID, S
+game_id, s
 tart
-P
+_p
 erio
@@ -214,20 +214,21 @@
 efault, 
-EndP
+end_p
 eriod=en
@@ -377,22 +377,23 @@
  :param 
-GameID
+game_id
 : ID of 
@@ -436,14 +436,15 @@
 ype 
-GameID
+game_id
 : st
@@ -460,22 +460,23 @@
  :param 
-S
+s
 tart
-P
+_p
 eriod: s
@@ -524,22 +524,23 @@
   :type 
-S
+s
 tart
-P
+_p
 eriod: n
@@ -583,20 +583,21 @@
  :param 
-EndP
+end_p
 eriod: e
@@ -643,20 +643,21 @@
   :type 
-EndP
+end_p
 eriod: n

Fix playbyplay endpoints