sportsref/nfl/teams.py
def team_stats(self, year):
        """Returns a Series (dict-like) of team stats from the team-season
        page.

        :year: Int representing the season.
        :returns: A Series of team stats.
        """
        doc = self.get_year_doc(year)
        table = doc('table#team_stats')
        df = sportsref.utils.parse_table(table)
        if df.empty:
            return pd.Series()
        return df.loc[df.player_id == 'Team Stats'].iloc[0]
def team_stats(self, year):
        """Returns a Series (dict-like) of team stats from the team-season
        page.

        :year: Int representing the season.
        :returns: A Series of team stats.
        """
        doc = self.get_year_doc(year)
        table = doc('table#team_stats')
        df = sportsref.utils.parse_table(table)
        if df.empty:
            return pd.Series()
        return df.loc[df.player_id == 'Team Stats'].iloc[0]
def team_stats ( self , year ) : doc = self . get_year_doc ( year ) table = doc ( 'table#team_stats' ) df = sportsref . utils . parse_table ( table ) if df . empty : return pd . Series ( ) return df . loc [ df . player_id == 'Team Stats' ] . iloc [ 0 ]
Returns a Series (dict-like) of team stats from the team-season
        page.

        :year: Int representing the season.
        :returns: A Series of team stats.
Returns a Series ( dict - like ) of team stats from the team - season page .