CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Customer Analytics and A/B Testing in Python

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Provide the correct format for the date
date_data_one = pd.to_datetime(date_data_one, format=____)
print(date_data_one)
Modifier et exécuter le code