Question: 'Gender', 'Ever _ Married', 'Age', 'Profession', 'Work _ Experience', 'Spending _ Score', 'Family _ Size' ] ] Part 1 : Pre - Processing ( 7

'Gender', 'Ever_Married', 'Age', 'Profession', 'Work_Experience', 'Spending_Score', 'Family_Size' ]]
Part 1: Pre-Processing (7 Marks)
Load the dataset into a Pandas DataFrame.
Q 1.1 Perform one-hot encoding on the categorical variables AND remove all rows with missing values [5 Points]
# A 1.1
# YOUR CODE HERA
#raise NotImplementedError()
df. shape
(8068,7)
assert df. shape[1]==19
assert df. shape []==6969
'Gender', 'Ever _ Married', 'Age', 'Profession',

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!