-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unicode from USGS website #5
Comments
I've been having trouble with this too and the JSON documentation isn't very helpful, so I just did sudo pip install --upgrade pandas to upgrade my version of pandas to be able to use the pandas |
@teresita I'm curious about how you got @tandrasfay I think you can access the dictionary items without worrying about unicode. For example, if your dictionary is |
Try sudo apt-get install python-pandas it worked for me |
Oops, I meant the |
@kqdtran yeah, I ran into that error too, right after posting.. I'm starting to think that a data frame isn't the best way to represent these data. Maybe there's another way to parse it to extract only the parameters that we're interested in.. |
I was able to successfully read the data into python using json.loads, but after printing, the data appear to be in unicode as everything has a u' in front of it: "u'geometry': {u'type': u'Point', u'coordinates'" for example.
This leads to a problem trying to extract elements because I keep getting these types of attribute errors.
AttributeError: 'unicode' object has no attribute 'iteritems'
Has anyone else had this problem? If so, how did you work around it?
The text was updated successfully, but these errors were encountered: