@property<EOL><INDENT>def dataframe(self):<DEDENT>
<EOL>if self._runs_allowed is None and self._runs_scored is None:<EOL><INDENT>return None<EOL><DEDENT>fields_to_include = {<EOL>'<STR_LIT>': self.attendance,<EOL>'<STR_LIT>': self.boxscore_index,<EOL>'<STR_LIT:date>': self.date,<EOL>'<STR_LIT>': self.datetime,<EOL>'<STR_LIT>': self.game_number_for_day,<EOL>'<STR_LIT>': self.day_or_night,<EOL>'<STR_LIT>': self.game,<EOL>'<STR_LIT>': self.game_duration,<EOL>'<STR_LIT>': self.games_behind,<EOL>'<STR_LIT>': self.innings,<EOL>'<STR_LIT:location>': self.location,<EOL>'<STR_LIT>': self.loser,<EOL>'<STR_LIT>': self.opponent_abbr,<EOL>'<STR_LIT>': self.rank,<EOL>'<STR_LIT>': self.record,<EOL>'<STR_LIT:result>': self.result,<EOL>'<STR_LIT>': self.runs_allowed,<EOL>'<STR_LIT>': self.runs_scored,<EOL>'<STR_LIT>': self.save,<EOL>'<STR_LIT>': self.streak,<EOL>'<STR_LIT>': self.winner<EOL>}<EOL>return pd.DataFrame([fields_to_include], index=[self._boxscore])<EOL>
Returns a pandas DataFrame containing all other class properties and
values. The index for the DataFrame is the boxscore string.