data
leaguedata.data
get_dataset(select_columns=None)
Load the dataset from the Hugging Face Hub and return it as a Polars DataFrame.
PARAMETER | DESCRIPTION |
---|---|
select_columns
|
The columns to select from the dataset. If None, all columns are selected.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
DataFrame
|
pl.DataFrame: The dataset as a Polars DataFrame. |
Source code in leaguedata/data.py
get_history_dict()
Return a two level dictionary containing the history of all players in the reference sample. Accessed by elo and then by puuid.
Source code in leaguedata/data.py
get_tier_batch()
Return batches of tiers in League of Legends, sorted from the lowest to the highest.
Source code in leaguedata/data.py
get_tier_sorted()
Return a list of all the tiers in League of Legends, sorted from the lowest to the highest.
RETURNS | DESCRIPTION |
---|---|
list
|
The list of all tiers in League of Legends, sorted from the lowest to the highest.
TYPE:
|