[Fixed]-ImportError :No module named pandas

1πŸ‘

βœ…

It is pretty complicate to get the pandas to run in aws but since you are trying to retrieve a data from your own api which I assume it exists in your models.py and all the data is already there. Therefore you can.

a = yourObject.objects.all()
#Make a list to contains all the object
listAttribute1 = []
listAttrubute2 = []
for x in a:
    listAttribute1.append(x.yourattribute1)
    listAttribute2.append(x.yourattribute2)

Thus, you can retrieve data from your api without using pandas this way. For more information.

Check here.

http://blog.etianen.com/blog/2013/06/08/django-querysets/

πŸ‘€Phurich.P

0πŸ‘

I think you are using python virtual environment instead of the default. Make sure when you install anything after activating the virtual environment.

you$ source /opt/python/run/venv/bin/activate
(venv)you$ pip install pandas

Good luck!

πŸ‘€daiyanze

Leave a comment