Skip to main content

Window

Window function is a another form of groupby and aggregate function but this transformer is useful when you want to join the groupby step back to the main frame without having to create another join step.

Window

Under Window transfomer there are sub views such as :

  1. Title: Title of the step, Usually it is suggested to keep this short.
  2. Description: Jot down everything you want to do inside of this processor . This is an optional parameter.
  3. Partition by Column(s) : select a grouping column.
  4. Order by Column(s): This option allows you to choose any number of columns to Order the result by.
  5. Add Field to Aggregate : Sub views under this button are :
  • Select Column: Select the colum you want to use for aggregation.
  • Aggregation function : Select the aggregation function you want to use.
  • rename the aggregated column : By default you will see a name given to the column which is aggregated which has the column name and the aggregation done on it but you can change the name as per your requirement.

As you can see the grouped and aggregated columns are joined back to the same frame after execution. If you were to do the same in groupby you should have created a groupby step and then create a join step by doing a left join.

  • Aggregation Functions suppported for numerical columns are :
  1. Sum
  2. Mean
  3. Count
  4. Median
  5. Min
  6. Max
  7. Stddev(Standar Deviation)
  8. Last
  9. First
  10. Rank
  11. Denserank
  12. Lag
  13. Lead

Window

  • Aggregation functions supported for categorical columns are :
  1. Count
  2. Min
  3. Max

Window

  • A filled step would look like the one below:

window

Get the power of futuristic Data & AI Platform for your enterprise.