original_docstring: 
          This method appends to the log dataframe found in self.gamelog 
          :param player_name: player object, not player-name 
          :param action: action, card type string 
          
docstring: This method appends to the log dataframe found in self.gamelog
docstring_tokens: This method appends to the log dataframe found in self . gamelog
code: def log_user_action(self, player_name, action):
          """
          This method appends to the log dataframe found in self.gamelog 
          :param player_name: player object, not player-name 
          :param action: action, card type string 
          """
          log = pd.DataFrame({
              'game_id': [self.game_id],
              'round': self.round,
              'turn': self.turn,
              'player': player_name,
              'action': action,
              'reward': self.calc_points(player_name),
              'round_reward': self.calc_scores()[player_name]
          })
          df = pd.concat([self.gamelog, log], ignore_index=True).sort_values(['player', 'turn'])
          self.gamelog = df
code_tokens: def log_user_action ( self , player_name , action ) : log = pd . DataFrame ( { 'game_id' : [ self . game_id ] , 'round' : self . round , 'turn' : self . turn , 'player' : player_name , 'action' : action , 'reward' : self . calc_points ( player_name ) , 'round_reward' : self . calc_scores ( ) [ player_name ] } ) df = pd . concat ( [ self . gamelog , log ] , ignore_index = True ) . sort_values ( [ 'player' , 'turn' ] ) self . gamelog = df
short_docstring: This method appends to the log dataframe found in self.gamelog
short_docstring_tokens: This method appends to the log dataframe found in self . gamelog
comment: """
          This method appends to the log dataframe found in self.gamelog 
          :param player_name: player object, not player-name 
          :param action: action, card type string 
          """