Generate Zero dataset
This transform generates a new dataset for the given number of rows and columns with all zeroes in each row.
tags: [“Data Preparation”]
Parameters
The table gives a brief description about each parameter in Generate Zero dataset transform.
- Name:
By default, the transform name is populated. You can also add a custom name for the transform.
- Output Dataset:
The file name with which the output dataset is created with the given number of rows and columns with all zeroes in each row. (Required: True, Multiple: False)
- value_1:
The total number of rows should be in the new dataset. (Required: True, Multiple: False, Datatypes: [“LONG”], Options: [“CONSTANT”])
- value_2:
The total number of columns should be in the new dataset. (Required: True, Multiple: False, Datatypes: [“LONG”], Options: [“CONSTANT”])
The sample input for this transform looks as shown in the screenshot.
The output after running the Generate Zero dataset transform on the dataset appears as below:
How to use it in Notebook
template=TemplateV2.get_template_by('Generate Zero dataset')
recipe_Generate_Zero_dataset= project.addRecipe([car_data, employee_data, temperature_data, only_numeric], name='Generate Zero dataset')
transform=Transform()
transform.templateId = template.id
transform.name='Generate Zero dataset'
transform.variables = {
'output_dataset':'id_dataset_0',
'value_1':2,
'value_2':3}
recipe_Generate_Zero_dataset.add_transform(transform)
recipe_Generate_Zero_dataset.run()
Requirements
pandas numpy