Commit a4765779 authored by Danyel Fisher's avatar Danyel Fisher
Browse files

initial commit

parent 9f477de1
Loading
Loading
Loading
Loading
+17 −0
Changes for Chapters6and7/.gitattributes: 17 added lines, 0 removed lines.
Original line number Diff line number Diff line
# from https://help.github.com/articles/dealing-with-line-endings/

# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

*.bash text=lf

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.c text
*.h text

# Declare files that will always have CRLF line endings on checkout.

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
+5 −0
Changes for Chapters6and7/.gitignore: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
node_modules/**
svg/**
png/**
errorlog.txt
scripts/**
 No newline at end of file
+24 −0
Changes for Chapters6and7/Readme.md: 24 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Vis examples

## Consumer complaints

```bash
csvsql --db sqlite:///complaints.db Consumer_Complaints.csv -y 1000 --insert
```

```sql
select "Date received", "Product", "Sub-product", "Company", "State", "ZIP code", "Consumer consent provided?", "Submitted via", "Company response to consumer", "Timely response?", "Consumer disputed?"
from Consumer_Complaints
where ("Date received" like '2012%' or "Date received" like '2013%' or "Date received" like '2014%' or "Date received" like '2015%' or "Date received" like '2016%') and ("Product" = 'Mortgage' or "Product" = 'Credit reporting' or "Product" = 'Debt collection' or "Product" = 'Credit card' or "Product" like 'Bank account%')
order by random()
limit 20000;
```

```bash
sqlite3 complaints.db -header -csv < query.sql > complaints.cs
```

## CO2 and Temperature data

https://www.ncdc.noaa.gov/cag/time-series/global/globe/land_ocean/ytd/12/1880-2017
http://data.okfn.org/data/core/co2-ppm
+25260 −0

File added.

Preview size limit exceeded, changes collapsed.

+206 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading