Skip to content

Instantly share code, notes, and snippets.

@fscottfoti
Created March 3, 2014 07:20
Show Gist options
  • Save fscottfoti/9319928 to your computer and use it in GitHub Desktop.
Save fscottfoti/9319928 to your computer and use it in GitHub Desktop.
from monary import Monary
import numpy as np, pandas as pd
import time
mon = Monary()
columns = ['x','y','shape_area','zone_id','county_id','parcel_id']
t1 = time.time()
numpy_arrays = mon.query('bayarea','parcels',{},columns,['float32']*len(columns))
df = np.matrix(numpy_arrays).transpose()
df = pd.DataFrame(df, columns=columns)
print time.time()-t1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment