All projects

Python pipeline · in progress

My Spotify Listening History

A personal pipeline that turns my raw Spotify data export into a picture of my own listening habits.

300+day longest listening streak
  • Python
  • pandas
  • Tableau
Bar chart of longest Spotify listening streaks by start date
Longest listening streaks.

01Business problem

Spotify's data export is a pile of disconnected JSON files (streaming history, library, playlists, searches), not an analysis. The goal: understand how I discover music, how loyal I am to artists, and what a typical listening session looks like.

02Data

Source
My own Spotify account data export
Size
Five chunked streaming-history files plus podcast, library, playlist and search files
Limitations
One listener, so findings describe me, not Spotify users in general. Personal identifiers are excluded from anything published.

03Tools & methods

  • pandas JSON ingestion
  • Timestamp parsing
  • Streak and session detection
  • Tableau (planned)

04Cleaning & preparation

  1. 1.Loaded every raw JSON export into pandas.
  2. 2.Parsed timestamps and normalised track and artist fields.
  3. 3.Merged the chunked streaming-history files into one clean dataset.

05Findings so far

  • 300+ daysMy longest unbroken daily listening streak started on 4 July 2025 and ran for just over 300 days.

06Dashboard & visuals

Chart from the personal Spotify analysis notebook
Exploration in the notebook.
pandas code merging Spotify streaming history files
Merging the chunked exports.
GitHub case study

07Recommendations

  • Personal project, so the output is a habits dashboard rather than a business recommendation.

08What I'd do next

  • Session detection: group streams into listening sessions.
  • Artist loyalty score: how concentrated listening is around a few artists.
  • Discovery rate: new vs. repeat artists over time, then publish a Tableau dashboard.

09Files & links