Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Correcting and converting height column | Analyzing FIFA-17 players data with pandas
Analyzing FIFA-17 players data with pandas

book
Correcting and converting height column

So, as you can see, each height has ' cm' in the end, which makes this column non-numeric. Read the instruction how you can handle with this.

Oppgave

Swipe to start coding

  1. Remove ' cm' in each observation in Height column and convert it to int type.
  2. Print first 10 observations to check correctness.

Løsning

Mark tasks as Completed
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 4
single

single

Spør AI

expand

Spør AI

ChatGPT

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

close

Awesome!

Completion rate improved to 10

book
Correcting and converting height column

So, as you can see, each height has ' cm' in the end, which makes this column non-numeric. Read the instruction how you can handle with this.

Oppgave

Swipe to start coding

  1. Remove ' cm' in each observation in Height column and convert it to int type.
  2. Print first 10 observations to check correctness.

Løsning

Mark tasks as Completed
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

close

Awesome!

Completion rate improved to 10
some-alt