@sportsref.decorators.memoize<EOL><INDENT>def snap_counts(self):<DEDENT>
<EOL>doc = self.get_doc()<EOL>table_ids = ('<STR_LIT>', '<STR_LIT>')<EOL>tms = (self.away(), self.home())<EOL>df = pd.concat([<EOL>sportsref.utils.parse_table(doc('<STR_LIT>'.format(table_id)))<EOL>.assign(is_home=bool(i), team=tms[i], opp=tms[i*-<NUM_LIT:1>+<NUM_LIT:1>])<EOL>for i, table_id in enumerate(table_ids)<EOL>])<EOL>if df.empty:<EOL><INDENT>return df<EOL><DEDENT>return df.set_index('<STR_LIT>')<EOL>
Gets the snap counts for both teams' players and returns them in a
        DataFrame. Note: only goes back to 2012.

        :returns: DataFrame of snap count data