Skip to content

Commit

Permalink
straggling change
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGermuska committed Jun 26, 2016
1 parent c90bcc3 commit 2be2a97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions censusreporter_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def get_dataframe(tables=None, geoids=None, release='latest',level=None,place_na
"""
response = json_data(tables, geoids, release)
if 'error' in response:
raise Exception(response['error'])
df = pd.DataFrame.from_dict(_prep_data_for_pandas(response),orient='index')
df = df.reindex_axis(sorted(df.columns), axis=1)
if column_names or level is not None:
Expand Down

0 comments on commit 2be2a97

Please sign in to comment.