Amazon SageMaker Unified Studio is in preview release and is subject to change.
Change columns transform
A Change columns transform remaps the source data property keys into the desired configured for the target data. In a Change Columns transform node, you can:
Change the name of multiple columns.
Change the data type of the columns, if the new data type is supported and there is a transformation path between the two data types.
Use a custom expression to change the values of selected columns.
To add a Change Schema node to your flow diagram
-
Open the menu and then choose Change Columns to add a new transform to your flow diagram, if needed.
-
(Optional) Click on the rename node icon to enter a new name for the node in the flow diagram.
-
Modify the input schema by clicking on the node, then:
To rename a column, enter the new name in the Target column field.
To change the data type for a selected column, select "Add new type cast", then choose the source column, target column, and new data type from the Target type list.
To change the data values for a selected column, add a custom expression.
-
(Optional) After configuring the node properties and transform properties, you can preview the modified dataset by choosing the Data preview tab in the node details panel.