Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Working with libraries and datasets | Introduction to Jupyter notebook
Introduction to Jupyter notebook: Python

book
Working with libraries and datasets

Jupyter also provides us with the main data scientific libraries (like pandas, matplotlib etc).

Compito

Swipe to start coding

  1. Load pandas library.
  2. Read csv file from the link in the cell.

Soluzione

# 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?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 4
taskCode

Chieda ad AI

expand
ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

some-alt