Cube Column
This transform multiplies every element in the specified column by itself twice in a dataset and returns the value.
tags: [“Data Preparation”]
Parameters
The table gives a brief description about each parameter in Cube Column transform.
- Name:
By default, the transform name is populated. You can also add a custom name for the transform.
- Input Dataset:
The file name of the input dataset. You can select the dataset that was uploaded from the drop-down list. (Required: True, Multiple: False)
- Output Dataset:
The file name with which the output dataset is created after multiplying every element in the specified column twice by itself. (Required: True, Multiple: False)
- Column:
The name of the column to which the cube operation must be performed. (Required: True, Multiple: False, Datatypes: [“STRING”], Options: [“FIELDS”], Datasets: [“df”])
The sample input for this transform looks as below:
The output after running the Cube column transform on the dataset appears as below:
Using this transform in Notebook
The following is the code snippet you must use in the Jupyter Notebook editor to run the Cube Column transform:
template=TemplateV2.get_template_by('Cube Column')
recipe_Cube_Column= project.addRecipe([car_data, employee_data, temperature_data, only_numeric], name='Cube Column')
transform=Transform()
transform.templateId = template.id
transform.name='Cube Column'
transform.variables = {
'input_dataset':'only_numeric',
'output_dataset':'ccds',
'col':"Age"}
recipe_Cube_Column.add_transform(transform)
recipe_Cube_Column.run()
Requirements
pandas