Create a custom transformer in your pipeline that has a parameter that when equal to true, drops the G1 and G2 columns, and when false, leaves the columns in the data. Creates a new column in the data that sums the absences G1, absences G2, and absences G3 data and then drops those three columns.
A. Transformer Drop Sum
B. Custom Pipeline Transformer
C. G Sum Column Transformer
D. Absences Transformer