Skip to content

Commit

Permalink
a little tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGermuska committed May 9, 2015
1 parent 7f983f0 commit 7989987
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions Basic Census Reporter API with Pandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,13 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 7,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from censusreporter_api import *"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"df = get_dataframe(tables='B01001',geoids='040|01000US',column_names=True,level=1)"
"from censusreporter_api import * # a few convenience methods elsewhere in this repo. Not a full pypi project at the moment"
]
},
{
Expand All @@ -38,7 +27,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 8,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -106,12 +95,13 @@
"04000US17 Illinois 12882135 6326778 6555357"
]
},
"execution_count": 3,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df = get_dataframe(tables='B01001',geoids='040|01000US',column_names=True,level=1)\n",
"df.sort('Total', ascending=False).head(5)"
]
},
Expand All @@ -124,7 +114,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 9,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -198,7 +188,7 @@
"04000US26 Michigan 9895622 4858138 5037484 0.509062"
]
},
"execution_count": 4,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -218,7 +208,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 10,
"metadata": {
"collapsed": false
},
Expand Down Expand Up @@ -292,7 +282,7 @@
"05000US47007 Bledsoe County, TN 12853 6951 5902 0.540808"
]
},
"execution_count": 6,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand Down

0 comments on commit 7989987

Please sign in to comment.