Longread translated automatically
Original size 2280x3200

Analysis of Music Genre Popularity on Spotify

PROTECT STATUS: not protected

Introduction

For this analysis, I selected a dataset from Kaggle containing 114,000 records of music tracks from the Spotify streaming service, spanning 125 different genres. The data is provided in CSV format and includes information on track popularity, genres, and audio characteristics.

The choice of this dataset stems from the fact that music is a part of daily life for most people, and streaming services directly influence which genres and tracks become popular. Spotify is one of the largest music services, so its data allows for a clear look at how popularity is distributed among genres and which styles dominate.

Goal: To use visual data analysis to examine the differences between music genres and understand how they correlate with track popularity on the platform.

Original size 1446x351

ChatGPT generated the color palette for the visualizations based on Spotify’s aesthetic.

Materials Used

During this project, I utilized the following tools:

— Pandas — data loading, filtering, and aggregation — Matplotlib — chart generation and styling — Montserrat font — visual design of the graphics

Visualization

For data visualization, I utilized several types of charts because each one allows for a different perspective on the characteristics of the music tracks.

To analyze the distribution of values, a histogram was employed, which helps understand the frequency of specific parameter values (such as energy or danceability).

A bar chart was used to compare average values across genres, providing a clear way to contrast the musical characteristics of different styles.

A scatter plot was chosen to analyze the relationship between parameters, helping to visualize dependencies, for instance, between track popularity and its energy level.

A box plot was also used to compare the spread of values and identify distinctions between genres.

Original size 1796x1502
Original size 1574x774

The graph displays the average popularity of tracks across the ten most represented genres. It is evident that the genres differ not only in the number of tracks but also in their average level of popularity. For example, pop-film and K-pop show higher average values, while emo and pop register lower ones. This indicates that a genre’s high representation in the dataset does not always correlate with higher track popularity within it.

Original size 1796x1502
Original size 1158x762

The second chart illustrates the distribution of music track popularity on the platform. It shows that most compositions have average popularity scores, whereas truly popular tracks appear significantly less often. This suggests that success on streaming services is unevenly distributed: the majority of music remains in the middle segment, while the top-tier popular tracks constitute only a small fraction of the entire catalog.

Original size 1796x1502
Original size 993x762

This chart illustrates the correlation between track energy levels and their popularity. It is evident that the most popular tracks are frequently found in the zone of medium to high energy, whereas compositions with low energy rarely achieve high popularity metrics. However, the relationship is not absolute: there are tracks that are energetic but unpopular, and others that are less energetic yet still find their audience. This suggests that while energy influences popularity, it is not the sole determining factor in a track’s success.

Original size 1796x1502
Original size 974x722

To analyze the distribution of popularity, five genres were selected—those most frequently found in the dataset and containing a sufficient number of tracks for comparison. This approach prevents result distortion that could arise from analyzing genres with a very small sample size. The chart illustrates that even within a single genre, track popularity can vary significantly: all genres show a wide range of values, from lesser-known tracks to highly popular ones. Furthermore, some genres exhibit higher average popularity scores, while others are dominated by tracks with medium or low values.

Thus, genre influences the level of popularity, but it does not define it entirely—there is considerable diversity in track demand within each genre.

Original size 1796x1506
Original size 1804x1094

This graph displays the average values of key musical characteristics for the selected genres. This approach allows for a comparison of genres based on their overall «sound» and character, rather than individual tracks. The visualization shows that genres differ in terms of energy level, danceability, and mood. For instance, some genres are, on average, more energetic and dynamic, while others are calmer and more measured.

This confirms that genres are shaped not only culturally but also through specific musical parameters that can be clearly compared using data.

Conclusion

Through the analysis of Spotify data, we were able to examine music genres from multiple perspectives. Initially, we studied the overall distribution of track popularity, which revealed that most compositions have average popularity scores, and truly popular tracks are less common.

Next, a comparison of genres showed that the level of popularity varies significantly depending on the musical direction. Some genres consistently demonstrate higher values, while others remain niche.

Analyzing the correlation between energy level and popularity showed no direct relationship between these indicators: high energy by itself does not guarantee a track’s success. This underscores that popularity is shaped by several factors.

Comparing the popularity distributions for the selected genres allowed us to see differences not only in the average scores but also in the nature of the data spread.

Finally, an analysis of the average audio characteristics by genre demonstrated that the genres truly differ in their «sonic profile.»

Overall, the visual analysis confirmed that music genres on Spotify exhibit consistent differences that can be identified and interpreted using graphs without resorting to complex models.

Generative Model Usage Description

During the project, the generative model ChatGPT 5.2 was utilized. It helped select a color palette for visualizations, configured the font for chart design in Google Colab, and assisted in debugging code and correctly setting up visualizations.

The generative model served as a supporting tool for technical assistance and visual enhancement; however, data analysis, chart selection, and result interpretation were performed independently.

Analysis of Music Genre Popularity on Spotify
Project created at 16.01.2026
adcr.dafes
The Art Directors Club of Russia sets the benchmark for creative excellence in design and advertising, serving as a central hub where industry professionals connect. Since 2004, the Club has hosted the ADCR Awards—a premier national competition celebrating creativity, design, and advertising. The core mission of the awards is to champion agencies and independent creators making their mark in the local market. By presenting this honor on behalf of the professional community, the Club reaffirms its endur... Show more
adcr advertising
adcr design
adcr students and young creators