Working with libraries and datasets
Jupyter also provides us with the main data scientific libraries (like pandas
, matplotlib
etc).
Compito
Swipe to start coding
- Load
pandas
library. - Read
csv
file from the link in the cell.
Soluzione
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
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 4
9
1
taskCode
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione