@property<EOL><INDENT>def dataframe(self):<DEDENT>
if self._away_runs is None and self._home_runs is None:<EOL><INDENT>return None<EOL><DEDENT>fields_to_include = {<EOL>'<STR_LIT:date>': self.date,<EOL>'<STR_LIT:time>': self.time,<EOL>'<STR_LIT>': self.venue,<EOL>'<STR_LIT>': self.attendance,<EOL>'<STR_LIT>': self.duration,<EOL>'<STR_LIT>': self.time_of_day,<EOL>'<STR_LIT>': self.winner,<EOL>'<STR_LIT>': self.winning_name,<EOL>'<STR_LIT>': self.winning_abbr,<EOL>'<STR_LIT>': self.losing_name,<EOL>'<STR_LIT>': self.losing_abbr,<EOL>'<STR_LIT>': self.away_at_bats,<EOL>'<STR_LIT>': self.away_runs,<EOL>'<STR_LIT>': self.away_hits,<EOL>'<STR_LIT>': self.away_rbi,<EOL>'<STR_LIT>': self.away_earned_runs,<EOL>'<STR_LIT>': self.away_bases_on_balls,<EOL>'<STR_LIT>': self.away_strikeouts,<EOL>'<STR_LIT>': self.away_plate_appearances,<EOL>'<STR_LIT>': self.away_batting_average,<EOL>'<STR_LIT>': self.away_on_base_percentage,<EOL>'<STR_LIT>': self.away_slugging_percentage,<EOL>'<STR_LIT>': self.away_on_base_plus,<EOL>'<STR_LIT>': self.away_pitches,<EOL>'<STR_LIT>': self.away_strikes,<EOL>'<STR_LIT>':<EOL>self.away_win_probability_for_offensive_player,<EOL>'<STR_LIT>': self.away_average_leverage_index,<EOL>'<STR_LIT>': self.away_win_probability_added,<EOL>'<STR_LIT>':<EOL>self.away_win_probability_subtracted,<EOL>'<STR_LIT>': self.away_base_out_runs_added,<EOL>'<STR_LIT>': self.away_putouts,<EOL>'<STR_LIT>': self.away_assists,<EOL>'<STR_LIT>': self.away_innings_pitched,<EOL>'<STR_LIT>': self.away_home_runs,<EOL>'<STR_LIT>': self.away_strikes_by_contact,<EOL>'<STR_LIT>': self.away_strikes_swinging,<EOL>'<STR_LIT>': self.away_strikes_looking,<EOL>'<STR_LIT>': self.away_grounded_balls,<EOL>'<STR_LIT>': self.away_fly_balls,<EOL>'<STR_LIT>': self.away_line_drives,<EOL>'<STR_LIT>': self.away_unknown_bat_type,<EOL>'<STR_LIT>': self.away_game_score,<EOL>'<STR_LIT>': self.away_inherited_runners,<EOL>'<STR_LIT>': self.away_inherited_score,<EOL>'<STR_LIT>':<EOL>self.away_win_probability_by_pitcher,<EOL>'<STR_LIT>': self.away_base_out_runs_saved,<EOL>'<STR_LIT>': self.home_at_bats,<EOL>'<STR_LIT>': self.home_runs,<EOL>'<STR_LIT>': self.home_hits,<EOL>'<STR_LIT>': self.home_rbi,<EOL>'<STR_LIT>': self.home_earned_runs,<EOL>'<STR_LIT>': self.home_bases_on_balls,<EOL>'<STR_LIT>': self.home_strikeouts,<EOL>'<STR_LIT>': self.home_plate_appearances,<EOL>'<STR_LIT>': self.home_batting_average,<EOL>'<STR_LIT>': self.home_on_base_percentage,<EOL>'<STR_LIT>': self.home_slugging_percentage,<EOL>'<STR_LIT>': self.home_on_base_plus,<EOL>'<STR_LIT>': self.home_pitches,<EOL>'<STR_LIT>': self.home_strikes,<EOL>'<STR_LIT>':<EOL>self.home_win_probability_for_offensive_player,<EOL>'<STR_LIT>': self.home_average_leverage_index,<EOL>'<STR_LIT>': self.home_win_probability_added,<EOL>'<STR_LIT>':<EOL>self.home_win_probability_subtracted,<EOL>'<STR_LIT>': self.home_base_out_runs_added,<EOL>'<STR_LIT>': self.home_putouts,<EOL>'<STR_LIT>': self.home_assists,<EOL>'<STR_LIT>': self.home_innings_pitched,<EOL>'<STR_LIT>': self.home_home_runs,<EOL>'<STR_LIT>': self.home_strikes_by_contact,<EOL>'<STR_LIT>': self.home_strikes_swinging,<EOL>'<STR_LIT>': self.home_strikes_looking,<EOL>'<STR_LIT>': self.home_grounded_balls,<EOL>'<STR_LIT>': self.home_fly_balls,<EOL>'<STR_LIT>': self.home_line_drives,<EOL>'<STR_LIT>': self.home_unknown_bat_type,<EOL>'<STR_LIT>': self.home_game_score,<EOL>'<STR_LIT>': self.home_inherited_runners,<EOL>'<STR_LIT>': self.home_inherited_score,<EOL>'<STR_LIT>':<EOL>self.home_win_probability_by_pitcher,<EOL>'<STR_LIT>': self.home_base_out_runs_saved<EOL>}<EOL>return pd.DataFrame([fields_to_include], index=[self._uri])<EOL>
Returns a pandas DataFrame containing all other class properties and
values. The index for the DataFrame is the string URI that is used to
instantiate the class, such as 'BOS201806070'.