Skip to content

msaini888/my-music-analysis-main

Repository files navigation

My Spotify Data Analysis: Overview

In this project I have gathered my listening history from my spotify account. Then performed data analysis on it to get a better understanding of my listening history, music taste, and choice of artist.

Moreover, performed a cluster analysis on the dataset.

Codes and Resources used

  • Editor used: VS code
  • Python version: 3.11.3
  • Packages used: pandas, matplotlib, seaborn, calplot, sklearn, spotipy, requests
  • Data scraper 1: Blog and GitHub
  • Data scraper 2: Blog and GitHub

About the Dataset

The data is scraped from Spotify using it's API.

Data Cleaning

The data is then preprocessed and transformed as required to avoid any abberations that might later skew the results.

The data cleaning steps that are performed are:

  • Dropping duplicate columns
  • Dropping duplicate rows
  • Null check
  • Data Format check
  • Value check

Exploratory Data Analysis

A few of the visualizaton highlights are: streaming_history

song_modes_distribution

Cluster Analysis

Various cluster analysis are performed to group and define the cluster profiles of the songs.

Different cluster algorithms performed are:

  • KMeans clustering
  • Agglomerative clustering
  • Affinity Propagation Clustering
  • BIRCH
  • DBSCAN
  • Mini-Batch Kmeans clustering_kmeans

Blog Links

If you prefer an in-depth explanation for the code in this repository, you can go through the following articles:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published