Group by column min
This transform allows you to group data based on a particular column and then find the minimum value of other columns within each group.
tags: [“EDA”]
Parameters
The table gives a brief description about each parameter in Group by column min 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 perform the group by column min transform. (Required: True, Multiple: False)
- Output Dataset:
The file name with which the output dataset must be generated. This file contains the group by min values in each column. (Required: True, Multiple: False)
- Columns for grouping:
The column in which same values must be grouped. (Required: True, Multiple: False, Datatypes: [“STRING”], Options: [“FIELDS”], Datasets: [“df”])
The sample input for this transform looks as shown in the screenshot.
The output after running the Group by column min transform on the dataset appears as below:
How to use it in Notebook
The following is the code snippet you must use in the Jupyter Notebook editor to run the Group by column min transform:
template=TemplateV2.get_template_by('Group by column min')
recipe_Group_by_column_min= project.addRecipe([car_data, employee_data, temperature_data, only_numeric], name='Group by column min')
transform=Transform()
transform.templateId = template.id
transform.name='Group by column min'
transform.variables = {
'input_dataset':'car',
'output_dataset':'groupedby_car_min',
'col1':"fueltype"}
recipe_Group_by_column_min.add_transform(transform)
recipe_Group_by_column_min.run()
Requirements
pandas