In [9]:
'Pandas amd Vincent'
import pandas as pd
import numpy as np
from vincent import *

'Helpers'
import requests as req
import json

In [29]:
'Fetch some OpenData'
arrests = req.get('https://data.cityofnewyork.us/resource/d4uz-6jaw.json').text
data=json.loads(arrests)

df = pd.DataFrame(data)

stats = df['number_of_arrests'].astype(float).describe()

In [30]:
print df


  fiscal_year number_of_arrests
0        2010               526
1        2009               567
2        2008               751
3        2007               738
4        2006               654
5        2005               684
6        2004               628
7        2003               671
8        2002               576
9        2001               853

In [ ]: