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.
π€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
- Reset form Django with instance
- Django Composite Username
- How to feed data from django into a modal?
Source:stackexchange.com