The below is part four of our project.
We are interested in how pandemic changes people’s listening habits. Therefore, we scraped the streaming record of 2019 and 2020 from Spotify Web API, then used them to compare the differences of listening habits such as genres between before Covid-19 (2019) and Covid-19 period (2020). Understanding the trend will also help song producers, writers etc. to have a direction to produce songs that meet people’s tastes. Accordingly, they could make money from this Covid dark time, or even post-Covid because things won’t go back to normal at least within a few years.
Data Preprocessing:
Spotify provides weekly streaming record, we downloaded all the weekly streaming record for 2019 and 2020. We then merged all the records together. Only four missing values from one dataset, we just removed these missing values, it doesn't hurt our analysis. We then did EDA for each dataset.

COVID-19 has changed our behaviors of all kinds since March 2020. This includes people’s streaming habits and music tastes. The first change was the stream frequency. The stream frequency in 2020 was nearly three times more than the stream frequency in 2019. In other words, people listened to music more. The second change was the music genres. Overall, Pop,Hip-Hop,R&B/Soul,Altertative/Indie were the most popular streamed genres both in 2019 and 2020. However, the genre of Dance/Electronic jumped to no.4 from no.10 in 2020. In addition, the genre of Reggaeton also jumped to no.5 from no.22 in 2020. The genres of Dance-pop disco-funk, New wave/post-punk and NU-disco were new to show up to the most popular list and Jazz music was gone from the list in 2020. It is not hard to understand why these dance type genres were popular during social distancing. The electronic dance type music is frequently upbeat, lyricless nature, thriving club scenes. Public events and clubs were closed, and this relaxational & experimental music helped people to release themselves in the dark times, at least, at home. However, this doesn’t show any conclusive COVID-19-related behavior. Correlation but not causation. But we still can recommend that music producers produce more relaxational & experimental related music, at least within 2021 since pandemic is still ongoing.


To be continued-- Recommendation System
The full codes can be found at Github.
https://github.com/Gracetam68/SpotifyMusic-/blob/main/change_of_%20habit.py
Comments