Cube Root Column

This transform calculates the cube root of a specific column in the dataset.

tags: [“Data Preparation”]

Parameters

The table gives a brief description about each parameter in Cube Root 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 performing the cube Root of a column in the dataset. (Required:* True, Multiple: False)

Column:

The name of the column to which the cube root operation must be performed. (Required: True, Multiple: False, Datatypes: [“STRING”], Options: [“FIELDS”], Datasets: [“df”])

The sample input for this transform looks as below:

../../../_images/cuberoot_input.png

The output after running the Cube Root Column transform on the dataset appears as below:

../../../_images/cuberoot_output.png

How to use it in Notebook

The following is the code snippet you must use in the Jupyter Notebook editor to run the Cube Root Column transform:

template=TemplateV2.get_template_by('Cube Root Column')

recipe_Cube_Root_Column= project.addRecipe([car_data, employee_data, temperature_data, only_numeric], name='Cube Root Column')

transform=Transform()
transform.templateId = template.id
transform.name='Cube Root Column'
transform.variables = {
'input_dataset':'only_numeric',
'output_dataset':'sqcds',
'col':"Age"}
recipe_Cube_Root_Column.add_transform(transform)
recipe_Cube_Root_Column.run()

Requirements

pandas