Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Data Cleaning | Section
Practice
Projects
Quizzes & Challenges
Cuestionarios
Challenges
/
Data Preprocessing and Feature Engineering

bookChallenge: Data Cleaning

Tarea

Swipe to start coding

You are given the Titanic dataset loaded through the Seaborn library. Your task is to clean the dataset using pandas by performing the following steps:

  1. Load the dataset with sns.load_dataset("titanic").
  2. Replace missing values in the column age with the column mean.
  3. Replace missing values in the column embarked with the most frequent value (mode).
  4. Remove duplicate rows.
  5. Remove outliers in the column fare using the IQR method.

Return the final cleaned dataset as a DataFrame named cleaned_data.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 4
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

bookChallenge: Data Cleaning

Desliza para mostrar el menú

Tarea

Swipe to start coding

You are given the Titanic dataset loaded through the Seaborn library. Your task is to clean the dataset using pandas by performing the following steps:

  1. Load the dataset with sns.load_dataset("titanic").
  2. Replace missing values in the column age with the column mean.
  3. Replace missing values in the column embarked with the most frequent value (mode).
  4. Remove duplicate rows.
  5. Remove outliers in the column fare using the IQR method.

Return the final cleaned dataset as a DataFrame named cleaned_data.

Solución

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 1. Capítulo 4
single

single

some-alt