Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge | Processing Categorical Data
Data Preprocessing

Swipe to show menu

book
Challenge

Task

Swipe to start coding

Here is the 'students.csv' dataset, which contains 4 columns, 3 of which are categorical. Your task is to process this dataset and encode all categorical variables.

  1. Determine for which columns to use ordinal encoding, one-hot encoding, and for which label encoding.
  2. Convert columns.
  3. Output the dataset.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 5

Ask AI

expand
ChatGPT

Ask anything or try one of the suggested questions to begin our chat

book
Challenge

Task

Swipe to start coding

Here is the 'students.csv' dataset, which contains 4 columns, 3 of which are categorical. Your task is to process this dataset and encode all categorical variables.

  1. Determine for which columns to use ordinal encoding, one-hot encoding, and for which label encoding.
  2. Convert columns.
  3. Output the dataset.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 3. ChapterΒ 5
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt