Get startedGet started for free

Parsing dates

In this exercise you will practice parsing dates in Python. While often data pulled from a database will be correctly formatted, other data sources can be less nice. Knowing how to properly parse dates is crucial to get the data in a workable format. For reference refer to https://strftime.org/ throughout this exercise to see date format to use.

This exercise is part of the course

Customer Analytics and A/B Testing in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Provide the correct format for the date
date_data_one = pd.to_datetime(date_data_one, format=____)
print(date_data_one)
Edit and Run Code