Data Table Summary
This example displays a text-based summary of a speed dating dataset, showing the total row and column counts, the file size in kilobytes, and the first ten rows formatted as JSON. It loads the data from a remote CSV file using D3’s `csv` method, then appends the summary and a formatted preview to the page. The code uses `csvFormat` to calculate file size and `JSON.stringify` for readable output.
AI-generated descriptionThis program prints a summary of a data table.
This data is from a study about speed dating.
This data comes from Columbia Business School .
This study was conducted by researchers Ray Fisman and Sheena Iyengar for their paper Gender Differences in Mate Selection: Evidence From a Speed Dating Experiment.
The data was gathered in a set of experimental speed dating events. They were asked to rate their dates (and themselves) on several attributes like Intelligence, Ambitions, Attractivness, etc. It has a wide variety of variables that are explained in the doc file in the source link.
I couldn't upload the dataset which was around 4.7MB (after some trimming). The full dataset has around 8000 rows. But since the submission deadline is in a couple of hours, I'm uploading a part of it and I hope I can use the complete dataset for my visualizations.
The data is a "file" here, but the recommended approach is to upload the data seprately, as in the video below.