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
- Text that looks like a date
- Parts of a date with .dt
- Group by month
- Filter a date range
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.