Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge 1 | Moving on to Tasks
Data Preprocessing
course content

Contenu du cours

Data Preprocessing

Data Preprocessing

1. Brief Introduction
2. Processing Quantitative Data
3. Processing Categorical Data
4. Time Series Data Processing
5. Feature Engineering
6. Moving on to Tasks

book
Challenge 1

Tâche

Swipe to start coding

In this challenge, you will need to work with the 'adult-census.csv' dataset. It contains both categorical and numerical data. Your task will be to prepare the data for processing.

  1. Read the dataset 'adult-census.csv'
  2. Explore the dataset. Carefully check which character indicates the missed data in the dataset and replace it with the np.nan object
  3. Remove rows with missing values
  4. Let's start with processing categorical data - columns 'workclass', 'sex' Use a one-hot encoding method to encode them
  5. For numeric data ('age', 'hours-per-week'), you will need to scale the data
  6. Print processed data

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 6. Chapitre 1
toggle bottom row

book
Challenge 1

Tâche

Swipe to start coding

In this challenge, you will need to work with the 'adult-census.csv' dataset. It contains both categorical and numerical data. Your task will be to prepare the data for processing.

  1. Read the dataset 'adult-census.csv'
  2. Explore the dataset. Carefully check which character indicates the missed data in the dataset and replace it with the np.nan object
  3. Remove rows with missing values
  4. Let's start with processing categorical data - columns 'workclass', 'sex' Use a one-hot encoding method to encode them
  5. For numeric data ('age', 'hours-per-week'), you will need to scale the data
  6. Print processed data

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 6. Chapitre 1
Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
We're sorry to hear that something went wrong. What happened?
some-alt