https://github.com/tomgp/data-sets
a collection of data sets mainly in DSV formats
https://github.com/tomgp/data-sets
Last synced: 8 months ago
JSON representation
a collection of data sets mainly in DSV formats
- Host: GitHub
- URL: https://github.com/tomgp/data-sets
- Owner: tomgp
- Created: 2016-02-17T09:34:50.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-03-31T11:17:41.000Z (about 3 years ago)
- Last Synced: 2025-01-13T20:49:53.656Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 26 MB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Data Sets
When you're learning to visualize data it can be a struggle to find clean data sets.This small collection is to help get started.
Each set lives in it's own directory with at least a [YAML](https://en.wikipedia.org/wiki/YAML) file and a .csv or .tsv file or sometimes a .json file.
The focus is on collecting simple tabular data sets for use with [D3](https://d3js.org/), also some geographic shapes.
## Loading CSV data in D3 (v5)
```
d3.csv('my-data-file.csv')
.then((data)=>{
console.log('your data is now available as an array of objects, one for each row of the CSV...');
console.log(data);
})
```
## YAML conventions
I'm using some conventions for fields in the YAML file hopefully they're pretty self explanatory.
`Source`, and `title` are pretty important
```
title:
source:
sourceURL:
dateRetrieved:
datePublished:
dateCollected:
methodology:
```
## Contributing
More data sets sought and welcomed! If you have any data sets you think would fit here you can either fork this repository and make a pull request or if that doesn't make any sense you can get in contact either via this site or [tweet at me](https://www.twitter.com/tomp)