nicopxm.me

The Lamar Catalog: Sonic & Partnership Analytics

2026

An end-to-end data pipeline, clustering model, and interactive Tableau dashboard analyzing 15 years of Kendrick Lamar’s discography.

The Challenge

Catalog and partnership decisions in the music industry are historically intuition-driven. Without a structured analytical framework, predicting which track characteristics actually drive streaming performance—or whether strategic collaborations mathematically outperform solo releases—is entirely guesswork. I wanted to replace that guesswork with hard data, using Kendrick Lamar’s complete 15-year discography as the analytical subject.

The Solution

I engineered a unified Spotify API extraction pipeline to pull 15 years of raw catalog data. From there, I applied K-Means clustering to map out the distinct sonic fingerprints of the music, and trained a Random Forest model to predict catalog popularity based on those underlying audio features.

Dashboard Preview

Ultimately, I transformed these complex machine learning outputs into two interactive, executive-ready Tableau dashboards. This bridged the gap between the raw algorithmic data and a seamless, dark-themed visual experience, turning 293 tracks and 205 unique collaborations into highly digestible insights.

Key Technical Implementations:

Kendrick Lamar Discography Dashboard

Key Analytical Insights

1. Sonic Evolution is Measurable and Directional

Across 15 years, Kendrick’s catalog energy dropped 11.7 points while danceability rose 9.8 points. Valence (musical positivity) declined monotonically across all three defined career eras. Interestingly, his most commercially successful era is mathematically his most emotionally subdued.

Chart showing the decline in valence and energy while danceability increased and across Kendrick Lamar's career

2. Popularity is Structurally Determined

Audio features alone explain less than 15% of popularity variance. When structural features are added (release year, lead vs. feature role, album placement), the model explains 49% of the variance (RF Test R² 0.487), beating the mean baseline by 39%. Release year is the dominant predictor—the streaming algorithm rewards catalog recency, not sonic profile.

Top Collaborators

The Impact

This project demonstrates the ability to manage a full data lifecycle under shifting technical constraints. By standardizing chaotic audio metadata and publishing a 25-sheet optimized data source directly into Tableau Public, I transformed raw API JSON into an interactive, zero-jargon intelligence tool that any A&R executive or catalog manager could immediately use to drive partnership strategy.