Variance

This transform calculates the variance of all columns in a dataset.

tags: [“EDA”]

Parameters

The table gives a brief description about each parameter in Variance 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 on which variance transform must be applied. 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. This file contains the variance of all columns in the dataset. (Required: True, Multiple: False)

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

../../../_images/variance_input.png

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

../../../_images/variance_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 Variance transform:

template=TemplateV2.get_template_by('Varariance')

recipe_Varariance= project.addRecipe([car_data, employee_data, temperature_data, only_numeric], name='Varariance')

transform=Transform()
transform.templateId = template.id
transform.name='Varariance'
transform.variables = {
'input_dataset':'car',
'output_dataset':'car_var'}
recipe_Varariance.add_transform(transform)
recipe_Varariance.run()

Requirements

pandas