Value Multiplication
Get Multiplication of dataset and other, element-wise (binary operator mul).
tags: [“Data Preparation”]
Parameters
Input Dataset: Input Dataset to be multiplied (Required: True, Multiple: False)
Output Dataset: Output Dataset (Required: True, Multiple: False)
value_1: Scalar Value (Required: True, Multiple: False, Datatypes: [“LONG”], Options: [“CONSTANT”])
The sample input for this transform looks as shown in the screenshot:
The output or result after adding the value multiplication transform looks as below:
How to use it in Notebook
template=TemplateV2.get_template_by('Value Multiplication')
recipe_Value_Multiplication= project.addRecipe([car_data, employee_data, temperature_data, only_numeric], name='Value Multiplication')
transform=Transform()
transform.templateId = template.id
transform.name='Value Multiplication'
transform.variables = {
'input_dataset':'car',
'output_dataset':'car_multiplied',
'value_1':1}
recipe_Value_Multiplication.add_transform(transform)
recipe_Value_Multiplication.run()
Requirements
pandas