Name

Find and format player and team names

source

get_player_name

 get_player_name (player_id:str,
                  players_df:pandas.core.frame.DataFrame=None)

Returns the name of the player with player_id Optionally pass a player_df to use a different table


source

get_team_id

 get_team_id (team_name:str, team_df:pandas.core.frame.DataFrame=None)

Returns the team_id of the team with team_name Optionally pass a team_df to use a different table


source

get_team_name

 get_team_name (team_id:str, team_df:pandas.core.frame.DataFrame=None)

Returns the name of the team with team_id Optionally pass a team_df to use a different table


source

get_player_id

 get_player_id (player_name:str,
                players_df:pandas.core.frame.DataFrame=None)

Returns the player_id of the player with player_name Optionally pass a player_df to use a different table

player_name_test = "Jesse Irvine"
get_player_id(player_name_test)
'Jesse Irvine'