Category: Uncategorized
-
Data Preprocessing(1)
Please follow the instructions below: 1) Import the required libraries2) Load the dataset3) Take care of the missing data (‘nan’ value): fill them with average value4) Encode the categorical variable: ① Encode the independent variable ② Encode the dependent variable5) Split train set and test set with parameters: test_size = 0.2, random_state = 06) Apply…