Icon

03_​JoinConcatenate_​Examples

Join and Concatenation Examples

On adult.csv data set:
1. calculate the average age and number of rows for the 4 groups (sex, income) and join the corresponding 2 values to each row in the group
2. extract people with age between 20 and 40 and working in a work group starting with "S" and people with age between 40 and 60 and working in the Private sector (workclass starts with "P"). Put both groups in a single data table.

Extract people with:age in (20,40) and working as self* +age in (40,60) and working in Private Add group average age and row count to each row in (sex,income) groups This workflow is an example of using the Joiner and the Concatenate nodes on the same dataset. For more information see the workflow metadata. Find it here: View -> Description Readingadult.csv20 < age < 40Workclass = S*count total number of rows and calculate avg agein the 4 groups definedby sex and incomejoin avg and count on sex and incomeWorkclass = P*40 < age < 60 File Reader Row Filter Row Filter GroupBy Joiner Concatenate Row Filter Row Filter Extract people with:age in (20,40) and working as self* +age in (40,60) and working in Private Add group average age and row count to each row in (sex,income) groups This workflow is an example of using the Joiner and the Concatenate nodes on the same dataset. For more information see the workflow metadata. Find it here: View -> Description Readingadult.csv20 < age < 40Workclass = S*count total number of rows and calculate avg agein the 4 groups definedby sex and incomejoin avg and count on sex and incomeWorkclass = P*40 < age < 60 File Reader Row Filter Row Filter GroupBy Joiner Concatenate Row Filter Row Filter

Nodes

Extensions

Links