Spotify- Genres Network Analysis by Through Decades
In my last story, “Spotify — Genres Network Analysis”, I felt I had only begun to explore Spotify genres network. As a fan of certain music genres, I wondered what their role was throughout the decades in terms of popularity. I was especially curious about the popularity and the importance of pop and rock in the years of 1960–2020.
The Data
To answer my question, I needed to collect all the genres in Spotify. It was not possible to pull all Spotify genres simultaneously. I instead collected all 1256 Spotify official playlists with Spotify API. Every song on the playlist I labelled according to the decade it belongs to by the song's field "release_date". This gave me a table of songs for each decade. Further, I pulled out the genre for every track and finally I made a table of genres for each decade. (link to the python file)
I modelled each decade table as a social network, with each node representing a musical genre. The edge weight represents the number of artists that played both genres.
The networks that came out were:
60’s: 297 nodes with 4248 links.
70’s: 422 nodes with 6330 links.
80’s: 609 nodes with 8378 links.
90’s: 1114 nodes with 15900 links.
2000s: 1726 nodes with 25902 links.
2010s: 1909 nodes with 38912 links.
2020s: 1897 nodes with 31840 links.
Finally, I combined all the decades’ networks into one dynamic social network that allowed me to see the genres through a timeline.
Findings
For an analysis of the relative importance of a genre over decades, I used the measure of betweenness that gave me a relative score of the genre. Based on this score, I could tell whether the genre was largely important and popular.
According to this graph, the Rock reached its peak in the 1980s and then began to decline. Meanwhile, Pop has grown rapidly starting to gain its popularity around 1980s.
Conclusions
In the 1980’s, the peak of the betweenness graph correlates with the high rate of rock songs released in the following graph. On both graphs, the peaks appear in the late 1970’s and at the beginning of the 1980's.
Based on the data presented in “The date face” (shown below), the pop genre became popular in the 1980’s and soared to popularity in the start of the 2000’s. This information correlates with the betweenness graph, which demonstrate that pop became extremely popular and focal in the beginning of the 2000's.