You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears that using Census.ALL instead of something of the form {'for': 'state:*'} does not work, even on the core example in the README:
>>> c.acs5.get('B01001_004E', Census.ALL)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/poulson/miniconda3/lib/python3.6/site-packages/census/core.py", line 298, in get
return super(ACSClient, self).get(*args, **kwargs)
File "/home/poulson/miniconda3/lib/python3.6/site-packages/census/core.py", line 155, in get
merged_results = [merge(result) for result in zip(*all_results)]
File "/home/poulson/miniconda3/lib/python3.6/site-packages/census/core.py", line 154, in <genexpr>
for fifty_fields in chunks(fields, 50))
File "/home/poulson/miniconda3/lib/python3.6/site-packages/census/core.py", line 64, in wrapper
result = func(self, *args, **kwargs)
File "/home/poulson/miniconda3/lib/python3.6/site-packages/census/core.py", line 170, in query
'for': geo['for'],
TypeError: string indices must be integers
I installed the census API via pip: is it possible that this issue has already been fixed in master?
The text was updated successfully, but these errors were encountered:
Looking at the code, I think Census.ALL has to be used with a geographic convenience method. For example, the equivalent query using the state method works:
It appears that using
Census.ALL
instead of something of the form{'for': 'state:*'}
does not work, even on the core example in the README:I installed the census API via pip: is it possible that this issue has already been fixed in
master
?The text was updated successfully, but these errors were encountered: