Skip to content

Instantly share code, notes, and snippets.

Routes are in rough order of speed.

  1. Chicago - Quad Cities - Des Moines - Omaha - Denver - Grand Junction - Vegas - LA
  • Pretty much just the fastest way
  • Go to the art museum in the Quad Cities and John Deree Museum
  • Lotus of Siam in Vegas
  • not close enough to too many national parks, but you could maybe hit Zion.
  1. Chicago - Springfield - Kansas City - OKC - ABQ - Flagstaff - Joshua Tree - LA
  • This is how I moved back to LA, and the only drive I made solo. Lots of great food.
  • ABQ is amazing, spent a day there.

Routes are in rough order of speed.

  1. Chicago - Quad Cities - Des Moines - Omaha - Denver - Grand Junction - Vegas - LA
  • Pretty much just the fastest way
  • Go to the art museum in the Quad Cities and John Deree Museum
  • Lotus of Siam in Vegas
  • not close enough to too many national parks, but you could maybe hit Zion.
  1. Chicago - Springfield - Kansas City - OKC - ABQ - Flagstaff - Joshua Tree - LA
  • This is how I moved back to LA, and the only drive I made solo. Lots of great food.
  • ABQ is amazing, spent a day there.
import pandas as pd
import datetime
df = pd.read_csv('./path_to_file.csv')
df['date'] = df['datetime'].apply(datetime.datetime.fromtimestamp)
df.to_csv('new_file')
import pymssql
conn = pymssql.connect(server="", user="",password="", port=)
stmt = "SELECT * FROM AlumniMirror..vwApp_Detail WHERE applied_dummy = 1;"
df = pd.read_sql(stmt,conn)
@hunterowens
hunterowens / will_extract_ca_sort.py
Created July 16, 2015 19:51
CA Pipeline Operators
# coding: utf-8
import pandas as pd
# Get the table by id, pick first item on the returned list
df = pd.read_html('http://primis.phmsa.dot.gov/comm/reports/operator/OperatorIM_opid_300.html?nocache=6511#_Incidents_tab_3', attrs={'id': '_4E112845Q'})[0]
# only in CA
df[df['State'] == 'CA'].keys()
# Sort by property damage
@hunterowens
hunterowens / test.geojson
Created April 13, 2015 18:54
transit.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hunterowens
hunterowens / pandas.ipynb
Created February 10, 2015 21:29
IntroPandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hunterowens
hunterowens / list.md
Created December 18, 2014 19:01
SouthsideBestSide
  • Jackson Park
    • Make sure to see the japanese garden, and the columbia statue
    • Also the MSI
  • Smart is also good
  • go have breakfast at Daley's 2nd oldest resturant in the city
  • Calumet and the east side is cool - check out the state line power plant and have some Calumet Fisheries
@hunterowens
hunterowens / wards2014.json
Created December 3, 2014 21:40
wards.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hunterowens
hunterowens / xml2csv.py
Created November 29, 2014 18:57
XML->CSV
import xmltodict
import json
import pandas as pd
file = open('/path/to/file.xml','r')
str = file.read()
dictionary = xmltodict.parse(str)
df = pd.DataFrame(dictionary)
# Do any parsing of the XML file here, as you'll want to confirm that you are writing the correct info to csv.
df.to_csv('/path/to/output.csv')