Icon

04 Data Transformation - Solution

04 Data Transformation - Solution
Annotations and comments
  • Exercise: Data Transformation 1) Read the adult.csv file by executing the File Reader node 2) Create a new column "work-status" with the value "full-time" if the weekly working hours are >=40 and "part-time" otherwise 3) Replace the hyphen in "United-States" by a space character in the "native-country" column 4) Create a new column "year-of-birth" by substracting the age number from 1994, which is the year when the data were collected 5) OPTIONAL: Replicate the tasks 3 & 4 with the Column Expressions node 6) Take a look at the first row in the data table (ID 177) after completing the data transformation operations. What is the work status, native country, and year of birth of this person?
  • Complete the same tasks as above
  • Read adult.csv
  • year-of-birth column
  • Create work status column
  • Replace "-" by " " in the native country column

Nodes

Extensions

Links