Player

Easily analyze and compare pickleball players

source

Player

 Player (player_id:str)

A class to represent a player

p = Player("P1")
p
Jesse Irvine, id: P1

source

Player.summarize_player

 Player.summarize_player ()

Prints a summary of the player’s stats

p.summarize_player()
Player: Jesse Irvine
Matches played: 3
Matches won: 2
Percentage of matches won: 66.67%
Games played: 6
Games won: 4
Percentage of games won: 66.67%
Teams: ['Jesse Irvine & Catherine Parenteau', 'Jesse Irvine & Anna Bright', 'Jesse Irvine & Lucy Kovalova']

source

Player.partners_error_rate

 Player.partners_error_rate ()

Returns the average error rate of the player’s partners

p.partners_error_rate()
0.06830721826632076

source

Player.partners_win_rate

 Player.partners_win_rate ()

Returns the win rate of the player’s partners excluding games where the player was on the same team as their partner

p.partners_win_rate()
0.0

source

head_to_head

 head_to_head (p1:__main__.Player, p2:__main__.Player)

Returns the results of matches where p1 and p2 have played against each other

p2 = Player("P2")
p2
Catherine Parenteau, id: P2
head_to_head(p,p2)
Jesse Irvine has played against Catherine Parenteau in 1 matches and has won 1 times

source

Player.overall_player_impact

 Player.overall_player_impact ()

Returns the mean and std of player impact taken over all games played in the database. Player impact is defined as winners + errors forced - unforced errors

p.overall_player_impact()
(3.0, 1.4142135623730951)