load-csv
✓ Published0🌍 Public
This example demonstrates how a CSV file can be loaded, parsed, and prepared for visualization by displaying the first row of the Palmer Penguins dataset as formatted JSON. The code uses Observable’s data loading convention to import the CSV, then converts quantitative attributes like bill length, bill depth, flipper length, and body mass from strings to numbers using unary plus operators in a forEach loop. The rendered output shows the parsed object structure with all fields, including species, island, measurements, sex, and year, making the data transformation step explicit.
AI-generated descriptionThe Penguins Dataset, loaded and parsed as CSV.
Challenge
- Find 3 datasets on a topic you are interested in
- For each of those, fork this viz and replace the data
- Parse the quantitative attributes into numbers
- Update
README.mdto indicate the original data source
MIT Licensed