Icon

04 Numbers Strings and Rules

04 Numbers Strings and Rules
Annotations and comments
  • Exercise: Numbers, Strings, and Rules 1.1) Read the travel advisories data by executing the File Reader node below 1.2) Replace the colons in the Level column by hyphen, like this: "Level 1- Exercise normal precautions" 1.3) Extract the risk levels as numbers into a separate column. You can use, for example, the substr() function. 1.4) Complete the tasks above with the Column Expressions node 2.1) Read the population data by executing the Excel Reader node below 2.2) Create a new column "Change" by substracting the population values in 2018 from the population values in 2019 2.3) Convert the absolute population change values into percentages: divide them by the population values in 2018 and multiply the result by 100. 2.4) Create a categorical column with two values "increasing"/"decreasing" based on whether the change is positive or negative
  • demographics.xlsx (population)
  • travel_advidories.csv

Nodes

Extensions

Links