Skip to main content
100%

Loading and Parsing VGSales.csv

✓ Published0🌍 Public
TT-Reiser
Last edited Sep 7, 2021
Created on Sep 7, 2021

This example loads and parses the VGSales.csv dataset, displaying the raw file size, row count, and column count in large text. It shows how D3 fetches and parses CSV data to summarize its structure. The code uses `d3.csv` to load the remote file, then formats the data with `d3.csvFormat` to calculate its size. An alternative approach using `fetch`, `async/await`, and `d3.csvParse` is also included. The dataset, sourced from Kaggle, contains video game sales metrics across global regions.

AI-generated description

A program that loads and parses some [CSV] about the Top 5000 Movies on TMDB.

Authored by: Tyler Reiser

Link to original Dataset: https://www.kaggle.com/gregorut/videogamesales

Link to Gist: https://gist.github.com/T-Reiser/558cfa295786b2f6c58524192dc015bc

Rehash of Gist README.md:

Attributes:

  • Rank (Ranking of overall sales) is Quantitative,
  • Name (The games name) is Categorical,
  • Platform (Platform of the games release (i.e. PC,PS4, etc.)) is Categorical,
  • Year (Year of the game's release) is Ordinal,
  • Genre (Genre of the game) is Categorical,
  • Publisher (Publisher of the game) is Categorical,
  • NA_Sales - Sales in North America (in millions)
  • EU_Sales - Sales in Europe (in millions)
  • JP_Sales - Sales in Japan (in millions)
  • Other_Sales - Sales in the rest of the world (in millions)
  • Global_Sales - Total worldwide sales is Quantitative.

Removed Attributes:

  • N/A

Tasks and Questions:

  • How does this ranking change if we compare just NA sales to JP or EU sales?
  • Do Nintendo Games lead the JP Sales ranking more than the combined totals?
  • Is there a certain period of time that releases consecutive high ranking games?
  • Is there a dominate Genre, and does that Genre change over time?
MIT Licensed

Similar vizzes