Last active
August 29, 2015 14:10
-
-
Save dheerosaur/64ae38c739d8040fe7c3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # bin/get_directions.py gets us with_directions.csv | |
| # This can be easily loaded into SQLite: | |
| > create table trips (vendor, 'pickupTime' DATETIME, duration, terminal, direction); | |
| > .mode csv | |
| > .import with_directions.csv trips | |
| # To get daily counts from the SQL | |
| > select DATE(pickupTime), count(1) from trips group by DATE(pickupTime) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment