# A tibble: 1 × 1
total_time_hr
<dbl>
1 38.5
Taylor Swift and Billboard Comparison
Final Project
Intro to the Project
With the popularity of the Eras Tour, I wanted to take a deeper look into Taylor Swift’s music and look for some trends in her music over the years. Additionally, I was wondering how Taylor’s popularity was reflected on the Billboard Top 100.
Below are the packages I will use to manipulate the data throughout this document.
Taylor Swift
Taylor Swift is pop artist who has 14 albums. She recent ended her Era’s Tour which honored her music from all of her albums. I wanted to take a deeper look into Taylor Swift’s discography to see how she might have changed over time.
The Spotify API wasused to gather data of every Taylor Swift song. Below is a data dictionary of the Spotify variables for each song.
Data Dictionary
Variable | Description |
---|---|
track_id | Unique track identifier |
track_name | Name of track or song |
album_id | Unique album identifier |
album_name | Name of the album |
duration_ms | Time length in milliseconds |
time_signature | Indicates beats per measure |
danceability | Measure from 0.0 to 1.0 and represents likelihood to dance based on musical components |
energy | Measure from 0.0 to 1.0 and represents a perceptual measure of intensity and activity |
loudness | Measure of how loud a song is by adjusting the Loudness Units Relative to Full Scale down to -14 |
explicit | Use of explicit words (TRUE/FALSE) |
key_mode | Combination of key_name and mode_name |
popularity | Measure of song popularity 0 to 100 with larger numbers being more popular |
artist_id | Unique artist identifier |
artist_name | Name of the artsit |
Trends and Analysis
How long is the discography?
Knowing how many albums Taylor has made, I was wondering how long it would take to listen to her whole discography.
Based on my calculations, it would take 38.5 hours to listen to every single song with Taylor as the main artist. This means if you listened to every song with no break, it would take more than 1 and half days to listen to everything.
Energy per Version
Taylor famously re-recorded some her original albums due to issues with her original record lable. This cuased me to think if the energy for the original albums is different than the re-recorded albums.
The bars are grouped and colored by Original and Taylor’s Version. We can see that the original albums did have higher energy than Taylor’s Version. This could be attributed to Taylor’s older age and small tweaks when recording the newer versions.
Favorite Musical Key
Many artists tend to use the same musical key in order to show case their singing ability. I will find Taylor’s most used musical key to see if there are certain notes Taylor prefers singing.
This chart indicates that Taylor definitely has a favorite key to write in. C major has over 100 tracks while the next highest key use is G major with around 100 tracks. The C major and G major keys must be very comfortable to Taylor to sing, as well as a comfortable key for her fans to sing along.
Most Danceable Album
All of Taylor’s albums have a variety of upbeat or more sad songs. When thinking about the popular music on the radio, I would think songs with a higher danceability would appear more. So I will create a chart comparing the danceability of all her albums.
For this analysis, I will only use a list of Taylor’s 11 main albums and only use one version of said albums.
Based on the boxplots, we can see that the Lover album had the highest danceability. Folklore has one of the lowest danceabilities. This is something to keep in mind when looking at which albums appear on the Billboard Top 100.
Most Popular Songs
Now that we have looked into Taylor’s albums, I want to find her most popular songs on Spotify. Since Spotify measures popularity over time, I would expect to see a mix of songs from her her albums that have not been re-recorded becasue the listens will not be split between the two. Also, I would expect to see songs from Lover since it had the highest danceability.
# A tibble: 10 × 5
track_id...1 track_name popularity danceability energy
<chr> <chr> <dbl> <dbl> <dbl>
1 1BxfuPKGuaTgP7aM0Bbdwr Cruel Summer 90 0.552 0.702
2 2OzhQlSqBEmt7hmkYxfT6m Fortnight (feat. Post … 86 0.504 0.386
3 3hUxzQpSfdDqwM3ZTFQY0K august 85 0.532 0.623
4 1dGr1c8CrMLDpV6mPbImSI Lover 84 0.359 0.543
5 4q5YezDOIPcoLr8R81x9qy I Can Do It With a Bro… 84 0.701 0.751
6 1R0a2iXumgCiFb7HEZ7gUE Don’t Blame Me 83 0.615 0.534
7 4R2kfaDFhslZEMJqAFNpdd cardigan 83 0.613 0.581
8 0V3wPSX9ygBnCm8psDIegu Anti-Hero 82 0.633 0.648
9 1MgV7FIyNxIG7WzMRJV5HC my tears ricochet 79 0.469 0.263
10 1P17dC1amhFzptugyAO7Il Look What You Made Me … 79 0.766 0.709
As suspected, most of the songs come from non re-recorded albums. This list contains songs from both Lover and Folklore which indicates that danceability is not the only predictor of popularity.
The Billboard Top 100
The Billboard Top 100 is a list of the top 100 most popular songs on the radio. I want to see how Taylor Swift appears on this chart for the past year.
In order to scrape my data, I used the Billboard Top 100 website (https://www.billboard.com/charts/hot-100/) and my user agent was my personal identifier. I scraped the songs, artists, position on the chart, position on the chart in the previous week, weeks on chart, the peak position on the chart, and the week of the chart.
Data Preparation
After scraping the data, I want to be able to use the billboard_week as an actual data with the lubridate package. This means I have to clean the data by removing the “week of” string and covert the rest of the string into a date.
Trends and Analysis
How many Taylor Swift songs occurred on the Top 100?
# A tibble: 33 × 1
billboard_song
<chr>
1 I Can Do It With A Broken Heart
2 Down Bad
3 Who's Afraid Of Little Old Me?
4 Guilty As Sin?
5 But Daddy I Love Him
6 My Boy Only Breaks His Favorite Toys
7 So Long, London
8 The Smallest Man Who Ever Lived
9 The Tortured Poets Department
10 loml
# ℹ 23 more rows
Taylor had 33 different songs on the Billboard Top 100 in 2024. Upon reviewing this list, majority of the songs are from Taylor’s most recent album, Tortured Poets Department. This is expected since the album was released earlier this year.
What 10 songs have been on the chart the longest?
In order to find Taylor’s most popular songs on the radio, I will filter to create a list of the 10 songs that have been on the Billboard Top 100 the longest. By being on the Top 100 longer, it would imply the song is more popular and liked by people who listen to the radio.
# A tibble: 10 × 2
billboard_song billboard_weeks_on
<chr> <dbl>
1 Cruel Summer 54
2 I Can Do It With A Broken Heart 31
3 Is It Over Now? (Taylor's Version) [From The Vault] 22
4 Down Bad 12
5 Who's Afraid Of Little Old Me? 11
6 Guilty As Sin? 10
7 But Daddy I Love Him 8
8 My Boy Only Breaks His Favorite Toys 8
9 So Long, London 8
10 Now That We Don't Talk (Taylor's Version) [From The Vault] 8
Again, the Tortured Poets Department album has more occurrences because of its recent release. However, “Cruel Summer” from the Lover album has been on the chart the longest with 54 weeks, which shows older Taylor songs are still popular. Below is the trend of “Cruel Summer” during 2024.
Cruel Summer
Cruel Summer appeared at the top of both popularity rankings for Billboard and Spotify. Therefore I want to track its position on the Billboard Chart.
We can see that its popularity began to fall throughout 2024, and has not on the Billboard chart since May. However, being on the chart for 54 weeks is still impressive and could be seen as the most popular Taylor song.
Now that we have narrowed down the Billboard Songs to 10 most popular Taylor Swift songs, we can conduct so comparisons between the other top 10.
Comparison of Top 10 Songs
From the Billboard analysis, I have found the top 10 Taylor Swift songs the radio listens to. Something to keep in mind is that the demographic of people who listen to the radio can differ from those who pay for and use a Spotify Premium account exclusively. Therefore, I will compare this to the top 10 songs Taylor has per Spotify. AThis comparison will show which of her songs is currently the most popular per each of these demographics.
Data Preparation
First I will assign the track id from the Taylor Data Set to the matching songs in the Billboard Top 100 Data Set.
Then I will create variables for numeric ranking and origin of Top 10 position.
Finally I will join the tables so that it will be easier to compare.
Trends and Analysis
Popularity of Billboard
Now that we have gathered the Spotify data for the Billboard songs, I want to know where these songs fall in the Spotify popularity rankings
# A tibble: 10 × 3
track_name position popularity
<chr> <dbl> <dbl>
1 Cruel Summer 1 90
2 I Can Do It With a Broken Heart 2 76
3 Guilty as Sin? 6 76
4 Is It Over Now? (Taylor's Version) (From The Vault) 3 75
5 Down Bad 4 75
6 Who’s Afraid of Little Old Me? 5 75
7 My Boy Only Breaks His Favorite Toys 8 75
8 Now That We Don't Talk (Taylor's Version) (From The Vaul… 10 75
9 But Daddy I Love Him 7 74
10 So Long, London 9 74
As we know, Cruel Summer appeared at the top of popularity for both lists. We can also see that the rest of the songs were still fairly popular songs on the Spotify data. This discrepency could originate from the fact that one of Spotify key measures for popularity is total listens ever, not just this year like the Billboard data.
Based on these results, we can see that Billboard does have a slightly higher average danceability, as expected since more upbeat songs are on the radio. Suprisingly, Spotify has a much higher energy rating than Billboard. I expected the higher energy, or Spotify measure of intensity, songs to be more popular on the radio than Spotify.
Overall, there are no true predictors of a song or albums popularity. Despite this fact, Taylor Swift has produced many popular songs over the years with a variety of music keys, danceability, and energy. Her ability to create music with a variety of features could be an attribute of her success and popularity.