1
submitted 10 months ago* (last edited 10 months ago) by streetfestival@lemmy.ca to c/nba@lemmy.world

Basketball-Reference.com contains many tables of data for players, teams, seasons. For example, the Advanced Stats table on the Seasons page is where I’ve been getting data for the Offensive and Defensive Ratings posts. I grab the data by clicking “Share & Export” beside the table, “Get table as CSV”, and then copying and pasting that into a text editor. (In this case, don’t copy the first row; and you never want a comma at the end of the last line.) Save this file, and then it can be opened (as a CSV) in R, Python, or a spreadsheet application like microsoft Excel.

Such tables/spreadsheets or “flat files” are easy for humans to read but aren’t very efficient from a data storage perspective. As a result, big data are stored in less human-readable formats, and special software is needed to access that data and convert it into tables on the user’s end.

NBA.com’s API (ie, a bit of software) is among the most popular sources of free NBA big data. To access it, you need software on your end, and most NBA.com API clients seem to be in Python (nba_api package) or R (hoopR, nbastatR).

This page provides a long list NBA data sources: [Josh Gonzalez on Medium] An Ever-Expanding List of NBA Data Sources

top 1 comments
sorted by: hot top controversial new old
[-] pobautista@lemmy.world 2 points 10 months ago

Just saw this post, as it might’ve gotten buried in the community. Awesome find!

this post was submitted on 13 Jan 2024
1 points (66.7% liked)

NBA

5104 readers
6 users here now

East - Atlantic
Boston Celtics
Brooklyn Nets
New York Knicks
Philadelphia Sixers
Toronto Raptors
East - Central
Chicago Bulls
Cleveland Cavaliers
Detroit Pistons
Indiana Pacers
Milwaukee Bucks
East - Southeast
Atlanta Hawks
Charlotte Hornets
Miami Heat
Orlando Magic
Washington Wizards
West - Northwest
Denver Nuggets
Minnesota Timberwolves
Oklahoma City Thunder
Portland Trailblazers
Utah Jazz
West - Pacific
Golden State Warriors
Los Angeles Clippers
Los Angeles Lakers
Phoenix Suns
Sacramento Kings
West - Southwest
Dallas Mavericks
Houston Rockets
Memphis Grizzlies
New Orleans Pelicans
San Antonio Spurs

founded 1 year ago
MODERATORS