Practice: Plotting the Data
Explore techniques for converting string timestamps to DateTime objects and extracting date features like year, month, and weekday. Learn to visualize emergency call data by creating countplots with seaborn to analyze calls by month and reason. This lesson helps develop practical skills in data plotting and feature extraction using Python.
Task 1: Convert a string to a timestamp
We’ve already created two new columns from title. The timeStamp column tells us the year, month, day, hour, minute, and second of the timestamp. We can use these in many ways. The data type is a string for this column.
For this task, convert the values in the timeStamp column from strings to DateTime objects. Then, check the ...