Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fix: ImportError: cannot import name 'PandaRequest'?

This is my first time using a jupyter notebook.

I was trying to import the panda module:

import panda as pd

but I get the following error:

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/panda/__init__.py in <module>()
----> 1 from request import PandaRequest

ImportError: cannot import name 'PandaRequest'

How to fix this?

Edit: I wanted to use pandas but typed panda instead. :'D

like image 464
Gale Staneva Avatar asked Oct 10 '16 19:10

Gale Staneva


2 Answers

You have installed and imported the panda module, which is the a Python implementation of the Panda REST interface and which has incomplete dependencies.

What you probably want to do is install pandas (with the final s) and import that.

like image 139
Anthon Avatar answered Nov 11 '22 22:11

Anthon


I got the same problem and come up with the following solutions:

import pandas as pd 

instead of

import panda as pd

It is called pandas.

like image 44
Dedy Purwanto Avatar answered Nov 11 '22 20:11

Dedy Purwanto