Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer 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).

Taak

Swipe to start coding

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

Oplossing

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

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 4
taskCode

Vraag AI

expand
ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

some-alt