Usage
The following example shows how the step can be used in a recipe.Examples
Examples
- Example 1
- Signature
Given a dataset
sales with columns for date, product_id, and sales_amount,
we can use melt to transform this dataset into a long format.
This transformation will create a new dataset long_sales
where each row represents a single observation of sales amount for a product on a given date,
facilitating further analysis or visualization.The resulting dataset long_sales will have the following columns:date: the date of the observationvariable: indicating the product by itsproduct_idvalue: the sales amount for that product on the given date
Inputs & Outputs
The following are the inputs expected by the step and the outputs it produces. These are generally columns (ds.first_name), datasets (ds or ds[["first_name", "last_name"]]) or models (referenced
by name e.g. "churn-clf").
Configuration
The following parameters can be used to configure the behaviour of the step by including them in a json object as the last “input” to the step, i.e.step(..., {"param": "value", ...}) -> (output).
Parameters
Parameters
Variable column name.
Name of the variable column if not provided, we will use the name ‘variable’.