Skip to main content
100%

Loading and Parsing NBA Player State CSV Data

✓ Published0🌍 Public
YYichen Li
Last edited Sep 30, 2021
Created on Sep 8, 2021

This example demonstrates how to load and parse a CSV file containing NBA player statistics. It displays the file’s size in kilobytes, the number of data rows, and the number of columns within a large text element on a black background. Using the `d3.csv` method from the D3 v5 library, the program fetches the dataset from a remote URL and then applies `d3.csvFormat` to calculate the byte size. The interface provides a minimal, textual summary of the structured data source.

AI-generated description

Description:

This program loads and parses the NBA Player State Dataset.

Ideas for Questions and Tasks

  1. Who are the players that have high scoring efficiency?
  2. What is the score distribution in each team?
  3. Who are the players that are good at field goals/ 3 score field goals?

Spetial Types of Attributes

  • TEAM is categorical
  • FGM, FGA, 3PM, 3PA, FTM, FTA are quantitative

Glossary

  • GP: Games Played
  • W: Wins
  • L: Losses
  • MIN: Minutes Played
  • PTS: Points
  • FGM: Field Goals Made; FGA: Field Goals Attempted; FGP: Field Goal Percentage
  • 3PM: 3 Point Field Goals Made; 3PA: 3 Point Field Goals Attempted; 3PP: 3 Point Field Goals Percentage
  • FTM: Free Throws Made; FTA: Free Throws Attempted; FTP: Free Throw Percentage
  • OREB: Offensive Rebounds
  • DREB: Defensive Rebounds
  • REB: Rebounds
  • AST: Assists
  • TOV: Turnovers
  • STL: Steals
  • BLK: Blocks
  • PF: Personal Fouls
  • FP: Fantasy Points
  • DD2: Double doubles
  • TD3: Triple doubles
MIT Licensed

Similar vizzes