Stack

Stack reorganizes data into a new table by stacking the original columns on top of each other, making it easier to compare and visualize data.

tags: [“EDA”]

Parameters

Input Dataset: Input Dataset (Required: True, Multiple: False)

Output Dataset: Output Dataset (Required: True, Multiple: False)

How to use it in RC UI

../../../_images/stack1.png

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

../../../_images/stack2.png

How to use it in Notebook

template=TemplateV2.get_template_by('Stack')

recipe_Stack= project.addRecipe([car_data, employee_data, temperature_data, only_numeric], name='Stack')

transform=Transform()
transform.templateId = template.id
transform.name='Stack'
transform.variables = {
'input_dataset':'car',
'output_dataset':'car_stack'}
recipe_Stack.add_transform(transform)
recipe_Stack.run()

Requirements

pandas