Cummin

This transform goes row by row in a column and calculates the cumulative minimum by taking the least value seen up to the current point. It compares each value to the previous cumulative minimum and updates the cumulative minimum value if a least value is found. For instance, there are 3, 6, 2 as row values in a column. The first number 3 is the cumulative maximum so far. The second number 6 is higher than the previous value of 3, therefore the cumulative minimum is updated to 3.

tags: [“EDA”]

Parameters

The table gives a brief description about each parameter in Cummin 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 cumulative minimum transform on the input dataset. (Required: True, Multiple: False)

The sample input for this transform looks as below:

../../../_images/cummin_input.png

The output after running the Cummin transform on the dataset appears as below:

../../../_images/cummin_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 Cummin transform:

template=TemplateV2.get_template_by('Cummin')

recipe_Cummin= project.addRecipe([car_data, employee_data, temperature_data, only_numeric], name='Cummin')

transform=Transform()
transform.templateId = template.id
transform.name='Cummin'
transform.variables = {
'input_dataset':'car',
'output_dataset':'car_cummin'}
recipe_Cummin.add_transform(transform)
recipe_Cummin.run()

Requirements

pandas