Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Proper Converting | Preprocessing Data: Part II
Analyzing and Visualizing Real-World Data
course content

Contenido del Curso

Analyzing and Visualizing Real-World Data

Analyzing and Visualizing Real-World Data

1. Preprocessing Data: Part I
2. Preprocessing Data: Part II
3. Analyzing Data
4. Visualizing Data

bookProper Converting

Fortunately, this issue can be easily fixed. The .to_datetime() method has yearfirst and dayfirst boolean parameters that define whether dates start with the year or day, respectively. By default, both parameters are set to False, which is why the first numbers were considered as months (if possible). Since the dates in our data start with the day, we just need to set the dayfirst parameter to True.

Tarea

  1. Convert the 'Date' column to datetime type, considering that the day comes first.
  2. Output the first 5 rows and dtypes of the df dataframe.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 5
toggle bottom row

bookProper Converting

Fortunately, this issue can be easily fixed. The .to_datetime() method has yearfirst and dayfirst boolean parameters that define whether dates start with the year or day, respectively. By default, both parameters are set to False, which is why the first numbers were considered as months (if possible). Since the dates in our data start with the day, we just need to set the dayfirst parameter to True.

Tarea

  1. Convert the 'Date' column to datetime type, considering that the day comes first.
  2. Output the first 5 rows and dtypes of the df dataframe.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 5
toggle bottom row

bookProper Converting

Fortunately, this issue can be easily fixed. The .to_datetime() method has yearfirst and dayfirst boolean parameters that define whether dates start with the year or day, respectively. By default, both parameters are set to False, which is why the first numbers were considered as months (if possible). Since the dates in our data start with the day, we just need to set the dayfirst parameter to True.

Tarea

  1. Convert the 'Date' column to datetime type, considering that the day comes first.
  2. Output the first 5 rows and dtypes of the df dataframe.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Fortunately, this issue can be easily fixed. The .to_datetime() method has yearfirst and dayfirst boolean parameters that define whether dates start with the year or day, respectively. By default, both parameters are set to False, which is why the first numbers were considered as months (if possible). Since the dates in our data start with the day, we just need to set the dayfirst parameter to True.

Tarea

  1. Convert the 'Date' column to datetime type, considering that the day comes first.
  2. Output the first 5 rows and dtypes of the df dataframe.

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 2. Capítulo 5
Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
some-alt