Icon

02 Data Cleaning

02 Data Cleaning - Exercise

This workflow shows a hands-on exercise in the L1-DW KNIME Analytics Platform for Data Wranglers: Basics course

Annotations and comments
  • Task 1: Filter rows 1. Read the population, life expectancy, and travel advisory data by executing the provided reader nodes 2. Filter the population data to countries in Europe 3. Filter the life expectancy data to countries/regions where the overall life expectancy is at least 80 years 4. Filter the travel advisory data to the safest countries (Level 1: Exercise normal precautions)
  • Task 3: Manipulate strings 1. Read the travel advisories data by executing the provided CSV Reader node 2. Replace the colons in the Level column by hyphen like this: "Level 1- Exercise normal precautions" 3. Extract the risk levels as numbers into a separate column. You can use, for example, the substr() function. 4. Complete the tasks above with the Column Expressions node
  • Task 2: Filter columns 1. Read the life expectancy data from the SQLite database by executing the provided workflow 2. Exclude the Rank column - Manually - By including only string and double type columns
  • Task 4: Evaluate mathematical expressions and apply rules 1. Read the population data by executing the provided Excel Reader node 2. Create a new column "Change" by subtracting the population values in 2018 from the population values in 2019 3. Convert the absolute population change values into percentages: Divide them by the population values in 2018. Multiply the result by 100. 4. Create a categorical column with two values "increasing"/"decreasing" based on whether the change is positive or negative
  • travel_advidories.csv
  • tasks complete
  • Remove Rank manually
  • Remove Rank by column type
  • LifeExpectancy
  • demographics.xlsx (population)
  • demographics.xlsx (life_expectancy)
  • Convert change to percentage
  • Change
  • Filter by 80y
  • Filtered by Europe
  • Filter by lvl1 safe
  • Add Direction column based on +/- change
  • Extract risk
  • Replace : to -

Nodes

Extensions

Links