@sportsref.decorators.memoize<EOL><INDENT>@sportsref.decorators.kind_rpb(include_type=True)<EOL>def gamelog_advanced(self, year, kind='<STR_LIT:R>'):<DEDENT>
doc = self.get_sub_doc('<STR_LIT>'.format(year))<EOL>table = (doc('<STR_LIT>')<EOL>if kind == '<STR_LIT:P>' else doc('<STR_LIT>'))<EOL>df = sportsref.utils.parse_table(table)<EOL>return df<EOL>
Returns a table of a player's advanced game-by-game stats for a
        season.

        :param year: The year representing the desired season.
        :param kind: specifies regular season, playoffs, or both. One of 'R',
            'P', 'B'. Defaults to 'R'.
        :returns: A DataFrame of the player's advanced stats from each game of
            the season.
        :rtype: pd.DataFrame