Group by column max
This transform allows you to group data based on a particular column and then find the maximum value of all the other columns within each group.

tags: [“EDA”]
Parameters
The table gives a brief description about each parameter in Group by column max 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 grouping by max is performed. (Required: True, Multiple: False)
- Columns for grouping:
The column against which the maximum value of each group must be returned. (Required: True, Multiple: False, Options: [“FIELDS”], Datasets: [“df”])
The sample input for this transform looks as shown in the screenshot.

The output after running the Group by column max 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 max transform:
template=TemplateV2.get_template_by('Group by column max')
recipe_Group_by_column_max= project.addRecipe([car_data, employee_data, temperature_data, only_numeric], name='Group by column max')
transform=Transform()
transform.templateId = template.id
transform.name='Group by column max'
transform.variables = {
'input_dataset':'car',
'output_dataset':'groupedby_car_max',
'col1':"fueltype"}
recipe_Group_by_column_max.add_transform(transform)
recipe_Group_by_column_max.run()
Requirements
pandas