Boston Crime Analysis CSV Data - Loading and Parsing
✓ Published0🌍 Public
This example displays summary statistics from a Boston crime CSV dataset, showing the file size in kilobytes, total row count, and number of columns. It loads the remote CSV using `d3.csv` and parses it asynchronously with a Promise. The code also demonstrates alternative approaches using `fetch`, `async/await`, and `d3.csvParse`, though the active path relies on `d3.csvFormat` to compute text length for the size estimate. Results appear in a large preformatted text element.
AI-generated descriptionA program that loads and parses CSV data: Boston Crime Analysis.
Possible Tasks
- Number of crimes per category
- Major crimes in Boston
- Major crimes in Boston per month
- Crime count on each year/month/day/hour
- Top 10 crime count on each street
- Crime count per category for each year/month/day
MIT Licensed