Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge | Becoming an Analyst
Introduction to Python for Data Analysis

book
Challenge

Oppgave

Swipe to start coding

  1. Import the pandas with the pd alias.
  2. Read the csv file.
  3. Show the first five rows of the df.

Løsning

# Import the pandas
import pandas as pd

# Read the file
df = pd.read_csv('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/783d7288-e86b-4b89-9966-a2fe97995277/section_3_dataset_upd.csv')

# Show the first five fows of the df
print(df.head())

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 4. Kapittel 3
# Import the pandas
import ___

# Read the file
df = ___.___('https://codefinity-content-media.s3.eu-west-1.amazonaws.com/783d7288-e86b-4b89-9966-a2fe97995277/section_3_dataset_upd.csv')

# Show the first five fows of the df
___(___)

Spør AI

expand
ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt