stat157 / recent-quakes

Stat 157 Homework 2 due on Monday 2013-10-21 at 11:59pm
0 stars 20 forks source link

Unicode Error With Existing Code #16

Closed xsherryxia closed 11 years ago

xsherryxia commented 11 years ago

We got this error "File "", line unknown SyntaxError: encoding declaration in Unicode string" when we ran Recent Earthquakes.py. Any ideas why?

j-zhang commented 11 years ago

Are you running the code in iPython Notebook cells? Or just running the Python code somewhere else?

The iPython Notebook in your web browser is pretty helpful, and also unicode shouldn't be a problem with the JSON format. I'm not quite sure why it appears there, but you can access the values regardless.

This 10 Minutes to Pandas is also pretty helpful for understanding how to work with the JSON format.

aculich commented 11 years ago

The error that you reported here doesn't give enough information to understand what is going wrong. I am going to close this issue and you can re-open it if it is still being a problem for you-- but if you do re-open it we'll need more information in the form of a screenshot or the full error message (include backtrace).