While using Jupyter Notebook, how to load the pandas (pd) & numpy (np) library ?
2/2/2020 9:17:47 PM
Import pandas as pd
Import numpy as np
Have you installed pandas and numpy with pip?
import pandas, numpy
i got it 👍🏼
make sure you have them installed. Sometimes pip install is not enough though so you may want to run anaconda prompt and type in
conda install -c anaconda pandas
Yes I did type that in it but there is an error saying, “pd is not defined”
yes this was the first command i typed in
Nope. I will install and then try again
could anyone tell me how to exactly install pandas and numpy with pip ?
1. Go to command prompt
2. Cd to python directory. For example:
3. While you are connected to internet Write: pip install pandas
4. After completion write:
Pip install numpy
it says syntax error
I am using Anaconda as the interpretor.
!pip install numpy
!pip install pandas
in jupyter notebook and run
Send us a message