2
import pandas as pandas 
import Quandl as Quandl

df = Quandl.get('WIKI/GOOGL')

print (df.head)

when i try to run this program it generates an unusual error

    Traceback (most recent call last):
  File "/home/machine/.local/lib/python3.5/site-packages/pandas/__init__.py", line 25, in <module>
    from pandas import hashtable, tslib, lib
ImportError: /home/machine/.local/lib/python3.5/site-packages/pandas/hashtable.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyFPE_jbuf

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "ML_prac.py", line 1, in <module>
    import pandas as pandas 
  File "/home/machine/.local/lib/python3.5/site-packages/pandas/__init__.py", line 31, in <module>
    "extensions first.".format(module))
ImportError: C extension: /home/machine/.local/lib/python3.5/site-packages/pandas/hashtable.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyFPE_jbuf not built. If you want to import pandas from the source directory, you may need to run 'python setup.py build_ext --inplace' to build the C extensions first.

What should i do to fix this issue??? Any Suggestions

kaveh
  • 2,046
  • 1
  • 21
  • 33
Lucky Ansari
  • 51
  • 1
  • 1
  • 9

1 Answers1

0

Upgrade using pip --

[sudo] pip install --upgrade pandas
ajmartin
  • 2,379
  • 2
  • 26
  • 42