Players

Allows you to access data related to Players.

Use the below import to use PlayerData class

from fpldata import PlayerData

Create an instance of the class and then use the methods.

Example:

p = PlayerData()

print(p.all_player_info())
class PlayerData

Bases: object

Module for getting players information

all_player_info()

Gives information about all the players as a pandas DataFrame

player_detail(player_id)

Returns a dictonary of player using the player_id

Parameters

player_id (int) – Player ID of the player (Use search_player() to find the ID).

player_list()

Returns a dictionary of all the players with player id as key and name as value.

search_player(player_name)

Allow you to search Player by Name. Returns a dictionary with player id as key and name as value.

Parameters

player_name (string) – Name of the Player.