1. Learn
  2. /
  3. Courses
  4. /
  5. Working with Dates and Times in Python

Connected

Exercise

Finding ambiguous datetimes

At the end of lesson 2, we saw something anomalous in our bike trip duration data. Let's see if we can identify what the problem might be.

The data is loaded as onebike_datetimes, and tz has already been imported from dateutil.

Instructions

100 XP
  • Loop over the trips in onebike_datetimes:
    • Print any rides whose start is ambiguous.
    • Print any rides whose end is ambiguous.