Rename
Rename
lets you change the name of a dataset, column, or change the names of all the columns in a dataset to their synonyms.
Format
Rename
has several formats:
Rename the column <column> to <new name>
. Note that you can rename multiple columns in the same step by adding more<column>
and<new name>
parameters as a comma-separated list.Rename the current dataset to <new name>
Rename the dataset <dataset> to <new name>
Parameters
Rename
uses the following parameters:
dataset
(required). The dataset whose columns you want to rename using their synonyms. Note that synonyms need to be configured usingAnnotate
. Dataset names can contain up to and including 50 characters.column
(required). The column you want to rename.new name
(required). The new name you want to use. Note that this string cannot contain spaces.
Output
If the dataset is successfully renamed, a the dataset reloads with its new name. You can then refer to the dataset by its new name when you use other skills.
If the column is successfully renamed, a sample of the dataset is shown in the Data tab. You can then refer to a column by its new name when you use other skills.
Otherwise, an error message is shown.
Examples
To rename a column called "PClass" to the more readable “PassengerClass,” enter Rename the column PClass to PassengerClass
.
To rename both the "PClass" column and the "Name" column in a single step, enter Rename the column Pclass to PassengerClass, Name to FullName
.
To rename your current dataset to "MarketingData," enter Rename the current dataset to MarketingData
.