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

Compito

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.

Soluzione

Mark tasks as Completed
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 4

Chieda ad AI

expand
ChatGPT

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

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.

Compito

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.

Soluzione

Mark tasks as Completed
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 4
Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Siamo spiacenti che qualcosa sia andato storto. Cosa è successo?
some-alt