Loading and Parsing CSV Data: College Scorecard Data
This example demonstrates loading and parsing a CSV file from the College Scorecard dataset, displaying the file size in kilobytes, the number of rows, and the number of columns as large text. It uses the D3.js library (v5) and its `d3.csv` method to fetch and parse the remote CSV data asynchronously. The code also includes commented-out alternatives using `fetch`, `async`/`await`, and `d3.csvParse`, as well as a pyramid-of-doom nested fetch approach. The data is sourced from a GitHub-hosted CSV of selected Department of Education variables.
AI-generated descriptionA program that loads and parses some CSV data. The data come from the College Scorecard Data, a Department of Education dataset. This dataset has institutional information including price. The data are available at College Scorecard Data Select Variables.