Published
Edited
Dec 9, 2021
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
import { getClient } from "@jzhang/basketball-reference-client"
Insert cell
Insert cell
client = getClient(2021)
Insert cell
Insert cell
client.tables
Insert cell
Insert cell
client["per_game-team"]
Insert cell
Insert cell
Insert cell
client.year
Insert cell
Insert cell
client.teams
Insert cell
Insert cell
Insert cell
Insert cell
client["per_poss-team"].data
Insert cell
Insert cell
client["per_poss-team"].name
Insert cell
Insert cell
client["per_poss-team"].columns
Insert cell
Insert cell
client["per_poss-team"].mode
Insert cell
Insert cell
client["per_poss-team"].glossary
Insert cell
Insert cell
Insert cell
client["per_poss-team"].print(10)
Insert cell
Insert cell
client["per_poss-team"].get(["fta", "ft_pct", "drb", "orb"])[0]
Insert cell
Insert cell
client["per_poss-team"].hist("ft_pct")
Insert cell
Insert cell
Insert cell
// TODO:
// [ ] player stats (game logs, etc.)...Note to self: can parse the per_game palyer stats to get autocomplete information
// [ ] teams overall page?
// [ ] draft?
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more