Question: Using scikit - learn, create a custom transformer called Assignment 3 Transformer. Include an input parameter called create _ new _ column with a default
Using scikitlearn, create a custom transformer called AssignmentTransformer. Include an input parameter called createnewcolumn with a default value of True that performs Step when its value is True, but skips Step and just returns the DataFrame when its value False.
Step adds an attribute to the end of the numerical data ie new last column that is the result of the daysperweek column multiplied by the hoursperday column. It also deletes the daysperweek and hoursperday columns.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
