+ 2
Jupyter notebook
While using Jupyter Notebook, how to load the pandas (pd) & numpy (np) library ?
15 Antworten
+ 3
Import pandas as pd
Import numpy as np
+ 3
Have you installed pandas and numpy with pip?
+ 2
Simply write:
import pandas, numpy
+ 1
Thanks Qasem
+ 1
i got it 👍🏼
0
import pandas
import numpy
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
0
Yes I did type that in it but there is an error saying, “pd is not defined”
0
yes this was the first command i typed in
0
Nope. I will install and then try again
0
could anyone tell me how to exactly install pandas and numpy with pip ?
0
1. Go to command prompt
2. Cd to python directory. For example:
cd C:\Python..
3. While you are connected to internet Write: pip install pandas
4. After completion write:
Pip install numpy
0
it says syntax error
0
🙈
0
I am using Anaconda as the interpretor.
0
type
!pip install numpy
!pip install pandas
in jupyter notebook and run