Remove columns with one value for all rows
pre_rm_static_cols(data, y)
A data source, that is one of the major R formats: data.table, data.frame, matrix and so on.
A string that indicates a target column name.
A dataset with deleted unwanted columns.
prep_data <- pre_rm_static_cols(compas,'Two_yr_Recidivism')