title: Pandas: cannot import name compat
body: <p>I have some code, <code>preprocess_align.py</code> which runs perfectly on my PC but I get an <code>ImportError</code> when running it on a server. The <code>ImportError</code> supposedly comes when <code>pandas</code> is imported. Here is the error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "get_features.py", line 12, in &lt;module&gt;
      import preprocess_align as prep
    File "/home/influenza/preprocess_align.py", line 7, in &lt;module&gt;
      import pandas as pd
    File "/home/influenza/anaconda2/lib/python2.7/site-packages/pandas/__init__.py", line 42, in &lt;module&gt;
      from pandas.core.api import *
    File "/home/influenza/anaconda2/lib/python2.7/site-packages/pandas/core/api.py", line 10, in &lt;module&gt;
      from pandas.core.groupby.groupby import Grouper
    File "/home/influenza/anaconda2/lib/python2.7/site-packages/pandas/core/groupby/__init__.py", line 2, in &lt;module&gt;
      from pandas.core.groupby.groupby import (
    File "/home/influenza/anaconda2/lib/python2.7/site-packages/pandas/core/groupby/groupby.py", line 16, in &lt;module&gt;
      from pandas import compat
  ImportError: cannot import name compat
  </code></pre>
  
  <p>The Python version is <code>Python 2.7.14 |Anaconda custom (64-bit)</code> and I have already used <code>conda update pandas</code> to update the version to the latest.</p>
  
  <p>Any help is appreciated.</p>