Forward Fill

This transform will fill the missing or null values with the last value preceding the null value.

tags: [“Data Preparation”]

Parameters

This table provides a brief description about each parameter in Forward Fill 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 filling the null values in the dataset value with the value preceding the missing or null value. (Required: True, Multiple: False)

Below is the screenshot with sample input data for this transform.

../../../_images/forwardfill_output1.png

The output after running the forward fill transform on the dataset appears as below:

../../../_images/forwardfill_output_new.png

How to use it in Notebook

The following is the code snippet you must use in the Jupyter Notebook editor to run the Forward Fill transform:

template=TemplateV2.get_template_by('Forward Fill')

recipe_Forward_Fill= project.addRecipe([car_data, employee_data, temperature_data, only_numeric], name='Forward Fill')

transform=Transform()
transform.templateId = template.id
transform.name='Forward Fill'
transform.variables = {
'input_dataset':'car',
'output_dataset':'car_ffill'}
recipe_Forward_Fill.add_transform(transform)
recipe_Forward_Fill.run()

Requirements

pandas