Jupyter notebook | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Jupyter notebook

While using Jupyter Notebook, how to load the pandas (pd) & numpy (np) library ?

2nd Feb 2020, 9:17 PM
Saahil P Vaswani
Saahil P Vaswani - avatar
15 Answers
+ 3
Import pandas as pd Import numpy as np
2nd Feb 2020, 9:25 PM
Qasem
+ 3
Have you installed pandas and numpy with pip?
2nd Feb 2020, 9:27 PM
Qasem
+ 2
Simply write: import pandas, numpy
2nd Feb 2020, 9:22 PM
Qasem
+ 1
Thanks Qasem
2nd Feb 2020, 9:28 PM
Saahil P Vaswani
Saahil P Vaswani - avatar
+ 1
i got it 👍🏼
3rd Feb 2020, 7:48 PM
Saahil P Vaswani
Saahil P Vaswani - avatar
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
2nd Feb 2020, 9:23 PM
Khatakh
Khatakh - avatar
0
Yes I did type that in it but there is an error saying, “pd is not defined”
2nd Feb 2020, 9:24 PM
Saahil P Vaswani
Saahil P Vaswani - avatar
0
yes this was the first command i typed in
2nd Feb 2020, 9:25 PM
Saahil P Vaswani
Saahil P Vaswani - avatar
0
Nope. I will install and then try again
2nd Feb 2020, 9:28 PM
Saahil P Vaswani
Saahil P Vaswani - avatar
0
could anyone tell me how to exactly install pandas and numpy with pip ?
3rd Feb 2020, 7:20 PM
Saahil P Vaswani
Saahil P Vaswani - avatar
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
3rd Feb 2020, 7:24 PM
Qasem
0
it says syntax error
3rd Feb 2020, 7:29 PM
Saahil P Vaswani
Saahil P Vaswani - avatar
0
🙈
3rd Feb 2020, 7:29 PM
Saahil P Vaswani
Saahil P Vaswani - avatar
0
I am using Anaconda as the interpretor.
3rd Feb 2020, 7:37 PM
Saahil P Vaswani
Saahil P Vaswani - avatar
0
type !pip install numpy !pip install pandas in jupyter notebook and run
4th Feb 2020, 5:01 AM
Tharindu
Tharindu - avatar