🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Exercises.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.

Project 13: Job Posting Date Parser

Data Analyst

Builds on these lessons

Current Task

Objective

pd.to_datetime() converts a column of date strings into real datetime values, enabling date-based sorting and filtering.

Task: convert a posted column of date strings to datetime, then print the DataFrame and the column's new dtype.

index.py
import pandas as pd jobs = pd.DataFrame({'posted': ['2024/01/15', '2024/02/20']}) jobs['posted'] = pd.to_datetime(jobs['posted']) print(jobs) print(jobs['posted'].dtype)

* Hint: Correct characters turn green, incorrect ones turn red.

Live Preview
🖼️

Verify your code to see the preview