@property<EOL><INDENT>def dataframe(self):<DEDENT>
if self._goals_scored is None and self._goals_allowed is None:<EOL><INDENT>return None<EOL><DEDENT>fields_to_include = {<EOL>'<STR_LIT>': self.boxscore_index,<EOL>'<STR_LIT:date>': self.date,<EOL>'<STR_LIT>': self.datetime,<EOL>'<STR_LIT>': self.game,<EOL>'<STR_LIT>': self.goals_allowed,<EOL>'<STR_LIT>': self.goals_scored,<EOL>'<STR_LIT:location>': self.location,<EOL>'<STR_LIT>': self.opponent_abbr,<EOL>'<STR_LIT>': self.opponent_name,<EOL>'<STR_LIT>': self.overtime,<EOL>'<STR_LIT>': self.penalties_in_minutes,<EOL>'<STR_LIT>': self.power_play_goals,<EOL>'<STR_LIT>': self.power_play_opportunities,<EOL>'<STR_LIT:result>': self.result,<EOL>'<STR_LIT>': self.short_handed_goals,<EOL>'<STR_LIT>': self.shots_on_goal,<EOL>'<STR_LIT>': self.opp_shots_on_goal,<EOL>'<STR_LIT>': self.opp_penalties_in_minutes,<EOL>'<STR_LIT>': self.opp_power_play_goals,<EOL>'<STR_LIT>': self.opp_power_play_opportunities,<EOL>'<STR_LIT>': self.opp_short_handed_goals,<EOL>'<STR_LIT>': self.corsi_for,<EOL>'<STR_LIT>': self.corsi_against,<EOL>'<STR_LIT>': self.corsi_for_percentage,<EOL>'<STR_LIT>': self.fenwick_for,<EOL>'<STR_LIT>': self.fenwick_against,<EOL>'<STR_LIT>': self.fenwick_for_percentage,<EOL>'<STR_LIT>': self.faceoff_wins,<EOL>'<STR_LIT>': self.faceoff_losses,<EOL>'<STR_LIT>': self.faceoff_win_percentage,<EOL>'<STR_LIT>':<EOL>self.offensive_zone_start_percentage,<EOL>'<STR_LIT>': self.pdo<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.