def _extract_player_stats(self, table, player_dict):
for row in table('<STR_LIT>').items():<EOL><INDENT>player_id = self._find_player_id(row)<EOL>if not player_id:<EOL><INDENT>continue<EOL><DEDENT>name = self._find_player_name(row)<EOL>home_or_away = self._find_home_or_away(row)<EOL>try:<EOL><INDENT>player_dict[player_id]['<STR_LIT:data>'] += str(row).strip()<EOL><DEDENT>except KeyError:<EOL><INDENT>player_dict[player_id] = {<EOL>'<STR_LIT:name>': name,<EOL>'<STR_LIT:data>': str(row).strip(),<EOL>'<STR_LIT>': home_or_away<EOL>}<EOL><DEDENT><DEDENT>return player_dict<EOL>
Combine all player stats into a single object.

Since each player generally has a couple of rows worth of stats
(rushing, passing, defense, and more) on the boxscore page, both rows
should be combined into a single string object to easily query all
fields from a single object instead of determining which row to pull
metrics from.

Parameters
----------
table : PyQuery object
    A PyQuery object of a single boxscore table, such as the home
    team's advanced stats or the away team's basic stats.
player_dict : dictionary
    A dictionary where each key is a string of the player's ID and each
    value is a dictionary where the values contain the player's name,
    HTML data, and a string constant indicating which team the player
    is a member of.

Returns
-------
dictionary
    Returns a ``dictionary`` where each key is a string of the player's
    ID and each value is a dictionary where the values contain the
    player's name, HTML data, and a string constant indicating which
    team the player is a member of.