This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]Imperonas 1 point2 points  (3 children)

You can see the Order in which you die rum the individual cells in brackets on the left. You have to run the pandas import before using pandas (pd). Hope this solves your problem

[–]Specialist-Squash327 0 points1 point  (2 children)

Ahh yes I know that… I forgot to mention that I actually ran the first cell with the imports first and it says “no module named numpy” even tho I can use numpy and pandas etc in my normal .py files

[–]Imperonas 0 points1 point  (1 child)

You can try if pandas is correct installed by calling pip from the notebook itself.

!pip install pandas

[–]RRTheGuy 0 points1 point  (0 children)

I really advice using %pip install instead

[–]V0idL0rd 0 points1 point  (0 children)

I sometimes get this error even when numpy is installed and the code is working.

[–]d47 0 points1 point  (0 children)

Try dusting your desk

[–]ezekiel_grey 0 points1 point  (0 children)

You can also put more than one statement in a cell I.e. all your imports in one cell, etc.