This Streamlit app enables users to analyze Spotify streaming data interactively. Users can upload their datasets and explore various insights through visualizations and metrics.
-
Seasonal Popularity Analysis
- Visualize the total streams for each month from January to December.
-
Audience Preferences
- Explore the average audience preferences based on attributes like danceability, energy, and more.
-
Streaming Longevity
- Analyze the average longevity of tracks in weeks, grouped by genre and artist.
-
Chart Placement Impact
- Understand how a track's chart position affects its average streams.
-
Emerging Genres
- Identify emerging genres based on total streams.
-
Top Artists
- View the top 10 artists by total streams.
-
Genre Popularity
- Explore the popularity of genres using a pie chart of total streams.
- Python 3.8+
- Streamlit
- pandas
- seaborn
- matplotlib
- plotly
- openpyxl (for handling Excel files)
-
Clone this repository:
git clone <repository_url> cd spotify-data-analysis
-
Install the required packages:
pip install -r requirements.txt
-
Run the app:
streamlit run app.py
- Upload your Spotify dataset in Excel format (e.g.,
spotify.xlsx
). - The app will process and visualize the data, providing insights through:
- Bar charts
- Line plots
- Pie charts
- Scatter plots
- Interact with the visualizations and gain insights.
- The dataset should be in Excel format.
- Required columns:
date_release
: Release date of the track.Streams
: Total streams of the track.genre
: Genre of the track.artist_name
: Name of the artist.- Additional attributes for audience preferences (e.g.,
acousticness
,danceability
,energy
, etc.).