1. Learn
  2. /
  3. Courses
  4. /
  5. Preprocessing for Machine Learning in Python

Connected

Exercise

Features from dates

Another feature engineering task to perform is month and year extraction. Perform this task on the date column of the ufo dataset.

Instructions

100 XP
  • Print out the .head() of the date column.
  • Retrieve the month attribute of the date column.
  • Retrieve the year attribute of the date column.
  • Take a look at the .head() of the date, month, and year columns.