Challenge
Oppgave
Swipe to start coding
- Import the
pandas
with thepd
alias. - Read the
csv
file. - Show the first five rows of the
df
.
Løsning
9
1
2
3
4
5
6
7
8
# 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?
Takk for tilbakemeldingene dine!
Seksjon 4. Kapittel 3
9
1
2
3
4
5
6
7
8
# 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
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår