Skip to content

Instantly share code, notes, and snippets.

@miafreidenburg
Created October 6, 2023 00:24
Show Gist options
  • Save miafreidenburg/d6e8b6662106adf0d6c3a30bd9bf619f to your computer and use it in GitHub Desktop.
Save miafreidenburg/d6e8b6662106adf0d6c3a30bd9bf619f to your computer and use it in GitHub Desktop.
Spotify: July Top 50 - Data Dictionary
Variable Type Definition
rank integer The rank of the track on Spotify's Top Songs playlist. Rank is from 1 to 50.
title_long string The full title of the track as present on Spotify.
title string The truncated version of the track title for the purposes of this project.
id string The Spotify track id associated with the song.
artists string A full list of the artists associated with the song per Spotify's metadata.
popularity integer A rank of the artist's popularity relative to other artists on Spotify. 0 to 100 scale.
explicit_tf boolean Whether or not the song is denoted as "Explicit" by Spotify.
danceability float How suitable the track is for dancing based on a combination of musical elements including tempo, rhythm stability, beat strength, and overall regularity. 0 to 1 scale.
energy float Representation of track intensity based on elements including dynamic range, perceived loudness, timbre, onset rate, and general entropy. 1 represents high energy. 0 to 1 scale.
key integer The key that the track is in. Integers map to pitches using standard Pitch Class notation. If no key is detected, value is -1. -1 to 11 scale.
loudness float Overall loudness of the track in decibels (dB). Typical scale is from -60 to 0.
mode integer Modality (major or minor) of the track. Major is represented by 1 and minor by 0.
speechiness float Detected presence of spoken words in the track. 1 represents higher perceived speechiness. 0 to 1 scale.
acousticness float Confidence measure of whether the track is acoustic. 1 represents high confidence. 0 to 1 scale.
instrumentalness float Prediction of whether a track contains vocals. Values above 0.5 represent instrumental tracks, but confidence is higher as the value approaches 1. 0 to 1 scale.
liveness float Detected presence of an audience in the recording. 1 represents increased probability that the track was performed live. 0 to 1 scale.
valence float Measure of the musical positiveness conveyed by the track. 1 represents high positivity (happy, cheerful, euphoric) versus low (sad, depressed, angry). 0 to 1 scale.
tempo float Overall estimated tempo of a track in beats per minute (BPM).
time_signature integer Estimated time signature of the track. Range is from 3 to 7, with each integer representing X/4. Example: 3 represents a 3/4 time signature.
duration_ms integer Duration of the track in milliseconds.
duration_s integer Duration of the track in seconds, rounded to the nearest whole second.
duration_m float Duration of the track in minutes, rounded to the first decimal place.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment