Any
This transform checks whether any element is True, potentially over an axis. There should be at least one non-zero or non-empty element to return a True value.
tags: [“EDA”]
Parameters
The table gives a brief description about each parameter in Any 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. (Required: True, Multiple: False)
Sample input for Any transform:
The output after running the any 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 **Any**transform:
template=TemplateV2.get_template_by('Any')
recipe_Any= project.addRecipe([car_data, employee_data, temperature_data, only_numeric], name='Any')
transform=Transform()
transform.templateId = template.id
transform.name='Any'
transform.variables = {
'input_dataset':'car',
'output_dataset':'car_any'}
recipe_Any.add_transform(transform)
recipe_Any.run()
Requirements
pandas