Pivot

Processor that reshapes data from long form to wide form. Rows sharing an index are collapsed, with the distinct entries of a category column becoming separate columns. It is used to turn key/value style rows into a flat per-event table.

Configuration

Selected as name: pivot.

Option

Description

Type

Default

index

Columns identifying a row in the wide output.

column(s)

required

col

Column whose distinct values become the new columns.

str

required

values

Column supplying the values placed under the new columns.

str

required

- name: pivot
  kwargs:
    index: event_id
    col: feature_name
    values: feature_value