I recently changed from Windows to Ubuntu 12.04 LTS, and I am trying to get the hang on Python.
I copied a couple of example commands from http://pandas.pydata.org/pand
I've had similar error regarding the 'compat' attribute, restarting kernel helped
Delete compiled script, pandas.pyc, from the location of your script, that is from your home directory. And don't name your scripts the same names as modules you're using.
pandas.pyc