Menu
Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version
Publication date

Mar 9, 2022

Confidentiality
Public
Reactions
1
Share

Extract column tags to new row

TRANSFORMER
Typing name :  TASK.gws_core.TableColumnTagExtractor Brick :  gws_core

Extract column tags values to a new row

Transformer to extract values of tags into in new rows that are appended to the end of the table.

Multiple tag keys can be provided to extract multiple tags (one row is created by tag key).

Example

Let's say you have the following table, the first row does not really exist in the table, it is just to show the tags of the columns.

Row name A B
Column tags Gender : M Gender : F
0 1 5
1 2 6

Here is the result of the extraction of the Gender tag.

Row name A B
Column tags Gender : M Gender : F
0 1 5
1 2 6
Gender M F

A new row is created containing the values of the Gender tag.

Input

Table
2d excel like table

Output

Table
2d excel like table

Configuration

params

Type : ListMaximum occurrences number : -1

tag_key

Tag key to extract

Type : string

new_row_name

Optional

Name of the new row that will contain the tag values. If empty, the tag key will be used

Type : string
Technical bricks to reuse or customize

Have you developed a brick?

Share it to accelerate projects for the entire community.