Data about the NBA All-Time points leaders table.
Project description
NBA all-time points analysis API
Working with data from the National Basketball Association all-time points leaders table.
Installation
pip install NBA-AllTimePTS-API
Importing
from NBA_AllTimePTS_API import Stats
Documentaion
Methods
Method: | What the method does: |
---|---|
get_table(driver, n_pages) |
Returns a dataset with the players data by the number of pages you insert |
get_player( , player_name) |
Returns information of a specific player |
top3() |
Returns the top 3 all-time points leaders of NBA |
isLebronLeader() |
Returns how many points and games LeBron needs to become the all-time points leader or if he has already become the leader |
bestTS() |
Returns the player with the best TS% and their table Ranking position |
bestFG() |
Returns the player with the best FG% and their table Ranking position |
best3P( , minimumAttempts=100) |
Returns the player with the best 3P% and their table Ranking position |
bestFT() |
Returns the player with the best FT% and their table Ranking position |
overallStats( , player_name) |
Returns the MPG, PPG, RPG, APG, SPG and TOPF of a specific player |
overallRebounds( , player_name) |
Returns the % of offensive and defensive rebounds of a specific player |
tovPercent( , player_name) |
Estimate percentage of turnovers per 100 plays by a specific player |
mostRebounds() |
Returns the player with the most Rebounds and their table Ranking position |
mostAssists() |
Returns the player with the most Assists and their table Ranking position |
mostSteals() |
Returns the player with the most Steals and their table Ranking position |
mostBlocks() |
Returns the player with the most Blocks and their table Ranking position |
mostTurnovers() |
Returns the player with the most Turnovers and their table Ranking position |
bestOffensivePlayer() |
Returns the best Offensive Player and their table Ranking position |
bestDefensivePlayer() |
Returns the best Defensive Player and their table Ranking position |
Parameters:
- driver
- n_pages
- player_name
- minimumAttempts(Optional parameter)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.