pandas · Lesson 8.1 · Pro

Dates and the .dt accessor

Turn text into real dates, then pull out the day, month, weekday or hour.

In this lesson

  1. Text that looks like a date
  2. Parts of a date with .dt
  3. Group by month
  4. Filter a date range