Skip to content

Praveenkanth10/Spotify-Data-Analysis-Using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Spotify-Data-Analysis-Using-Python

📌 Project Overview

This project aims to analyze Spotify's music dataset to uncover insights into popular songs, genres, trends, and audio features. Using Python and data visualization techniques, we explore how various factors influence song popularity and listener preferences.

📂 Dataset

The dataset used in this project includes information about songs such as:

  • Track Name
  • Artist
  • Album
  • Release Year
  • Duration (ms)
  • Danceability
  • Energy
  • Loudness
  • Tempo
  • Valence (Musical Positivity)
  • Popularity Score

You can find the dataset https://www.kaggle.com/datasets/lehaknarnauli/spotify-datasets

🛠 Tools & Libraries

  • Python
  • Pandas – Data manipulation and analysis
  • Matplotlib & Seaborn – Data visualization
  • NumPy – Numerical computations
  • Scikit-learn – Machine learning for trend analysis
  • Spotify API (Spotipy) – Fetch real-time data

🔍 Key Features

Data Cleaning & Preprocessing – Handling missing values, formatting data
Exploratory Data Analysis (EDA) – Visualizing trends in song attributes
Feature Correlation – Identifying relationships between attributes (e.g., danceability vs. popularity)
Trend Analysis – Examining how song characteristics evolved over time
Genre Popularity Insights – Which genres perform best over time
Machine Learning Prediction – Predicting song popularity based on features

🚀 Installation

1️⃣ Clone the repository:

git clone https://github.com/yourusername/Spotify-Data-Analysis-Using-Python.git
cd Spotify-Data-Analysis-Using-Python

2️⃣ Install dependencies:

pip install pandas numpy matplotlib seaborn scikit-learn spotipy

3️⃣ Run the analysis script:

python analysis.py

📊 Results & Insights

  • Songs with high energy and danceability tend to have higher popularity scores.
  • Tempo and valence (happiness factor) have a moderate impact on song success.
  • Over the years, loudness and tempo have increased in popular songs.
  • Certain genres dominate in different decades (e.g., Hip-Hop in the 2000s).

📜 Conclusion

This analysis provides valuable insights into what makes a song popular on Spotify. The findings can help artists, producers, and playlist curators optimize their music for a wider audience.

🤝 Contributing

Feel free to fork this repository, make improvements, and submit a pull request!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published