Team_Data¶
Allows you to access data related to Teams.
Use the below import to use Team_Data class
from fpldata import TeamData
Create an instance of the class and then use the methods.
Example:
t = TeamData()
print(t.list_team_name())
-
class
TeamData
¶ Bases:
object
Module for getting data related to team.
-
get_table
()¶ Returns EPL table as a pandas dataframe
-
get_team_id
(team1='')¶ Returns the team id if team1 parameter is provided else a dictionary is returned with all the team id and corresponding short name.
- Parameters
team1 (string) – Short name of the first team.
-
list_team_name
()¶ Returns a dictionary with team id as key and Short Team Name as value.
-
team_compare
(team1, team2)¶ Returns a pandas dataframe comparing two teams based on their abilities.
- Parameters
team1 (string) – Short name of the first team.
team2 (string) – Short name of the second team.
-