def _dataframe_fields(self):
        """
        Creates a dictionary of all fields to include with DataFrame.

        With the result of the calls to class properties changing based on the
        class index value, the dictionary should be regenerated every time the
        index is changed when the dataframe property is requested.

        Returns
        -------
        dictionary
            Returns a dictionary where the keys are the shortened ``string``
            attribute names and the values are the actual value for each
            attribute for the specified index.
        """
        fields_to_include = {
            'assists': self.assists,
            'at_bats': self.at_bats,
            'bases_on_balls': self.bases_on_balls,
            'batting_average': self.batting_average,
            'birth_date': self.birth_date,
            'complete_games': self.complete_games,
            'defensive_chances': self.defensive_chances,
            'defensive_runs_saved_above_average':
            self.defensive_runs_saved_above_average,
            'defensive_runs_saved_above_average_per_innings':
            self.defensive_runs_saved_above_average_per_innings,
            'double_plays_turned': self.double_plays_turned,
            'doubles': self.doubles,
            'errors': self.errors,
            'fielding_percentage': self.fielding_percentage,
            'games': self.games,
            'games_catcher': self.games_catcher,
            'games_center_fielder': self.games_center_fielder,
            'games_designated_hitter': self.games_designated_hitter,
            'games_first_baseman': self.games_first_baseman,
            'games_in_batting_order': self.games_in_batting_order,
            'games_in_defensive_lineup': self.games_in_defensive_lineup,
            'games_left_fielder': self.games_left_fielder,
            'games_outfielder': self.games_outfielder,
            'games_pinch_hitter': self.games_pinch_hitter,
            'games_pinch_runner': self.games_pinch_runner,
            'games_pitcher': self.games_pitcher,
            'games_right_fielder': self.games_right_fielder,
            'games_second_baseman': self.games_second_baseman,
            'games_shortstop': self.games_shortstop,
            'games_started': self.games_started,
            'games_third_baseman': self.games_third_baseman,
            'grounded_into_double_plays': self.grounded_into_double_plays,
            'height': self.height,
            'hits': self.hits,
            'home_runs': self.home_runs,
            'innings_played': self.innings_played,
            'intentional_bases_on_balls': self.intentional_bases_on_balls,
            'league_fielding_percentage': self.league_fielding_percentage,
            'league_range_factor_per_game': self.league_range_factor_per_game,
            'league_range_factor_per_nine_innings':
            self.league_range_factor_per_nine_innings,
            'name': self.name,
            'nationality': self.nationality,
            'on_base_percentage': self.on_base_percentage,
            'on_base_plus_slugging_percentage':
            self.on_base_plus_slugging_percentage,
            'on_base_plus_slugging_percentage_plus':
            self.on_base_plus_slugging_percentage_plus,
            'plate_appearances': self.plate_appearances,
            'player_id': self.player_id,
            'position': self.position,
            'putouts': self.putouts,
            'range_factor_per_game': self.range_factor_per_game,
            'range_factor_per_nine_innings':
            self.range_factor_per_nine_innings,
            'runs': self.runs,
            'runs_batted_in': self.runs_batted_in,
            'sacrifice_flies': self.sacrifice_flies,
            'sacrifice_hits': self.sacrifice_hits,
            'season': self.season,
            'slugging_percentage': self.slugging_percentage,
            'stolen_bases': self.stolen_bases,
            'team_abbreviation': self.team_abbreviation,
            'times_caught_stealing': self.times_caught_stealing,
            'times_hit_by_pitch': self.times_hit_by_pitch,
            'times_struck_out': self.times_struck_out,
            'total_bases': self.total_bases,
            'total_fielding_runs_above_average':
            self.total_fielding_runs_above_average,
            'total_fielding_runs_above_average_per_innings':
            self.total_fielding_runs_above_average_per_innings,
            'triples': self.triples,
            'weight': self.weight,
            # Properties specific to pitchers
            'balks': self.balks,
            'bases_on_balls_given': self.bases_on_balls_given,
            'bases_on_balls_given_per_nine_innings':
            self.bases_on_balls_given_per_nine_innings,
            'batters_faced': self.batters_faced,
            'batters_struckout_per_nine_innings':
            self.batters_struckout_per_nine_innings,
            'earned_runs_allowed': self.earned_runs_allowed,
            'era': self.era,
            'era_plus': self.era_plus,
            'fielding_independent_pitching':
            self.fielding_independent_pitching,
            'games_finished': self.games_finished,
            'hits_against_per_nine_innings':
            self.hits_against_per_nine_innings,
            'hits_allowed': self.hits_allowed,
            'home_runs_against_per_nine_innings':
            self.home_runs_against_per_nine_innings,
            'home_runs_allowed': self.home_runs_allowed,
            'intentional_bases_on_balls_given':
            self.intentional_bases_on_balls_given,
            'losses': self.losses,
            'runs_allowed': self.runs_allowed,
            'saves': self.saves,
            'shutouts': self.shutouts,
            'strikeouts': self.strikeouts,
            'strikeouts_thrown_per_walk': self.strikeouts_thrown_per_walk,
            'times_hit_player': self.times_hit_player,
            'whip': self.whip,
            'wild_pitches': self.wild_pitches,
            'win_percentage': self.win_percentage,
            'wins': self.wins
        }
        return fields_to_include
def _dataframe_fields ( self ) : fields_to_include = { 'assists' : self . assists , 'at_bats' : self . at_bats , 'bases_on_balls' : self . bases_on_balls , 'batting_average' : self . batting_average , 'birth_date' : self . birth_date , 'complete_games' : self . complete_games , 'defensive_chances' : self . defensive_chances , 'defensive_runs_saved_above_average' : self . defensive_runs_saved_above_average , 'defensive_runs_saved_above_average_per_innings' : self . defensive_runs_saved_above_average_per_innings , 'double_plays_turned' : self . double_plays_turned , 'doubles' : self . doubles , 'errors' : self . errors , 'fielding_percentage' : self . fielding_percentage , 'games' : self . games , 'games_catcher' : self . games_catcher , 'games_center_fielder' : self . games_center_fielder , 'games_designated_hitter' : self . games_designated_hitter , 'games_first_baseman' : self . games_first_baseman , 'games_in_batting_order' : self . games_in_batting_order , 'games_in_defensive_lineup' : self . games_in_defensive_lineup , 'games_left_fielder' : self . games_left_fielder , 'games_outfielder' : self . games_outfielder , 'games_pinch_hitter' : self . games_pinch_hitter , 'games_pinch_runner' : self . games_pinch_runner , 'games_pitcher' : self . games_pitcher , 'games_right_fielder' : self . games_right_fielder , 'games_second_baseman' : self . games_second_baseman , 'games_shortstop' : self . games_shortstop , 'games_started' : self . games_started , 'games_third_baseman' : self . games_third_baseman , 'grounded_into_double_plays' : self . grounded_into_double_plays , 'height' : self . height , 'hits' : self . hits , 'home_runs' : self . home_runs , 'innings_played' : self . innings_played , 'intentional_bases_on_balls' : self . intentional_bases_on_balls , 'league_fielding_percentage' : self . league_fielding_percentage , 'league_range_factor_per_game' : self . league_range_factor_per_game , 'league_range_factor_per_nine_innings' : self . league_range_factor_per_nine_innings , 'name' : self . name , 'nationality' : self . nationality , 'on_base_percentage' : self . on_base_percentage , 'on_base_plus_slugging_percentage' : self . on_base_plus_slugging_percentage , 'on_base_plus_slugging_percentage_plus' : self . on_base_plus_slugging_percentage_plus , 'plate_appearances' : self . plate_appearances , 'player_id' : self . player_id , 'position' : self . position , 'putouts' : self . putouts , 'range_factor_per_game' : self . range_factor_per_game , 'range_factor_per_nine_innings' : self . range_factor_per_nine_innings , 'runs' : self . runs , 'runs_batted_in' : self . runs_batted_in , 'sacrifice_flies' : self . sacrifice_flies , 'sacrifice_hits' : self . sacrifice_hits , 'season' : self . season , 'slugging_percentage' : self . slugging_percentage , 'stolen_bases' : self . stolen_bases , 'team_abbreviation' : self . team_abbreviation , 'times_caught_stealing' : self . times_caught_stealing , 'times_hit_by_pitch' : self . times_hit_by_pitch , 'times_struck_out' : self . times_struck_out , 'total_bases' : self . total_bases , 'total_fielding_runs_above_average' : self . total_fielding_runs_above_average , 'total_fielding_runs_above_average_per_innings' : self . total_fielding_runs_above_average_per_innings , 'triples' : self . triples , 'weight' : self . weight , 'balks' : self . balks , 'bases_on_balls_given' : self . bases_on_balls_given , 'bases_on_balls_given_per_nine_innings' : self . bases_on_balls_given_per_nine_innings , 'batters_faced' : self . batters_faced , 'batters_struckout_per_nine_innings' : self . batters_struckout_per_nine_innings , 'earned_runs_allowed' : self . earned_runs_allowed , 'era' : self . era , 'era_plus' : self . era_plus , 'fielding_independent_pitching' : self . fielding_independent_pitching , 'games_finished' : self . games_finished , 'hits_against_per_nine_innings' : self . hits_against_per_nine_innings , 'hits_allowed' : self . hits_allowed , 'home_runs_against_per_nine_innings' : self . home_runs_against_per_nine_innings , 'home_runs_allowed' : self . home_runs_allowed , 'intentional_bases_on_balls_given' : self . intentional_bases_on_balls_given , 'losses' : self . losses , 'runs_allowed' : self . runs_allowed , 'saves' : self . saves , 'shutouts' : self . shutouts , 'strikeouts' : self . strikeouts , 'strikeouts_thrown_per_walk' : self . strikeouts_thrown_per_walk , 'times_hit_player' : self . times_hit_player , 'whip' : self . whip , 'wild_pitches' : self . wild_pitches , 'win_percentage' : self . win_percentage , 'wins' : self . wins } return fields_to_include
Creates a dictionary of all fields to include with DataFrame.

        With the result of the calls to class properties changing based on the
        class index value, the dictionary should be regenerated every time the
        index is changed when the dataframe property is requested.

        Returns
        -------
        dictionary
            Returns a dictionary where the keys are the shortened ``string``
            attribute names and the values are the actual value for each
            attribute for the specified index.