Course Content
Data Preprocessing
Data Preprocessing
2. Processing Quantitative Data
3. Processing Categorical Data
4. Time Series Data Processing
6. Moving on to Tasks
Challenge
Task
Swipe to show code editor
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.
- Determine for which columns to use ordinal encoding, one-hot encoding, and for which label encoding.
- Convert columns.
- Output the dataset.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 5
Challenge
Task
Swipe to show code editor
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.
- Determine for which columns to use ordinal encoding, one-hot encoding, and for which label encoding.
- Convert columns.
- Output the dataset.
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 5
Switch to desktop for real-world practiceContinue from where you are using one of the options below