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

'Helpers'
import requests as req
import json

In [28]:
'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()


---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-28-b0dda85fa864> in <module>()
      7 stats = df['number_of_arrests'].astype(float).describe()
      8 
----> 9 print stats.dtypes

AttributeError: 'Series' object has no attribute 'dtypes'

In [25]:
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 [ ]: