Icon

03 Bringing Things Together - Solution

Bringing Things Together - Exercise (Solution)

This workflow shows a solution to a hands-on exercise in the L1-DS Introduction to KNIME Analytics Platform for Data Scientists - Basics course

Annotations and comments
  • Task 1: GroupBy 1. Read the adult.csv file by executing the CSV Reader node 2. Calculate the total number of rows and average age by gender 3. Calculate the modes of all string columns separately for each native country 4. Calculate - the number of missing values in the occupation column - the number of non-missing rows in the occupation column - the number of rows in the occupation column - the number of rows in the marital-status column
  • Task 3: Joiner 1. Read the adult_education.table and adult_income.xlsx files by executing the reader nodes 2. Join the education data with the other demographics data (adult.csv). Use inner join on the ID column. 3. Join the income data with the joined table. Apply the same settings as before.
  • Task 2: Pivoting 1. Read the adult_binned.csv file by executing the CSV Reader node 2. Calculate the number of people in groups according to their work class and age bin 3. Calculate the mode of education level in groups according to their work class and age bin
  • Task 4: Concatenate 1. Execute the Table Reader node. The joined table from the previous task contains the records for all countries except Scotland. The records for Scotland are stored in a separate adult_scotland.table file. 2. Concatenate the two tables into one
  • Read adult.csv
  • Read adult_binned.csv
  • Read data adult_income.xlsx
  • The total number of rows and average age by gender
  • The number of missing and non-missing values in occupation and total rows in occupation and in marital-status
  • The modes of string columns by native country
  • Create the table with age-bin as a group and workclass as a pivot and find the most widespread level of education in the private workclass
  • Create the table with age-bin as a group and workclass as a pivot and calculate the number of people in groups
  • adult_scotland.table
  • Read adult_education.table

Nodes

Extensions

Links