Icon

05 Date and Time Manipulation - Solution

Solution to an exercise for date and time manipulation.

Perform data manipulation operations that are specific to date and time values.

CHECK YOUR ANSWERS:
1. The date format is yyyy/MM/dd
2. All life expectancy data were accessed in 2020


Exercise: Date&Time Manipulation1.1) Read the travel advisories data by executing the CSV Reader node below1.2) Convert the Accessed column in the travel advisory data from string to Date&time. What is thedate format in the string column? Notice that the data were accessed in October 2020.2.1) Read the life expectancy data by executing the Excel Reader node below2.2) Extract the year of the Accessed column in the life expectancy data into a separate column.Were all life expectancy data accessed in the same year? demographics.xlsx(life_expectancy)Accessed columnto Date&Timetravel_advidories.csvOnly year Excel Reader String to Date&Time CSV Reader Extract Date&TimeFields Exercise: Date&Time Manipulation1.1) Read the travel advisories data by executing the CSV Reader node below1.2) Convert the Accessed column in the travel advisory data from string to Date&time. What is thedate format in the string column? Notice that the data were accessed in October 2020.2.1) Read the life expectancy data by executing the Excel Reader node below2.2) Extract the year of the Accessed column in the life expectancy data into a separate column.Were all life expectancy data accessed in the same year? demographics.xlsx(life_expectancy)Accessed columnto Date&Timetravel_advidories.csvOnly year Excel Reader String to Date&Time CSV Reader Extract Date&TimeFields

Nodes

Extensions

Links