Practicing
Before starting this practice, we should understand that this exercise is good for us to know the possibilities of working with datetime objects. However, there are some functions and libraries that we still did not fully cover, so you might see new functions in this section. Don’t worry. We will cover all of this in this book, and you can always come back to this chapter later to review the more challenging code.
Let’s practice the use of datetime variables using a dataset from FiveThirtyEight, about classic rock. The dataset has observations of songs played in many radio stations in one week of June 2014, which we can use to gain some insights about that period in time.
The variables in this dataset are as follows:
SONG RAW
: Song title
Song Clean
: Song title after cleaning up the name, removing not unmeaningful words such as live
ARTIST RAW
: Artist name
ARTIST CLEAN
: Artist name after removal of nonmeaningful elements and correcting...