Square Root Column

This transform gives the square root of every element in a specific column of a dataset.

tags: [“Data Preparation”]

Parameters

The table gives a brief description about each parameter in Square 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 to take the square root of every element in a specific column. (Required: True, Multiple: False)

Output Dataset:

The file name with which the dataset is created. This contains the square root of values of a particular column. (Required: True, Multiple: False)

Column:

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

The sample input for this transform looks as shown in the screenshot:

../../../_images/square_root1.png

The output or result after adding the Square Root transform looks as below:

../../../_images/square_root2.png

How to use it in Notebook

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

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

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

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

Requirements

pandas