Icon

05 Date and Time and Databases

05 Date and Time and Databases - 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: Convert a string column to Date&Time 1. Read the travel advisories data by executing the provided CSV Reader node 2. Convert the Accessed column in the travel advisory data from string to Date&Time
  • Task 2: Extract year from timestamps 1. Read the life expectancy data by executing the provided Excel Reader node 2. Extract the year of accessing the data into a separate column
  • Task 3: Manipulate data in database 1. Execute the provided metanode. It writes the joined table containing demographics, travel advisory, and geo coordinates information into one SQLite database table. 2. Select the JoinedTable table in the database 3. Calculate the number of rows (countries) in the database table 4. Filter the table to countries where the overall life expectancy is greater than 80 years 5. Calculate the number of these countries in each travel risk category
  • travel_advidories.csv
  • Count of rows
  • Counts by risk levels
  • Filter rows where max LE > 80
  • demographics.xlsx (life_expectancy)
  • Only year
  • Accessed column to Date&Time
  • demographics.xlsx (population)
  • Inner join on country name
  • Convert change to percentage
  • Create Change column
  • Add Direction column based on +/- change
  • Demographics.sqlite
  • Replace : by -
  • Extract numeric risk level into a separate column
  • Manual manipulation
  • geo_coordinates.table

Nodes

Extensions

Links