Working with libraries and datasets
Jupyter also provides us with the main data scientific libraries (like pandas
, matplotlib
etc).
Taak
Swipe to start coding
- Load
pandas
library. - Read
csv
file from the link in the cell.
Oplossing
99
1
2
3
4
5
6
7
8
9
10
# load library
import pandas as pd
# read dataset
url = "https://drive.google.com/file/d/1WAzK8u-hTySoNukcJgEPcffk0lc0-BjR/view?usp=sharing"
path = 'https://drive.google.com/uc?export=download&id='+url.split('/')[-2]
data = pd.read_csv(path)
# first five rows
data.head()
Mark tasks as Completed
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 4
9
1
taskCode
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.