Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Types Conversion | Data Validation
Preprocessing Data
course content

Contenido del Curso

Preprocessing Data

Preprocessing Data

1. Data Exploration
2. Data Cleaning
3. Data Validation
4. Normalization & Standardization
5. Data Encoding

Types Conversion

You can discover that data can be stored in the dataset in the wrong format or type. The most common cases are:

  • storing integer or float values as string variables.
  • storing date and time values as strings.
  • storing values in a form that can be converted to a more suitable one.

Let's explore the dataset exercise containing info about diet, pulse, time, and kind of different exercises. There is sample data:

unnamediddietpulsetimekind
3512low fat10430 minwalking
6422low fat10415 minrunning
104low fat8215 minrest
187no fat871 minrest
4817no fat1031 minwalking

It makes sense to modify the time column data: all rows contain the duration in minutes, so info about time units (min, sec, ot hours) is useless. We're gonna remove the extra symbols and store only numerical values, which additionally will be converted to int.

Tarea

Apply the type conversion to the time column. Remove the last 4 symbols which are equal to min and convert the rest to int. Check the sample.

Tarea

Apply the type conversion to the time column. Remove the last 4 symbols which are equal to min and convert the rest to int. Check the sample.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 3. Capítulo 1
toggle bottom row

Types Conversion

You can discover that data can be stored in the dataset in the wrong format or type. The most common cases are:

  • storing integer or float values as string variables.
  • storing date and time values as strings.
  • storing values in a form that can be converted to a more suitable one.

Let's explore the dataset exercise containing info about diet, pulse, time, and kind of different exercises. There is sample data:

unnamediddietpulsetimekind
3512low fat10430 minwalking
6422low fat10415 minrunning
104low fat8215 minrest
187no fat871 minrest
4817no fat1031 minwalking

It makes sense to modify the time column data: all rows contain the duration in minutes, so info about time units (min, sec, ot hours) is useless. We're gonna remove the extra symbols and store only numerical values, which additionally will be converted to int.

Tarea

Apply the type conversion to the time column. Remove the last 4 symbols which are equal to min and convert the rest to int. Check the sample.

Tarea

Apply the type conversion to the time column. Remove the last 4 symbols which are equal to min and convert the rest to int. Check the sample.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 3. Capítulo 1
toggle bottom row

Types Conversion

You can discover that data can be stored in the dataset in the wrong format or type. The most common cases are:

  • storing integer or float values as string variables.
  • storing date and time values as strings.
  • storing values in a form that can be converted to a more suitable one.

Let's explore the dataset exercise containing info about diet, pulse, time, and kind of different exercises. There is sample data:

unnamediddietpulsetimekind
3512low fat10430 minwalking
6422low fat10415 minrunning
104low fat8215 minrest
187no fat871 minrest
4817no fat1031 minwalking

It makes sense to modify the time column data: all rows contain the duration in minutes, so info about time units (min, sec, ot hours) is useless. We're gonna remove the extra symbols and store only numerical values, which additionally will be converted to int.

Tarea

Apply the type conversion to the time column. Remove the last 4 symbols which are equal to min and convert the rest to int. Check the sample.

Tarea

Apply the type conversion to the time column. Remove the last 4 symbols which are equal to min and convert the rest to int. Check the sample.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

You can discover that data can be stored in the dataset in the wrong format or type. The most common cases are:

  • storing integer or float values as string variables.
  • storing date and time values as strings.
  • storing values in a form that can be converted to a more suitable one.

Let's explore the dataset exercise containing info about diet, pulse, time, and kind of different exercises. There is sample data:

unnamediddietpulsetimekind
3512low fat10430 minwalking
6422low fat10415 minrunning
104low fat8215 minrest
187no fat871 minrest
4817no fat1031 minwalking

It makes sense to modify the time column data: all rows contain the duration in minutes, so info about time units (min, sec, ot hours) is useless. We're gonna remove the extra symbols and store only numerical values, which additionally will be converted to int.

Tarea

Apply the type conversion to the time column. Remove the last 4 symbols which are equal to min and convert the rest to int. Check the sample.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 3. Capítulo 1
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
We're sorry to hear that something went wrong. What happened?
some-alt