AttributeError: 'module' object has no attribute 'version'
Question: I am working on learning how to use pandas but get the following error:

    
    
    Traceback (most recent call last):
      File "data_frame.py", line 2, in <module>
        import pandas as pd
      File "/Users/gregwinter/anaconda2/lib/python2.7/site-packages/pandas/__init__.py", line 13, in <module>
        __import__(dependency)
      File "/Users/gregwinter/numpy.py", line 22, in <module>
        from pandas.compat.numpy_compat import *
      File "/Users/gregwinter/anaconda2/lib/python2.7/site-packages/pandas/compat/numpy_compat.py", line 15, in <module>
        _np_version = np.version.short_version
    AttributeError: 'module' object has no attribute 'version'
    

I have no idea how to fix this. Anything you can tell be on how to fix this
would be great.


Answer: You named a file of your _own_ `numpy.py`:

    
    
    /Users/gregwinter/numpy.py
    

Guess which one Python thinks pandas wants to import? :-) Rename your program,
and remove any .pyc or .pyo files that are around.

