1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Preprocessing for Machine Learning in Python

Connected

अभ्यास

Extracting datetime components

There are several columns in the volunteer dataset comprised of datetimes. Let's take a look at the start_date_date column and extract just the month to use as a feature for modeling.

निर्देश

100 XP
  • Convert the start_date_date column into a pandas datetime column and store it in a new column called start_date_converted.
  • Retrieve the month component of start_date_converted and store it in a new column called start_date_month.
  • Print the .head() of just the start_date_converted and start_date_month columns.