--- title: experimental.unpivot() function description: > `experimental.unpivot()` removes the `_time` column and any other column not in the group key and outputs a new table with `_field` and `_value` columns pairs. The output stream retains the group key and all group key columns of the input stream. Specialized to transform the pivoted output from `iox.from()` into the unpivoted format. menu: flux_0_x_ref: name: experimental.unpivot parent: experimental identifier: experimental/unpivot weight: 101 --- `experimental.unpivot()` removes the `_time` column and any other column not in the group key and outputs a new table with `_field` and `_value` columns pairs. The output stream retains the group key and all group key columns of the input stream. Specialized to transform the pivoted output from `iox.from()` into the unpivoted format. ##### Function type signature ```js (<-tables: stream[{A with _time: time}]) => stream[{B with _value: C, _field: string}] where A: Record, B: Record ``` {{% caption %}}For more information, see [Function type signatures](/flux/v0.x/function-type-signatures/).{{% /caption %}} ## Parameters ### tables Input data. Default is piped-forward data (`<-`).