Loading and Parsing CSV Data on "US Police Shootings"
✓ Published0🌍 Public
This example displays summary statistics for a CSV dataset of US police shootings, showing the file size in kilobytes, row count, and column count in large text. It loads the data using `d3.csv` from d3.v5, then reports `data.length` and `data.columns.length` after parsing. The code also includes commented-out alternatives using `fetch` with `async`/`await` and `d3.csvParse`, highlighting different parsing approaches. The data comes from a gist hosted on GitHub.
AI-generated descriptionA program that loads and parses some CSV data: US Police Shootings.
MIT Licensed