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
Sectionย 3. Chapterย 5
single

single

bookChallenge

Swipe to show menu

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
single

single

Ask AI

expand

Ask AI

ChatGPT

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

some-alt