DataVec allows us to do much more within the transformation stage. Here are some of the other important transformation features that are available within TransformProcess:
- addConstantColumn(): Adds a new column in a dataset, where all the values in the column are identical and are as they were specified by the value. This method accepts three attributes: the new column name, the new column type, and the value.
- appendStringColumnTransform(): Appends a string to the specified column. This method accepts two attributes: the column to append to and the string value to append.
- conditionalCopyValueTransform(): Replaces the value in a column with the value specified in another column if a condition is satisfied. This method accepts ...