sportsref/nfl/boxscores.py
def player_stats(self):
        """Gets the stats for offense, defense, returning, and kicking of
        individual players in the game.
        :returns: A DataFrame containing individual player stats.
        """
        doc = self.get_doc()
        tableIDs = ('player_offense', 'player_defense', 'returns', 'kicking')
        dfs = []
        for tID in tableIDs:
            table = doc('table#{}'.format(tID))
            dfs.append(sportsref.utils.parse_table(table))
        dfs = [df for df in dfs if not df.empty]
        df = reduce(
            lambda x, y: pd.merge(
                x, y, how='outer', on=list(set(x.columns) & set(y.columns))
            ), dfs
        ).reset_index(drop=True)
        return df
def player_stats(self):
        """Gets the stats for offense, defense, returning, and kicking of
        individual players in the game.
        :returns: A DataFrame containing individual player stats.
        """
        doc = self.get_doc()
        tableIDs = ('player_offense', 'player_defense', 'returns', 'kicking')
        dfs = []
        for tID in tableIDs:
            table = doc('table#{}'.format(tID))
            dfs.append(sportsref.utils.parse_table(table))
        dfs = [df for df in dfs if not df.empty]
        df = reduce(
            lambda x, y: pd.merge(
                x, y, how='outer', on=list(set(x.columns) & set(y.columns))
            ), dfs
        ).reset_index(drop=True)
        return df
def player_stats ( self ) : doc = self . get_doc ( ) tableIDs = ( 'player_offense' , 'player_defense' , 'returns' , 'kicking' ) dfs = [ ] for tID in tableIDs : table = doc ( 'table#{}' . format ( tID ) ) dfs . append ( sportsref . utils . parse_table ( table ) ) dfs = [ df for df in dfs if not df . empty ] df = reduce ( lambda x , y : pd . merge ( x , y , how = 'outer' , on = list ( set ( x . columns ) & set ( y . columns ) ) ) , dfs ) . reset_index ( drop = True ) return df
Gets the stats for offense, defense, returning, and kicking of
        individual players in the game.
        :returns: A DataFrame containing individual player stats.
Gets the stats for offense defense returning and kicking of individual players in the game . : returns : A DataFrame containing individual player stats .