{ "metadata": { "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.6-final" }, "orig_nbformat": 2, "kernelspec": { "name": "python3", "display_name": "Python 3", "language": "python" } }, "nbformat": 4, "nbformat_minor": 2, "cells": [ { "source": [ "# Playlists\n", "\n", "Below are investigations into listening from a playlist context. The start includes data for individual playlists before comparing a group of playlists.\n", "\n", "## Individual Playlist Investigations\n", "\n", "Below prepares a frame for processing and gives some high-level stats." ], "cell_type": "markdown", "metadata": {} }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "10,999 scrobbles\n28 days spent listening since Nov. 2017\n35.41 minutes/day\n" ] }, { "output_type": "execute_result", "data": { "text/plain": [ " duration_ms mode loudness key tempo \\\n", "mean 223128.125193 0.631694 -6.733293 5.352487 118.354445 \n", "std 63610.972469 0.482367 2.482966 3.733147 31.002195 \n", "min 60867.000000 0.000000 -17.819000 0.000000 61.113000 \n", "25% 182741.000000 0.000000 -8.320000 1.000000 91.923000 \n", "50% 211200.000000 1.000000 -6.518000 6.000000 116.696000 \n", "75% 258827.000000 1.000000 -5.062000 8.000000 140.032000 \n", "max 774920.000000 1.000000 -0.140000 11.000000 207.982000 \n", "\n", " time_signature acousticness danceability energy instrumentalness \\\n", "mean 4.007455 0.179857 0.66556 0.709464 0.008645 \n", "std 0.255755 0.186482 0.15002 0.145923 0.056757 \n", "min 1.000000 0.000017 0.26100 0.252000 0.000000 \n", "25% 4.000000 0.035000 0.55200 0.598000 0.000000 \n", "50% 4.000000 0.120000 0.67400 0.720000 0.000000 \n", "75% 4.000000 0.254000 0.77500 0.821000 0.000051 \n", "max 5.000000 0.864000 0.97500 0.993000 0.847000 \n", "\n", " liveness speechiness valence \n", "mean 0.244309 0.274996 0.480991 \n", "std 0.172633 0.129368 0.223523 \n", "min 0.033300 0.032300 0.027200 \n", "25% 0.113000 0.181000 0.314000 \n", "50% 0.181000 0.282000 0.483000 \n", "75% 0.333000 0.361000 0.642000 \n", "max 0.979000 0.827000 0.962000 " ], "text/html": "
\n | duration_ms | \nmode | \nloudness | \nkey | \ntempo | \ntime_signature | \nacousticness | \ndanceability | \nenergy | \ninstrumentalness | \nliveness | \nspeechiness | \nvalence | \n
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
mean | \n223128.125193 | \n0.631694 | \n-6.733293 | \n5.352487 | \n118.354445 | \n4.007455 | \n0.179857 | \n0.66556 | \n0.709464 | \n0.008645 | \n0.244309 | \n0.274996 | \n0.480991 | \n
std | \n63610.972469 | \n0.482367 | \n2.482966 | \n3.733147 | \n31.002195 | \n0.255755 | \n0.186482 | \n0.15002 | \n0.145923 | \n0.056757 | \n0.172633 | \n0.129368 | \n0.223523 | \n
min | \n60867.000000 | \n0.000000 | \n-17.819000 | \n0.000000 | \n61.113000 | \n1.000000 | \n0.000017 | \n0.26100 | \n0.252000 | \n0.000000 | \n0.033300 | \n0.032300 | \n0.027200 | \n
25% | \n182741.000000 | \n0.000000 | \n-8.320000 | \n1.000000 | \n91.923000 | \n4.000000 | \n0.035000 | \n0.55200 | \n0.598000 | \n0.000000 | \n0.113000 | \n0.181000 | \n0.314000 | \n
50% | \n211200.000000 | \n1.000000 | \n-6.518000 | \n6.000000 | \n116.696000 | \n4.000000 | \n0.120000 | \n0.67400 | \n0.720000 | \n0.000000 | \n0.181000 | \n0.282000 | \n0.483000 | \n
75% | \n258827.000000 | \n1.000000 | \n-5.062000 | \n8.000000 | \n140.032000 | \n4.000000 | \n0.254000 | \n0.77500 | \n0.821000 | \n0.000051 | \n0.333000 | \n0.361000 | \n0.642000 | \n
max | \n774920.000000 | \n1.000000 | \n-0.140000 | \n11.000000 | \n207.982000 | \n5.000000 | \n0.864000 | \n0.97500 | \n0.993000 | \n0.847000 | \n0.979000 | \n0.827000 | \n0.962000 | \n