Not sure what these are:
datasette ~/Library/Suggestions/*.db
Safari stuff:
datasette ~/Library/Safari/*.db
Your desktop background:
Not sure what these are:
datasette ~/Library/Suggestions/*.db
Safari stuff:
datasette ~/Library/Safari/*.db
Your desktop background:
Running in Datasette at https://vice-police-shootings.now.sh/vice-bc7c892/ViceNews_FullOISData
Here's what I did:
First, I exported as CSV the data from https://docs.google.com/spreadsheets/d/1CaOQ7FUYsGFCHEqGzA2hlfj69sx3GE9GoJ40OcqI9KY/edit#gid=1271324584
Then I converted it to a SQLite database using https://github.com/simonw/csvs-to-sqlite like so:
csvs-to-sqlite ~/Downloads/ViceNews_FullOISData.csv /tmp/vice.db \
-c Fatal -c SubjectArmed -c SubjectRace -c SubjectGender -c OfficerRace \
select spatialite_version(), spatialite_target_cpu( ), proj4_version( ), geos_version( ), lwgeom_version( ), libxml2_version( ), HasIconv( ), HasMathSQL( ), HasGeoCallbacks( ), HasProj( ), HasGeos( ), HasGeosAdvanced( ), HasGeosTrunk( ), HasLwGeom( ), HasLibXML2( ), HasEpsg( ), HasFreeXL( ), HasGeoPackage( );
This repository has a dataset of 184.879 crimes committed in Buenos Aires: https://github.com/ramadis/delitos-caba
Download the raw data like this:
wget 'https://github.com/ramadis/delitos-caba/releases/download/3.0/delitos.json'
Now use Pandas to load that into a dataframe:
I stumbled across an old export of Freebase data we used to build WildlifeNearYou:
It's a 6.89MB TSV file. Here's how I turned it into a Datasette instance at https://organisms.now.sh/
cd /tmp
Using whosonfirst-data-latest.db from https://dist.whosonfirst.org/sqlite/ - technique inspired by Paul Ford: https://twitter.com/ftrain/status/957833410017361921
If you fire up the sqlite3 CLI against an existing database you can and then mount a brand new database using attach database - then you can create tables in that new database and populate them using a select statement, extracting data from JSON columns using the json_extract() function.
Having populated the new table, I also create a full-text index against the name column.
Here's an example query against the resulting database, using a wildcard to implement prefix autocomplete: https://whosonfirst-metadata-only.now.sh/whosonfirst-metadata-only-c11ebe3/whosonfirst?_search=san+fra%2A
Fantastic data journalism by Christine Zhang at the LA Times: https://github.com/datadesk/homeless-arrests-analysis
First I grabbed the data - a zipped feather file:
wget https://github.com/datadesk/homeless-arrests-analysis/blob/master/arrests.zip?raw=true
mv arrests.zip\?raw\=true arrests.zip
unzip arrests.zip