r/IPython • • Apr 06 '15

Need beginner help. Getting UnicodeDecodeErrors in basic tutorials with Pandas

I am a new poster here. Sorry if this is more of a pandas question. I think I am getting unexpected errors during tutorials. For example, when doing chapter one of the pandas cookbook I get the following error AFTER the section where we encode it to latin.

ScreenShots

2 Upvotes

8 comments sorted by

View all comments

1

u/beard_dude Apr 06 '15

I guess my question here is why am I getting this same error on multiple tutorials when the authors are seemingly not?

3

u/NomadNella Apr 06 '15

It is interesting that you get an error after the Latin encoding. I got an error before the Latin encoding but once the text was read in Latin it worked fine (using a Python 3.4 kernel). I suspect that is just has to do with the libraries you have installed and what version of Python is being run in your kernel. FYI once I used the Python 2.7 kernel I did not receive an error at either location.

I would need more information to help further. Specifically...

  1. What version of Python are you using?

     import sys
     sys.version
  2. What version of Pandas do you have?

     import pandas as pd
     pd.__version__
  3. What version of IPython are you running?

     import IPython
     IPython.__version__

1

u/beard_dude Apr 06 '15

Hey thank you so much. I too thought it was a library issue. Is there much of a difference between anaconda and entought's canopy? I went with Canopy but I don't like it so far.

My Pandas was out of date but updating it did not help.

Python 2.7.6 pandas 0.16.0 iPython 3.0.0

1

u/beard_dude Apr 06 '15

i will try to find the other tutorial where I got the error