{ "cells": [ { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "(import pylast)\n", "(import pandas)\n", "(import matplotlib)\n", "(import seaborn)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "%matplotlib notebook" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": true }, "outputs": [], "source": [ "(def net (pylast.LastFMNetwork :api-key LAST_API_KEY :api-secret LAST_API_SEC))" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "pylast.Artist('System of a Down', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c'))" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "(net.get-artist \"System of a Down\")" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "[TopItem(item=pylast.Track('Dua Lipa', 'New Rules', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=1695797), TopItem(item=pylast.Track('Post Malone', 'Rockstar', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=524904), TopItem(item=pylast.Track('Camila Cabello', 'Havana', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=1400101), TopItem(item=pylast.Track('Portugal. The Man', 'Feel It Still', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=920211), TopItem(item=pylast.Track('Taylor Swift', 'Look What You Made Me Do', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=2253718), TopItem(item=pylast.Track('Sam Smith', 'Too Good at Goodbyes', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=470070), TopItem(item=pylast.Track('Kendrick Lamar', 'HUMBLE.', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=2197321), TopItem(item=pylast.Track('Ed Sheeran', 'Shape of You', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=3222078), TopItem(item=pylast.Track('Imagine Dragons', 'Thunder', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=1192967), TopItem(item=pylast.Track('Maroon 5', 'What Lovers Do (feat. SZA)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=331046), TopItem(item=pylast.Track('P!nk', 'What About Us', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=518046), TopItem(item=pylast.Track('Taylor Swift', 'Gorgeous', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=307359), TopItem(item=pylast.Track('Demi Lovato', 'Sorry Not Sorry', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=1288395), TopItem(item=pylast.Track('Zayn', 'Dusk Till Dawn - Radio Edit', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=399790), TopItem(item=pylast.Track('Ed Sheeran', 'Perfect', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=655180), TopItem(item=pylast.Track('Marshmello', 'Silence', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=325737), TopItem(item=pylast.Track('The Killers', 'Mr. Brightside', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=16666898), TopItem(item=pylast.Track('Logic', '1-800-273-8255', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=537244), TopItem(item=pylast.Track('Selena Gomez', 'Wolves', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=213594), TopItem(item=pylast.Track('Nirvana', 'Smells Like Teen Spirit', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=14984085), TopItem(item=pylast.Track('St. Vincent', 'Pills', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=112373), TopItem(item=pylast.Track('Arctic Monkeys', 'Do I Wanna Know?', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=10818137), TopItem(item=pylast.Track('Kendrick Lamar', 'DNA.', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=1560401), TopItem(item=pylast.Track('St. Vincent', 'Los Ageless', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=188446), TopItem(item=pylast.Track('Charlie Puth', 'How Long', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=148733), TopItem(item=pylast.Track('The White Stripes', 'Seven Nation Army', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=10920743), TopItem(item=pylast.Track('Calvin Harris', 'Feels', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=821909), TopItem(item=pylast.Track('St. Vincent', 'Hang on Me', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=91164), TopItem(item=pylast.Track('Tame Impala', 'The Less I Know the Better', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=2903625), TopItem(item=pylast.Track('Lorde', 'Green Light', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=2113072), TopItem(item=pylast.Track('Imagine Dragons', 'Believer', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=1380938), TopItem(item=pylast.Track('Childish Gambino', 'Redbone', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=1352438), TopItem(item=pylast.Track('St. Vincent', 'New York', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=239030), TopItem(item=pylast.Track('Charlie Puth', 'Attention', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=1014281), TopItem(item=pylast.Track('LIL UZI VERT', 'XO TOUR Llif3', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=965826), TopItem(item=pylast.Track('Cardi B', 'Bodak Yellow', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=439726), TopItem(item=pylast.Track('Toto', 'Africa', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=4866628), TopItem(item=pylast.Track('Taylor Swift', '...Ready For It?', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=654779), TopItem(item=pylast.Track('Radiohead', 'Creep', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=13124737), TopItem(item=pylast.Track('Linkin Park', 'In the End', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=11405942), TopItem(item=pylast.Track('St. Vincent', 'Masseduction', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=96554), TopItem(item=pylast.Track('Macklemore', 'Glorious (feat. Skylar Grey)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=349870), TopItem(item=pylast.Track('Gorillaz', 'Feel Good Inc.', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=11094816), TopItem(item=pylast.Track('Kygo', 'Stargazing', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=120143), TopItem(item=pylast.Track('Lil Pump', 'Gucci Gang', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=128153), TopItem(item=pylast.Track('Avicii', 'Lonely Together (feat. Rita Ora)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=271511), TopItem(item=pylast.Track('Khalid', 'Young Dumb & Broke', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=342799), TopItem(item=pylast.Track('Sam Smith', 'Pray', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=111755), TopItem(item=pylast.Track('French Montana', 'unforgettable', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=725259), TopItem(item=pylast.Track('Axwell /\\\\ Ingrosso', 'More Than You Know', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'AbPYn05iJt_lMNtkgXuG2MFnoRQs_wNb', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=494410)]" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "(net.get-top-tracks)" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [], "source": [ "(setv tracks (.get-top-tracks (net.get-artist \"The XX\")))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "128000" ] }, "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ "(.get_duration (first (first tracks)))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(setv durs (list (map (fn [t] (.get_duration (first t))) tracks)))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(setv names (list (map (fn [t] (.get_title (first t))) tracks)))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(setv p_durs (pandas.DataFrame {\"names\" names \"duration\" durs}))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(setv tracks-last (pandas.DataFrame {\"names\" names \"duration\" (/ (get p_durs \"duration\") 60000)}))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(-> p_durs .plot matplotlib.pyplot.show)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(seaborn.set :style \"whitegrid\")\n", "(seaborn.set_context \"notebook\" :font_scale 1.5 :rc {\"lines.linewidth\" 2.5})\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(matplotlib.pyplot.show (seaborn.barplot \n", " :data tracks-last \n", " :x \"duration\" \n", " :y \"names\" \n", " :palette \"BuPu\"\n", " ))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(setv meintracks (.get-recent-tracks (net.get-user \"tian2992\")))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "meintracks" ] }, { "cell_type": "code", "execution_count": 134, "metadata": {}, "outputs": [], "source": [ "(setv meintracks (.get-recent-tracks (net.get-user \"tian2992\") 100))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(setv t_t (first meintracks))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(setv meintracks (.get-recent-tracks (net.get-user \"tian2992\")))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(setv last_track_pd {:timed (list (map (fn [t] (.get_duration (first t))) tracks)) :dates playback_date (list (map (fn[t] (.get)))) })" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(int (get t_t 3))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(setv track_objs (list (map(fn [t] (first t)) meintracks)))\n", "(setv track_times (list (map (fn [t] (pandas.to_datetime (int (get t 3)) :unit \"s\")) meintracks)))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "track_times" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(pandas.DataFrame {\"times\" track_times \"tracks\" track_objs})" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(def tian_user (net.get-user \"tian2992\"))" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(help tian_user)" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "(setv top_tracks (.get-top-tracks (net.get-user \"tian2992\") :period pylast.PERIOD_12MONTHS :limit 100 ))" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[TopItem(item=pylast.Track('Jamie xx', 'Loud Places', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=115), TopItem(item=pylast.Track('Washed Out', 'Feel It All Around', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=54), TopItem(item=pylast.Track('Lusine', 'Operation Costs', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=53), TopItem(item=pylast.Track('Banks', 'Warm Water - Snakehips Remix', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=52), TopItem(item=pylast.Track('Kings of Convenience', 'Rule My World', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=45), TopItem(item=pylast.Track('Lusine', 'Just a Cloud', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=44), TopItem(item=pylast.Track('Unknown Mortal Orchestra', 'So Good at Being in Trouble', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=43), TopItem(item=pylast.Track('Radiohead', 'Weird Fishes/ Arpeggi', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=42), TopItem(item=pylast.Track('The xx', 'On Hold', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=39), TopItem(item=pylast.Track('Washed Out', 'It All Feels Right', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=37), TopItem(item=pylast.Track('Fleet Foxes', 'Mykonos', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=34), TopItem(item=pylast.Track('Bonobo', 'Cirrus', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=32), TopItem(item=pylast.Track('Tennis', 'My Better Self', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=32), TopItem(item=pylast.Track('Interpol', 'Rest My Chemistry', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=32), TopItem(item=pylast.Track('Radiohead', 'Lotus Flower (Jacques Greene rmx)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=31), TopItem(item=pylast.Track('Toro y Moi', 'Rose Quartz', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=31), TopItem(item=pylast.Track('The Album Leaf', 'False Dawn', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=30), TopItem(item=pylast.Track('Nicola Cruz', 'LA COSECHA', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=30), TopItem(item=pylast.Track('POLIÇA', 'Lately', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=30), TopItem(item=pylast.Track('Kelpe', 'Beaks of Eagles - Original Mix', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=29), TopItem(item=pylast.Track('The Whitest Boy Alive', 'Burning', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=29), TopItem(item=pylast.Track('Radiohead', 'Jigsaw Falling Into Place', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=29), TopItem(item=pylast.Track('Rhye', 'Last Dance', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=29), TopItem(item=pylast.Track('Lo-Fi-Fnk', 'Last Summer', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=29), TopItem(item=pylast.Track('Erlend Øye', 'Sudden Rush', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=29), TopItem(item=pylast.Track('Tame Impala', 'Feels Like We Only Go Backwards', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=28), TopItem(item=pylast.Track('José González', 'Heartbeats', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=28), TopItem(item=pylast.Track('El Ten Eleven', 'My Only Swerving', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=28), TopItem(item=pylast.Track('The xx', 'On Hold (Jamie xx Remix)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=28), TopItem(item=pylast.Track('Dirty Projectors', 'Swing Lo Magellan', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=28), TopItem(item=pylast.Track('Justin Timberlake', 'What Goes Around.../...Comes Around (Interlude)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=28), TopItem(item=pylast.Track('Shigeto', 'Ann Arbor, Part 3 & 4', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=26), TopItem(item=pylast.Track('Connan Mockasin', 'Forever Dolphin Love (Erol Alkan Rework)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=26), TopItem(item=pylast.Track('The xx', 'Islands', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=26), TopItem(item=pylast.Track('Ellen Allien', 'Leave Me Alone', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=26), TopItem(item=pylast.Track('Sylvan Esso', 'Coffee', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=25), TopItem(item=pylast.Track('Thievery Corporation', 'Décollage (feat. Lou Lou Ghelichkhani)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=25), TopItem(item=pylast.Track('Childish Gambino', 'Redbone', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=25), TopItem(item=pylast.Track('Arctic Monkeys', 'Fluorescent Adolescent', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=24), TopItem(item=pylast.Track('Phoenix', 'If I Ever Feel Better', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=24), TopItem(item=pylast.Track('David Lang', 'Light Moving', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=24), TopItem(item=pylast.Track('Hot Chip', 'Look At Where We Are', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=24), TopItem(item=pylast.Track('Kindness', \"Swingin' Party\", pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=24), TopItem(item=pylast.Track('Tame Impala', 'The Less I Know the Better', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=24), TopItem(item=pylast.Track('Moderat', 'A New Error', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=23), TopItem(item=pylast.Track('The Weeknd', 'I Feel It Coming', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=23), TopItem(item=pylast.Track('Salvia Palth', 'I Was All Over Her', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=23), TopItem(item=pylast.Track('Villagers', 'Nothing Arrived - Live from Spotify London', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=23), TopItem(item=pylast.Track('Courtney Barnett', 'Avant Gardener', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=22), TopItem(item=pylast.Track('These City Lights', 'Crystal Clouds', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=22), TopItem(item=pylast.Track('These City Lights', \"I've Tried\", pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=22), TopItem(item=pylast.Track('Tennis', 'Petition', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=22), TopItem(item=pylast.Track('cocainejesus', 'She', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=22), TopItem(item=pylast.Track('Rhye', 'The Fall', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=22), TopItem(item=pylast.Track('Hot Chip', 'Crap Kraft Dinner', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=21), TopItem(item=pylast.Track('Sia', 'Elastic Heart - Piano Version', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=21), TopItem(item=pylast.Track('Summer Heart', 'I Wanna Go', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=21), TopItem(item=pylast.Track('Gotye', 'Somebody That I Used to Know', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=21), TopItem(item=pylast.Track('Santana', 'Twisted', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=21), TopItem(item=pylast.Track('Gustavo Cerati', 'Crimen', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=20), TopItem(item=pylast.Track('Bomba Estéreo', 'El alma y el cuerpo', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=20), TopItem(item=pylast.Track('Buena Vista Social Club', 'Lágrimas Negras', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=20), TopItem(item=pylast.Track('::M∆DE::IN::HEIGHTS::', 'Slow Burn', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=20), TopItem(item=pylast.Track('Tennis', 'Tell Her No', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=20), TopItem(item=pylast.Track('Noordpool Orchestra', '15 Step', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=19), TopItem(item=pylast.Track('Metronomy', 'Everything Goes My Way', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=19), TopItem(item=pylast.Track('The National', 'Exile Vilify', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=19), TopItem(item=pylast.Track('SBTRKT', 'Hold On (feat. Sampha)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=19), TopItem(item=pylast.Track('Feist', '1234', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=18), TopItem(item=pylast.Track('Gorillaz', 'Empire Ants (feat. Little Dragon)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=18), TopItem(item=pylast.Track('The xx', 'Fiction', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=18), TopItem(item=pylast.Track('These City Lights', 'Houston', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=18), TopItem(item=pylast.Track('Steve Reich', 'Music for 18 Musicians (modular version): Section I', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=18), TopItem(item=pylast.Track('Tennis', 'Origins', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=18), TopItem(item=pylast.Track('Arcade Fire', 'The Suburbs', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=18), TopItem(item=pylast.Track('Tennis', 'Traveling', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=18), TopItem(item=pylast.Track('Milosh', 'You Make Me Feel', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=18), TopItem(item=pylast.Track('Air', 'Alone in Kyoto', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('King Krule', 'Border Line', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('Johann Sebastian Bach', 'Concerto n°5 en Ré majeur BWV 1050: I. Allegro', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('Adriana Figueroa', \"It's Over, Isn't It (Steven Universe)\", pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('The American Dollar', 'Lost Symphony', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('Hall & Oates', 'Out Of Touch - Remastered', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('Radio Zumbido', 'Radio Sololá', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('Metronomy', 'The Bay', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('BADBADNOTGOOD', 'Time Moves Slow', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('Lianne La Havas', 'Tokyo', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('Lusine', 'Two Dots', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('Sebastián Codex', 'Weird Fishes/Arpeggi', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=17), TopItem(item=pylast.Track('Gorillaz', 'Andromeda (feat. D.R.A.M.)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=16), TopItem(item=pylast.Track('Justin Timberlake', 'Cry Me a River', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=16), TopItem(item=pylast.Track('Wolfgang Amadeus Mozart', 'Die Zauberflöte, K.620 : Der Hölle Rache kocht in meinem Herzen (Königin der Nacht)', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=16), TopItem(item=pylast.Track('Kings of Convenience', \"I Don't Know What I Can Save You From\", pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=16), TopItem(item=pylast.Track('Kings of Convenience', 'Know-How', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=16), TopItem(item=pylast.Track('Chrome Sparks', 'Marijuana', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=16), TopItem(item=pylast.Track('Keane', 'Nothing in My Way', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=16), TopItem(item=pylast.Track('Kings of Convenience', 'The Build Up', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=16), TopItem(item=pylast.Track('Aperture Science Psychoacoustics Laboratory', 'Want You Gone', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=16), TopItem(item=pylast.Track('Tycho', 'Awake', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=15), TopItem(item=pylast.Track('The Dave Brubeck Quartet', 'Bossa Nova U.S.A. - Live', pylast.LastFMNetwork('3c7951c02735171dc66f979733e2f254', '595291e4183382430cb204381705374d', 'OoA-fkNFpm304_DFrM-yOL7DZuWiYgTk', 'tian2992', 'db820015c1b148e1bbd990ba8551bb4c')), weight=15)]" ] }, "execution_count": 7, "metadata": {}, "output_type": "execute_result" } ], "source": [ "top_tracks" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "(setv t_top_tracks (list (map(fn [t] (first t)) top_tracks)))\n", "(setv t_t_times (list (map (fn [t] (int (get t 1))) top_tracks)))" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "(setv t_top_tracks_length (/ (pandas.Series (map(fn [t] (.get_duration t)) t_top_tracks)) 1000))\n", "(setv t_mbids (pandas.Series (map(fn [t] (.get_mbid t)) t_top_tracks)))\n" ] }, { "cell_type": "code", "execution_count": 55, "metadata": {}, "outputs": [], "source": [ "(setv fave_tracks (pandas.DataFrame \n", " {\n", " \"mbid\" t_mbids\n", " \"tracks\" t_top_tracks \n", " \"song_length\" t_top_tracks_length \n", " \"times\" t_t_times\n", " }))" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "\u001b[0;31mTraceback (most recent call last):\n", " File \"/home/tian/utz/playlisp/venv/lib/python3.6/site-packages/calysto_hy/kernel.py\", line 98, in do_execute_direct\n", " eval(code, self.env)\n", " File \"In [1]\", line 9, in \n", " File \"In [1]\", line 6, in s_length\n", "NameError: name 'fave_tracks' is not defined\n", "\n", "\u001b[0m" ] } ], "source": [ "; (assoc fave_tracks [0 \"song_lengths\"] 283)\n", "; (setv (. fave_tracks loc [(, '(0) (, \"song_length\"))]) (s-len 4 43)) ;; loud places\n", "\n", "(defn len-ms [mins segs] (+ (* 60 mins) segs) )\n", "(defn s-length [in leng] \n", " (setv (. fave_tracks loc [(, in (, \"song_length\"))]) leng)\n", " )\n", "\n", "(s-length 0 (len-ms 4 43))\n", "(s-length 3 (len-ms 4 45))\n", "(s-length 4 (len-ms 4 14))\n", "(s-length 6 (len-ms 5 18))\n", "(s-length 17 (len-ms 5 15))\n", "(s-length 18 (len-ms 4 33))\n", "(s-length 23 (len-ms 3 12))\n", "(s-length 30 (len-ms 7 29))" ] }, { "cell_type": "code", "execution_count": 125, "metadata": {}, "outputs": [], "source": [ "(assoc fave_tracks \"lengths\" (list (map (fn [x] (pandas.Timedelta x :unit \"s\")) (* (get fave_tracks \"song_length\") (get fave_tracks \"times\")))))\n", "(assoc fave_tracks \"seconds_lengths\" (* (get fave_tracks \"song_length\") (get fave_tracks \"times\")))" ] }, { "cell_type": "code", "execution_count": 118, "metadata": {}, "outputs": [], "source": [ ";; (cut fave_tracks 2 5) ;; rows 2 - 5\n", ";;(cut fave_tracks 2 5)\n", ";;(assoc (. fave_tracks loc [0]) \"song_length\" 265)" ] }, { "cell_type": "code", "execution_count": 120, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
mbidsong_lengthtimestrackslengthsseconds_lengths
0None283.0115Jamie xx - Loud Places09:02:2532545.0
1983f22ca-5d35-4763-a7a6-0c0eadfbd192192.054Washed Out - Feel It All Around02:52:4810368.0
2None284.053Lusine - Operation Costs04:10:5215052.0
3None285.050Banks - Warm Water - Snakehips Remix03:57:3014250.0
42df91ca8-3b94-495a-8d5d-35f3b53871f0254.045Kings of Convenience - Rule My World03:10:3011430.0
58acbf005-4ef6-44b0-b46f-b026c0da12e9231.043Unknown Mortal Orchestra - So Good at Being in...02:45:339933.0
6None0.042Radiohead - Weird Fishes/ Arpeggi00:00:000.0
7None332.041Lusine - Just a Cloud03:46:5213612.0
8None224.039The xx - On Hold02:25:368736.0
9a1d56aad-ccdc-4916-ae08-6e0a093fd32d245.037Washed Out - It All Feels Right02:31:059065.0
1011d92c40-ba2a-4640-9654-63c128e4a446275.034Fleet Foxes - Mykonos02:35:509350.0
11b0bbf192-1724-4808-9254-8e95982de3d3322.032Bonobo - Cirrus02:51:4410304.0
12698779fe-45fc-42e5-992c-3ff346a90614224.032Tennis - My Better Self01:59:287168.0
1356228aad-af59-4f26-9e20-34b30a529312300.032Interpol - Rest My Chemistry02:40:009600.0
14None429.031Radiohead - Lotus Flower (Jacques Greene rmx)03:41:3913299.0
1529290563-aed2-4dd0-9a70-cb43d451b177253.031Toro y Moi - Rose Quartz02:10:437843.0
16None321.030The Album Leaf - False Dawn02:40:309630.0
17None0.030Nicola Cruz - LA COSECHA00:00:000.0
18None0.029Kelpe - Beaks of Eagles - Original Mix00:00:000.0
190a73cc35-d391-47ab-93b1-8b852346cec2191.029The Whitest Boy Alive - Burning01:32:195539.0
2031600df4-e6dd-48ca-9f6b-8804027d8d6e249.029Radiohead - Jigsaw Falling Into Place02:00:217221.0
2147269149-9de9-46dc-8405-e9b5f07ea620206.029Rhye - Last Dance01:39:345974.0
22621bb689-c0c0-4259-8966-30bdd69282f7216.029Lo-Fi-Fnk - Last Summer01:44:246264.0
23None0.029POLIÇA - Lately00:00:000.0
246f7aee78-a92f-4b96-bfa2-3fb44e1cf8df204.029Erlend Øye - Sudden Rush01:38:365916.0
2574bbaf1e-220c-4329-b494-bcfd7da17ec0193.028Tame Impala - Feels Like We Only Go Backwards01:30:045404.0
26e9ba89bd-ab94-465a-8c6f-9d37b4b5d2cd160.028José González - Heartbeats01:14:404480.0
27None371.028The xx - On Hold (Jamie xx Remix)02:53:0810388.0
2823307bdc-7e1b-44d0-a7b6-48fecf80a6de158.028Dirty Projectors - Swing Lo Magellan01:13:444424.0
2948a2d37b-3c53-4526-a8a7-8fc9475ba3a2314.027El Ten Eleven - My Only Swerving02:21:188478.0
.....................
70c60693eb-0624-4847-968b-f80c745f4505176.018The xx - Fiction00:52:483168.0
71None167.018These City Lights - Houston00:50:063006.0
72None0.018Steve Reich - Music for 18 Musicians (modular ...00:00:000.0
737c091ab5-360a-4900-a1b7-5f31b2c693d3208.018Tennis - Origins01:02:243744.0
74a0c8a6b4-74bf-4c12-b8b7-8f81df881061314.018Arcade Fire - The Suburbs01:34:125652.0
75c5ad7462-e222-4753-b2e3-6cf798227c8f181.018Tennis - Traveling00:54:183258.0
76db3bc07c-7d94-47aa-b602-7ae2938f930d283.018Milosh - You Make Me Feel01:24:545094.0
77f900f8e2-7d49-4cca-a9a9-ee67dda88e6e285.017Air - Alone in Kyoto01:20:454845.0
78fa00b670-40cf-4c0b-9b21-f99f6070dcfc186.017King Krule - Border Line00:52:423162.0
79None0.017Johann Sebastian Bach - Concerto n°5 en Ré maj...00:00:000.0
80None145.017Adriana Figueroa - It's Over, Isn't It (Steven...00:41:052465.0
81None225.017The American Dollar - Lost Symphony01:03:453825.0
82None247.017Hall & Oates - Out Of Touch - Remastered01:09:594199.0
83256a08fd-7455-4052-8750-09f1edd31e6e285.017Radio Zumbido - Radio Sololá01:20:454845.0
841857ed23-14e8-480e-b765-0ee7a7b00374290.017Metronomy - The Bay01:22:104930.0
85None273.017BADBADNOTGOOD - Time Moves Slow01:17:214641.0
86None269.017Lianne La Havas - Tokyo01:16:134573.0
87None278.017Lusine - Two Dots01:18:464726.0
88None0.017Sebastián Codex - Weird Fishes/Arpeggi00:00:000.0
89None0.016Gorillaz - Andromeda (feat. D.R.A.M.)00:00:000.0
9023dd18d5-07da-45c8-8200-0b3e6050fb4d288.016Justin Timberlake - Cry Me a River01:16:484608.0
91None0.016Wolfgang Amadeus Mozart - Die Zauberflöte, K.6...00:00:000.0
92None234.016Kings of Convenience - Know-How01:02:243744.0
93aa6a2582-b3f2-44ca-b31d-76259223c96d174.016Chrome Sparks - Marijuana00:46:242784.0
940428c11e-8682-44a6-a724-3d49a64b5c0d240.016Keane - Nothing in My Way01:04:003840.0
9510229224-8a4c-47fa-a09d-6cdf918b46a2245.016Kings of Convenience - The Build Up01:05:203920.0
96ef019005-9d5f-477b-885d-21660f441f8c141.016Aperture Science Psychoacoustics Laboratory - ...00:37:362256.0
9787e56a40-c267-4e7b-a9c0-6bcb9e569e52283.015Tycho - Awake01:10:454245.0
98None0.015The Dave Brubeck Quartet - Bossa Nova U.S.A. -...00:00:000.0
99None0.015Antonio Vivaldi - Concerto in C Minor, RV 199 ...00:00:000.0
\n", "

100 rows × 6 columns

\n", "
" ], "text/plain": [ " mbid song_length times \\\n", "0 None 283.0 115 \n", "1 983f22ca-5d35-4763-a7a6-0c0eadfbd192 192.0 54 \n", "2 None 284.0 53 \n", "3 None 285.0 50 \n", "4 2df91ca8-3b94-495a-8d5d-35f3b53871f0 254.0 45 \n", "5 8acbf005-4ef6-44b0-b46f-b026c0da12e9 231.0 43 \n", "6 None 0.0 42 \n", "7 None 332.0 41 \n", "8 None 224.0 39 \n", "9 a1d56aad-ccdc-4916-ae08-6e0a093fd32d 245.0 37 \n", "10 11d92c40-ba2a-4640-9654-63c128e4a446 275.0 34 \n", "11 b0bbf192-1724-4808-9254-8e95982de3d3 322.0 32 \n", "12 698779fe-45fc-42e5-992c-3ff346a90614 224.0 32 \n", "13 56228aad-af59-4f26-9e20-34b30a529312 300.0 32 \n", "14 None 429.0 31 \n", "15 29290563-aed2-4dd0-9a70-cb43d451b177 253.0 31 \n", "16 None 321.0 30 \n", "17 None 0.0 30 \n", "18 None 0.0 29 \n", "19 0a73cc35-d391-47ab-93b1-8b852346cec2 191.0 29 \n", "20 31600df4-e6dd-48ca-9f6b-8804027d8d6e 249.0 29 \n", "21 47269149-9de9-46dc-8405-e9b5f07ea620 206.0 29 \n", "22 621bb689-c0c0-4259-8966-30bdd69282f7 216.0 29 \n", "23 None 0.0 29 \n", "24 6f7aee78-a92f-4b96-bfa2-3fb44e1cf8df 204.0 29 \n", "25 74bbaf1e-220c-4329-b494-bcfd7da17ec0 193.0 28 \n", "26 e9ba89bd-ab94-465a-8c6f-9d37b4b5d2cd 160.0 28 \n", "27 None 371.0 28 \n", "28 23307bdc-7e1b-44d0-a7b6-48fecf80a6de 158.0 28 \n", "29 48a2d37b-3c53-4526-a8a7-8fc9475ba3a2 314.0 27 \n", ".. ... ... ... \n", "70 c60693eb-0624-4847-968b-f80c745f4505 176.0 18 \n", "71 None 167.0 18 \n", "72 None 0.0 18 \n", "73 7c091ab5-360a-4900-a1b7-5f31b2c693d3 208.0 18 \n", "74 a0c8a6b4-74bf-4c12-b8b7-8f81df881061 314.0 18 \n", "75 c5ad7462-e222-4753-b2e3-6cf798227c8f 181.0 18 \n", "76 db3bc07c-7d94-47aa-b602-7ae2938f930d 283.0 18 \n", "77 f900f8e2-7d49-4cca-a9a9-ee67dda88e6e 285.0 17 \n", "78 fa00b670-40cf-4c0b-9b21-f99f6070dcfc 186.0 17 \n", "79 None 0.0 17 \n", "80 None 145.0 17 \n", "81 None 225.0 17 \n", "82 None 247.0 17 \n", "83 256a08fd-7455-4052-8750-09f1edd31e6e 285.0 17 \n", "84 1857ed23-14e8-480e-b765-0ee7a7b00374 290.0 17 \n", "85 None 273.0 17 \n", "86 None 269.0 17 \n", "87 None 278.0 17 \n", "88 None 0.0 17 \n", "89 None 0.0 16 \n", "90 23dd18d5-07da-45c8-8200-0b3e6050fb4d 288.0 16 \n", "91 None 0.0 16 \n", "92 None 234.0 16 \n", "93 aa6a2582-b3f2-44ca-b31d-76259223c96d 174.0 16 \n", "94 0428c11e-8682-44a6-a724-3d49a64b5c0d 240.0 16 \n", "95 10229224-8a4c-47fa-a09d-6cdf918b46a2 245.0 16 \n", "96 ef019005-9d5f-477b-885d-21660f441f8c 141.0 16 \n", "97 87e56a40-c267-4e7b-a9c0-6bcb9e569e52 283.0 15 \n", "98 None 0.0 15 \n", "99 None 0.0 15 \n", "\n", " tracks lengths \\\n", "0 Jamie xx - Loud Places 09:02:25 \n", "1 Washed Out - Feel It All Around 02:52:48 \n", "2 Lusine - Operation Costs 04:10:52 \n", "3 Banks - Warm Water - Snakehips Remix 03:57:30 \n", "4 Kings of Convenience - Rule My World 03:10:30 \n", "5 Unknown Mortal Orchestra - So Good at Being in... 02:45:33 \n", "6 Radiohead - Weird Fishes/ Arpeggi 00:00:00 \n", "7 Lusine - Just a Cloud 03:46:52 \n", "8 The xx - On Hold 02:25:36 \n", "9 Washed Out - It All Feels Right 02:31:05 \n", "10 Fleet Foxes - Mykonos 02:35:50 \n", "11 Bonobo - Cirrus 02:51:44 \n", "12 Tennis - My Better Self 01:59:28 \n", "13 Interpol - Rest My Chemistry 02:40:00 \n", "14 Radiohead - Lotus Flower (Jacques Greene rmx) 03:41:39 \n", "15 Toro y Moi - Rose Quartz 02:10:43 \n", "16 The Album Leaf - False Dawn 02:40:30 \n", "17 Nicola Cruz - LA COSECHA 00:00:00 \n", "18 Kelpe - Beaks of Eagles - Original Mix 00:00:00 \n", "19 The Whitest Boy Alive - Burning 01:32:19 \n", "20 Radiohead - Jigsaw Falling Into Place 02:00:21 \n", "21 Rhye - Last Dance 01:39:34 \n", "22 Lo-Fi-Fnk - Last Summer 01:44:24 \n", "23 POLIÇA - Lately 00:00:00 \n", "24 Erlend Øye - Sudden Rush 01:38:36 \n", "25 Tame Impala - Feels Like We Only Go Backwards 01:30:04 \n", "26 José González - Heartbeats 01:14:40 \n", "27 The xx - On Hold (Jamie xx Remix) 02:53:08 \n", "28 Dirty Projectors - Swing Lo Magellan 01:13:44 \n", "29 El Ten Eleven - My Only Swerving 02:21:18 \n", ".. ... ... \n", "70 The xx - Fiction 00:52:48 \n", "71 These City Lights - Houston 00:50:06 \n", "72 Steve Reich - Music for 18 Musicians (modular ... 00:00:00 \n", "73 Tennis - Origins 01:02:24 \n", "74 Arcade Fire - The Suburbs 01:34:12 \n", "75 Tennis - Traveling 00:54:18 \n", "76 Milosh - You Make Me Feel 01:24:54 \n", "77 Air - Alone in Kyoto 01:20:45 \n", "78 King Krule - Border Line 00:52:42 \n", "79 Johann Sebastian Bach - Concerto n°5 en Ré maj... 00:00:00 \n", "80 Adriana Figueroa - It's Over, Isn't It (Steven... 00:41:05 \n", "81 The American Dollar - Lost Symphony 01:03:45 \n", "82 Hall & Oates - Out Of Touch - Remastered 01:09:59 \n", "83 Radio Zumbido - Radio Sololá 01:20:45 \n", "84 Metronomy - The Bay 01:22:10 \n", "85 BADBADNOTGOOD - Time Moves Slow 01:17:21 \n", "86 Lianne La Havas - Tokyo 01:16:13 \n", "87 Lusine - Two Dots 01:18:46 \n", "88 Sebastián Codex - Weird Fishes/Arpeggi 00:00:00 \n", "89 Gorillaz - Andromeda (feat. D.R.A.M.) 00:00:00 \n", "90 Justin Timberlake - Cry Me a River 01:16:48 \n", "91 Wolfgang Amadeus Mozart - Die Zauberflöte, K.6... 00:00:00 \n", "92 Kings of Convenience - Know-How 01:02:24 \n", "93 Chrome Sparks - Marijuana 00:46:24 \n", "94 Keane - Nothing in My Way 01:04:00 \n", "95 Kings of Convenience - The Build Up 01:05:20 \n", "96 Aperture Science Psychoacoustics Laboratory - ... 00:37:36 \n", "97 Tycho - Awake 01:10:45 \n", "98 The Dave Brubeck Quartet - Bossa Nova U.S.A. -... 00:00:00 \n", "99 Antonio Vivaldi - Concerto in C Minor, RV 199 ... 00:00:00 \n", "\n", " seconds_lengths \n", "0 32545.0 \n", "1 10368.0 \n", "2 15052.0 \n", "3 14250.0 \n", "4 11430.0 \n", "5 9933.0 \n", "6 0.0 \n", "7 13612.0 \n", "8 8736.0 \n", "9 9065.0 \n", "10 9350.0 \n", "11 10304.0 \n", "12 7168.0 \n", "13 9600.0 \n", "14 13299.0 \n", "15 7843.0 \n", "16 9630.0 \n", "17 0.0 \n", "18 0.0 \n", "19 5539.0 \n", "20 7221.0 \n", "21 5974.0 \n", "22 6264.0 \n", "23 0.0 \n", "24 5916.0 \n", "25 5404.0 \n", "26 4480.0 \n", "27 10388.0 \n", "28 4424.0 \n", "29 8478.0 \n", ".. ... \n", "70 3168.0 \n", "71 3006.0 \n", "72 0.0 \n", "73 3744.0 \n", "74 5652.0 \n", "75 3258.0 \n", "76 5094.0 \n", "77 4845.0 \n", "78 3162.0 \n", "79 0.0 \n", "80 2465.0 \n", "81 3825.0 \n", "82 4199.0 \n", "83 4845.0 \n", "84 4930.0 \n", "85 4641.0 \n", "86 4573.0 \n", "87 4726.0 \n", "88 0.0 \n", "89 0.0 \n", "90 4608.0 \n", "91 0.0 \n", "92 3744.0 \n", "93 2784.0 \n", "94 3840.0 \n", "95 3920.0 \n", "96 2256.0 \n", "97 4245.0 \n", "98 0.0 \n", "99 0.0 \n", "\n", "[100 rows x 6 columns]" ] }, "execution_count": 120, "metadata": {}, "output_type": "execute_result" } ], "source": [ "fave_tracks" ] }, { "cell_type": "code", "execution_count": 127, "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
mbidsong_lengthtimestrackslengthsseconds_lengths
0None283.0115Jamie xx - Loud Places09:02:2532545.0
2None284.053Lusine - Operation Costs04:10:5215052.0
3None285.050Banks - Warm Water - Snakehips Remix03:57:3014250.0
7None332.041Lusine - Just a Cloud03:46:5213612.0
6None318.042Radiohead - Weird Fishes/ Arpeggi03:42:3613356.0
14None429.031Radiohead - Lotus Flower (Jacques Greene rmx)03:41:3913299.0
332245f062-f3fa-4a8c-a2dd-d6b477bf5cd2498.026Connan Mockasin - Forever Dolphin Love (Erol A...03:35:4812948.0
30None449.027Justin Timberlake - What Goes Around.../...Com...03:22:0312123.0
42df91ca8-3b94-495a-8d5d-35f3b53871f0254.045Kings of Convenience - Rule My World03:10:3011430.0
27None371.028The xx - On Hold (Jamie xx Remix)02:53:0810388.0
1983f22ca-5d35-4763-a7a6-0c0eadfbd192192.054Washed Out - Feel It All Around02:52:4810368.0
11b0bbf192-1724-4808-9254-8e95982de3d3322.032Bonobo - Cirrus02:51:4410304.0
58acbf005-4ef6-44b0-b46f-b026c0da12e9231.043Unknown Mortal Orchestra - So Good at Being in...02:45:339933.0
16None321.030The Album Leaf - False Dawn02:40:309630.0
1356228aad-af59-4f26-9e20-34b30a529312300.032Interpol - Rest My Chemistry02:40:009600.0
17None315.030Nicola Cruz - LA COSECHA02:37:309450.0
1011d92c40-ba2a-4640-9654-63c128e4a446275.034Fleet Foxes - Mykonos02:35:509350.0
9a1d56aad-ccdc-4916-ae08-6e0a093fd32d245.037Washed Out - It All Feels Right02:31:059065.0
8None224.039The xx - On Hold02:25:368736.0
2948a2d37b-3c53-4526-a8a7-8fc9475ba3a2314.027El Ten Eleven - My Only Swerving02:21:188478.0
54e59f6c04-d498-47f5-9dab-517c346bb8f2394.021Hot Chip - Crap Kraft Dinner02:17:548274.0
38None327.025Childish Gambino - Redbone02:16:158175.0
485d2ce680-b68e-4528-abde-5122ff045003364.022Moderat - A New Error02:13:288008.0
18None273.029Kelpe - Beaks of Eagles - Original Mix02:11:577917.0
1529290563-aed2-4dd0-9a70-cb43d451b177253.031Toro y Moi - Rose Quartz02:10:437843.0
32634ca556-3a3a-49a0-9fa4-f3b708db0bdb281.026Sylvan Esso - Coffee02:01:467306.0
2031600df4-e6dd-48ca-9f6b-8804027d8d6e249.029Radiohead - Jigsaw Falling Into Place02:00:217221.0
12698779fe-45fc-42e5-992c-3ff346a90614224.032Tennis - My Better Self01:59:287168.0
311b472b5d-2293-4f51-824d-ca575a1407d9261.026Shigeto - Ann Arbor, Part 3 & 401:53:066786.0
53eaf19b05-fada-4ae8-9f20-e06b7484be4c312.021Courtney Barnett - Avant Gardener01:49:126552.0
.....................
344b95b3fb-3c50-4940-b8bf-d39f77a9691f161.026The xx - Islands01:09:464186.0
43fa2fa7b2-6e64-4d17-ba30-bf1027b690d1177.023Arctic Monkeys - Fluorescent Adolescent01:07:514071.0
641fb5c114-1dc4-4741-8177-e0f64770995d210.019Metronomy - Everything Goes My Way01:06:303990.0
9510229224-8a4c-47fa-a09d-6cdf918b46a2245.016Kings of Convenience - The Build Up01:05:203920.0
66None206.019SBTRKT - Hold On (feat. Sampha)01:05:143914.0
940428c11e-8682-44a6-a724-3d49a64b5c0d240.016Keane - Nothing in My Way01:04:003840.0
81None225.017The American Dollar - Lost Symphony01:03:453825.0
92None234.016Kings of Convenience - Know-How01:02:243744.0
737c091ab5-360a-4900-a1b7-5f31b2c693d3208.018Tennis - Origins01:02:243744.0
45None161.023Salvia Palth - I Was All Over Her01:01:433703.0
67a4293853-6e16-4ed1-b954-e8452782eb8b184.018Feist - 123400:55:123312.0
75c5ad7462-e222-4753-b2e3-6cf798227c8f181.018Tennis - Traveling00:54:183258.0
70c60693eb-0624-4847-968b-f80c745f4505176.018The xx - Fiction00:52:483168.0
78fa00b670-40cf-4c0b-9b21-f99f6070dcfc186.017King Krule - Border Line00:52:423162.0
71None167.018These City Lights - Houston00:50:063006.0
93aa6a2582-b3f2-44ca-b31d-76259223c96d174.016Chrome Sparks - Marijuana00:46:242784.0
628814c358-cfc2-4bec-8cb5-6907f4a06dfb130.020Tennis - Tell Her No00:43:202600.0
80None145.017Adriana Figueroa - It's Over, Isn't It (Steven...00:41:052465.0
96ef019005-9d5f-477b-885d-21660f441f8c141.016Aperture Science Psychoacoustics Laboratory - ...00:37:362256.0
91None0.016Wolfgang Amadeus Mozart - Die Zauberflöte, K.6...00:00:000.0
98None0.015The Dave Brubeck Quartet - Bossa Nova U.S.A. -...00:00:000.0
46None0.023Villagers - Nothing Arrived - Live from Spotif...00:00:000.0
89None0.016Gorillaz - Andromeda (feat. D.R.A.M.)00:00:000.0
88None0.017Sebastián Codex - Weird Fishes/Arpeggi00:00:000.0
79None0.017Johann Sebastian Bach - Concerto n°5 en Ré maj...00:00:000.0
72None0.018Steve Reich - Music for 18 Musicians (modular ...00:00:000.0
69None0.018Gorillaz - Empire Ants (feat. Little Dragon)00:00:000.0
35None0.026Ellen Allien - Leave Me Alone00:00:000.0
55None0.021Sia - Elastic Heart - Piano Version00:00:000.0
99None0.015Antonio Vivaldi - Concerto in C Minor, RV 199 ...00:00:000.0
\n", "

100 rows × 6 columns

\n", "
" ], "text/plain": [ " mbid song_length times \\\n", "0 None 283.0 115 \n", "2 None 284.0 53 \n", "3 None 285.0 50 \n", "7 None 332.0 41 \n", "6 None 318.0 42 \n", "14 None 429.0 31 \n", "33 2245f062-f3fa-4a8c-a2dd-d6b477bf5cd2 498.0 26 \n", "30 None 449.0 27 \n", "4 2df91ca8-3b94-495a-8d5d-35f3b53871f0 254.0 45 \n", "27 None 371.0 28 \n", "1 983f22ca-5d35-4763-a7a6-0c0eadfbd192 192.0 54 \n", "11 b0bbf192-1724-4808-9254-8e95982de3d3 322.0 32 \n", "5 8acbf005-4ef6-44b0-b46f-b026c0da12e9 231.0 43 \n", "16 None 321.0 30 \n", "13 56228aad-af59-4f26-9e20-34b30a529312 300.0 32 \n", "17 None 315.0 30 \n", "10 11d92c40-ba2a-4640-9654-63c128e4a446 275.0 34 \n", "9 a1d56aad-ccdc-4916-ae08-6e0a093fd32d 245.0 37 \n", "8 None 224.0 39 \n", "29 48a2d37b-3c53-4526-a8a7-8fc9475ba3a2 314.0 27 \n", "54 e59f6c04-d498-47f5-9dab-517c346bb8f2 394.0 21 \n", "38 None 327.0 25 \n", "48 5d2ce680-b68e-4528-abde-5122ff045003 364.0 22 \n", "18 None 273.0 29 \n", "15 29290563-aed2-4dd0-9a70-cb43d451b177 253.0 31 \n", "32 634ca556-3a3a-49a0-9fa4-f3b708db0bdb 281.0 26 \n", "20 31600df4-e6dd-48ca-9f6b-8804027d8d6e 249.0 29 \n", "12 698779fe-45fc-42e5-992c-3ff346a90614 224.0 32 \n", "31 1b472b5d-2293-4f51-824d-ca575a1407d9 261.0 26 \n", "53 eaf19b05-fada-4ae8-9f20-e06b7484be4c 312.0 21 \n", ".. ... ... ... \n", "34 4b95b3fb-3c50-4940-b8bf-d39f77a9691f 161.0 26 \n", "43 fa2fa7b2-6e64-4d17-ba30-bf1027b690d1 177.0 23 \n", "64 1fb5c114-1dc4-4741-8177-e0f64770995d 210.0 19 \n", "95 10229224-8a4c-47fa-a09d-6cdf918b46a2 245.0 16 \n", "66 None 206.0 19 \n", "94 0428c11e-8682-44a6-a724-3d49a64b5c0d 240.0 16 \n", "81 None 225.0 17 \n", "92 None 234.0 16 \n", "73 7c091ab5-360a-4900-a1b7-5f31b2c693d3 208.0 18 \n", "45 None 161.0 23 \n", "67 a4293853-6e16-4ed1-b954-e8452782eb8b 184.0 18 \n", "75 c5ad7462-e222-4753-b2e3-6cf798227c8f 181.0 18 \n", "70 c60693eb-0624-4847-968b-f80c745f4505 176.0 18 \n", "78 fa00b670-40cf-4c0b-9b21-f99f6070dcfc 186.0 17 \n", "71 None 167.0 18 \n", "93 aa6a2582-b3f2-44ca-b31d-76259223c96d 174.0 16 \n", "62 8814c358-cfc2-4bec-8cb5-6907f4a06dfb 130.0 20 \n", "80 None 145.0 17 \n", "96 ef019005-9d5f-477b-885d-21660f441f8c 141.0 16 \n", "91 None 0.0 16 \n", "98 None 0.0 15 \n", "46 None 0.0 23 \n", "89 None 0.0 16 \n", "88 None 0.0 17 \n", "79 None 0.0 17 \n", "72 None 0.0 18 \n", "69 None 0.0 18 \n", "35 None 0.0 26 \n", "55 None 0.0 21 \n", "99 None 0.0 15 \n", "\n", " tracks lengths \\\n", "0 Jamie xx - Loud Places 09:02:25 \n", "2 Lusine - Operation Costs 04:10:52 \n", "3 Banks - Warm Water - Snakehips Remix 03:57:30 \n", "7 Lusine - Just a Cloud 03:46:52 \n", "6 Radiohead - Weird Fishes/ Arpeggi 03:42:36 \n", "14 Radiohead - Lotus Flower (Jacques Greene rmx) 03:41:39 \n", "33 Connan Mockasin - Forever Dolphin Love (Erol A... 03:35:48 \n", "30 Justin Timberlake - What Goes Around.../...Com... 03:22:03 \n", "4 Kings of Convenience - Rule My World 03:10:30 \n", "27 The xx - On Hold (Jamie xx Remix) 02:53:08 \n", "1 Washed Out - Feel It All Around 02:52:48 \n", "11 Bonobo - Cirrus 02:51:44 \n", "5 Unknown Mortal Orchestra - So Good at Being in... 02:45:33 \n", "16 The Album Leaf - False Dawn 02:40:30 \n", "13 Interpol - Rest My Chemistry 02:40:00 \n", "17 Nicola Cruz - LA COSECHA 02:37:30 \n", "10 Fleet Foxes - Mykonos 02:35:50 \n", "9 Washed Out - It All Feels Right 02:31:05 \n", "8 The xx - On Hold 02:25:36 \n", "29 El Ten Eleven - My Only Swerving 02:21:18 \n", "54 Hot Chip - Crap Kraft Dinner 02:17:54 \n", "38 Childish Gambino - Redbone 02:16:15 \n", "48 Moderat - A New Error 02:13:28 \n", "18 Kelpe - Beaks of Eagles - Original Mix 02:11:57 \n", "15 Toro y Moi - Rose Quartz 02:10:43 \n", "32 Sylvan Esso - Coffee 02:01:46 \n", "20 Radiohead - Jigsaw Falling Into Place 02:00:21 \n", "12 Tennis - My Better Self 01:59:28 \n", "31 Shigeto - Ann Arbor, Part 3 & 4 01:53:06 \n", "53 Courtney Barnett - Avant Gardener 01:49:12 \n", ".. ... ... \n", "34 The xx - Islands 01:09:46 \n", "43 Arctic Monkeys - Fluorescent Adolescent 01:07:51 \n", "64 Metronomy - Everything Goes My Way 01:06:30 \n", "95 Kings of Convenience - The Build Up 01:05:20 \n", "66 SBTRKT - Hold On (feat. Sampha) 01:05:14 \n", "94 Keane - Nothing in My Way 01:04:00 \n", "81 The American Dollar - Lost Symphony 01:03:45 \n", "92 Kings of Convenience - Know-How 01:02:24 \n", "73 Tennis - Origins 01:02:24 \n", "45 Salvia Palth - I Was All Over Her 01:01:43 \n", "67 Feist - 1234 00:55:12 \n", "75 Tennis - Traveling 00:54:18 \n", "70 The xx - Fiction 00:52:48 \n", "78 King Krule - Border Line 00:52:42 \n", "71 These City Lights - Houston 00:50:06 \n", "93 Chrome Sparks - Marijuana 00:46:24 \n", "62 Tennis - Tell Her No 00:43:20 \n", "80 Adriana Figueroa - It's Over, Isn't It (Steven... 00:41:05 \n", "96 Aperture Science Psychoacoustics Laboratory - ... 00:37:36 \n", "91 Wolfgang Amadeus Mozart - Die Zauberflöte, K.6... 00:00:00 \n", "98 The Dave Brubeck Quartet - Bossa Nova U.S.A. -... 00:00:00 \n", "46 Villagers - Nothing Arrived - Live from Spotif... 00:00:00 \n", "89 Gorillaz - Andromeda (feat. D.R.A.M.) 00:00:00 \n", "88 Sebastián Codex - Weird Fishes/Arpeggi 00:00:00 \n", "79 Johann Sebastian Bach - Concerto n°5 en Ré maj... 00:00:00 \n", "72 Steve Reich - Music for 18 Musicians (modular ... 00:00:00 \n", "69 Gorillaz - Empire Ants (feat. Little Dragon) 00:00:00 \n", "35 Ellen Allien - Leave Me Alone 00:00:00 \n", "55 Sia - Elastic Heart - Piano Version 00:00:00 \n", "99 Antonio Vivaldi - Concerto in C Minor, RV 199 ... 00:00:00 \n", "\n", " seconds_lengths \n", "0 32545.0 \n", "2 15052.0 \n", "3 14250.0 \n", "7 13612.0 \n", "6 13356.0 \n", "14 13299.0 \n", "33 12948.0 \n", "30 12123.0 \n", "4 11430.0 \n", "27 10388.0 \n", "1 10368.0 \n", "11 10304.0 \n", "5 9933.0 \n", "16 9630.0 \n", "13 9600.0 \n", "17 9450.0 \n", "10 9350.0 \n", "9 9065.0 \n", "8 8736.0 \n", "29 8478.0 \n", "54 8274.0 \n", "38 8175.0 \n", "48 8008.0 \n", "18 7917.0 \n", "15 7843.0 \n", "32 7306.0 \n", "20 7221.0 \n", "12 7168.0 \n", "31 6786.0 \n", "53 6552.0 \n", ".. ... \n", "34 4186.0 \n", "43 4071.0 \n", "64 3990.0 \n", "95 3920.0 \n", "66 3914.0 \n", "94 3840.0 \n", "81 3825.0 \n", "92 3744.0 \n", "73 3744.0 \n", "45 3703.0 \n", "67 3312.0 \n", "75 3258.0 \n", "70 3168.0 \n", "78 3162.0 \n", "71 3006.0 \n", "93 2784.0 \n", "62 2600.0 \n", "80 2465.0 \n", "96 2256.0 \n", "91 0.0 \n", "98 0.0 \n", "46 0.0 \n", "89 0.0 \n", "88 0.0 \n", "79 0.0 \n", "72 0.0 \n", "69 0.0 \n", "35 0.0 \n", "55 0.0 \n", "99 0.0 \n", "\n", "[100 rows x 6 columns]" ] }, "execution_count": 127, "metadata": {}, "output_type": "execute_result" } ], "source": [ "(fave_tracks.sort_values \"lengths\" :ascending False)\n", ";(.head fave_tracks 40)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "(matplotlib.pyplot.show (.plot (fave_tracks.sort_values \"lengths\" :ascending False) :type \"barh\"))" ] }, { "cell_type": "code", "execution_count": 128, "metadata": {}, "outputs": [], "source": [ "(setv timed_tracks (.head (fave_tracks.sort_values \"lengths\" :ascending False) 30))" ] }, { "cell_type": "code", "execution_count": 129, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
mbidsong_lengthtimestrackslengthsseconds_lengths
0None283.0115Jamie xx - Loud Places09:02:2532545.0
2None284.053Lusine - Operation Costs04:10:5215052.0
3None285.050Banks - Warm Water - Snakehips Remix03:57:3014250.0
7None332.041Lusine - Just a Cloud03:46:5213612.0
6None318.042Radiohead - Weird Fishes/ Arpeggi03:42:3613356.0
14None429.031Radiohead - Lotus Flower (Jacques Greene rmx)03:41:3913299.0
332245f062-f3fa-4a8c-a2dd-d6b477bf5cd2498.026Connan Mockasin - Forever Dolphin Love (Erol A...03:35:4812948.0
30None449.027Justin Timberlake - What Goes Around.../...Com...03:22:0312123.0
42df91ca8-3b94-495a-8d5d-35f3b53871f0254.045Kings of Convenience - Rule My World03:10:3011430.0
27None371.028The xx - On Hold (Jamie xx Remix)02:53:0810388.0
1983f22ca-5d35-4763-a7a6-0c0eadfbd192192.054Washed Out - Feel It All Around02:52:4810368.0
11b0bbf192-1724-4808-9254-8e95982de3d3322.032Bonobo - Cirrus02:51:4410304.0
58acbf005-4ef6-44b0-b46f-b026c0da12e9231.043Unknown Mortal Orchestra - So Good at Being in...02:45:339933.0
16None321.030The Album Leaf - False Dawn02:40:309630.0
1356228aad-af59-4f26-9e20-34b30a529312300.032Interpol - Rest My Chemistry02:40:009600.0
17None315.030Nicola Cruz - LA COSECHA02:37:309450.0
1011d92c40-ba2a-4640-9654-63c128e4a446275.034Fleet Foxes - Mykonos02:35:509350.0
9a1d56aad-ccdc-4916-ae08-6e0a093fd32d245.037Washed Out - It All Feels Right02:31:059065.0
8None224.039The xx - On Hold02:25:368736.0
2948a2d37b-3c53-4526-a8a7-8fc9475ba3a2314.027El Ten Eleven - My Only Swerving02:21:188478.0
54e59f6c04-d498-47f5-9dab-517c346bb8f2394.021Hot Chip - Crap Kraft Dinner02:17:548274.0
38None327.025Childish Gambino - Redbone02:16:158175.0
485d2ce680-b68e-4528-abde-5122ff045003364.022Moderat - A New Error02:13:288008.0
18None273.029Kelpe - Beaks of Eagles - Original Mix02:11:577917.0
1529290563-aed2-4dd0-9a70-cb43d451b177253.031Toro y Moi - Rose Quartz02:10:437843.0
32634ca556-3a3a-49a0-9fa4-f3b708db0bdb281.026Sylvan Esso - Coffee02:01:467306.0
2031600df4-e6dd-48ca-9f6b-8804027d8d6e249.029Radiohead - Jigsaw Falling Into Place02:00:217221.0
12698779fe-45fc-42e5-992c-3ff346a90614224.032Tennis - My Better Self01:59:287168.0
311b472b5d-2293-4f51-824d-ca575a1407d9261.026Shigeto - Ann Arbor, Part 3 & 401:53:066786.0
53eaf19b05-fada-4ae8-9f20-e06b7484be4c312.021Courtney Barnett - Avant Gardener01:49:126552.0
\n", "
" ], "text/plain": [ " mbid song_length times \\\n", "0 None 283.0 115 \n", "2 None 284.0 53 \n", "3 None 285.0 50 \n", "7 None 332.0 41 \n", "6 None 318.0 42 \n", "14 None 429.0 31 \n", "33 2245f062-f3fa-4a8c-a2dd-d6b477bf5cd2 498.0 26 \n", "30 None 449.0 27 \n", "4 2df91ca8-3b94-495a-8d5d-35f3b53871f0 254.0 45 \n", "27 None 371.0 28 \n", "1 983f22ca-5d35-4763-a7a6-0c0eadfbd192 192.0 54 \n", "11 b0bbf192-1724-4808-9254-8e95982de3d3 322.0 32 \n", "5 8acbf005-4ef6-44b0-b46f-b026c0da12e9 231.0 43 \n", "16 None 321.0 30 \n", "13 56228aad-af59-4f26-9e20-34b30a529312 300.0 32 \n", "17 None 315.0 30 \n", "10 11d92c40-ba2a-4640-9654-63c128e4a446 275.0 34 \n", "9 a1d56aad-ccdc-4916-ae08-6e0a093fd32d 245.0 37 \n", "8 None 224.0 39 \n", "29 48a2d37b-3c53-4526-a8a7-8fc9475ba3a2 314.0 27 \n", "54 e59f6c04-d498-47f5-9dab-517c346bb8f2 394.0 21 \n", "38 None 327.0 25 \n", "48 5d2ce680-b68e-4528-abde-5122ff045003 364.0 22 \n", "18 None 273.0 29 \n", "15 29290563-aed2-4dd0-9a70-cb43d451b177 253.0 31 \n", "32 634ca556-3a3a-49a0-9fa4-f3b708db0bdb 281.0 26 \n", "20 31600df4-e6dd-48ca-9f6b-8804027d8d6e 249.0 29 \n", "12 698779fe-45fc-42e5-992c-3ff346a90614 224.0 32 \n", "31 1b472b5d-2293-4f51-824d-ca575a1407d9 261.0 26 \n", "53 eaf19b05-fada-4ae8-9f20-e06b7484be4c 312.0 21 \n", "\n", " tracks lengths \\\n", "0 Jamie xx - Loud Places 09:02:25 \n", "2 Lusine - Operation Costs 04:10:52 \n", "3 Banks - Warm Water - Snakehips Remix 03:57:30 \n", "7 Lusine - Just a Cloud 03:46:52 \n", "6 Radiohead - Weird Fishes/ Arpeggi 03:42:36 \n", "14 Radiohead - Lotus Flower (Jacques Greene rmx) 03:41:39 \n", "33 Connan Mockasin - Forever Dolphin Love (Erol A... 03:35:48 \n", "30 Justin Timberlake - What Goes Around.../...Com... 03:22:03 \n", "4 Kings of Convenience - Rule My World 03:10:30 \n", "27 The xx - On Hold (Jamie xx Remix) 02:53:08 \n", "1 Washed Out - Feel It All Around 02:52:48 \n", "11 Bonobo - Cirrus 02:51:44 \n", "5 Unknown Mortal Orchestra - So Good at Being in... 02:45:33 \n", "16 The Album Leaf - False Dawn 02:40:30 \n", "13 Interpol - Rest My Chemistry 02:40:00 \n", "17 Nicola Cruz - LA COSECHA 02:37:30 \n", "10 Fleet Foxes - Mykonos 02:35:50 \n", "9 Washed Out - It All Feels Right 02:31:05 \n", "8 The xx - On Hold 02:25:36 \n", "29 El Ten Eleven - My Only Swerving 02:21:18 \n", "54 Hot Chip - Crap Kraft Dinner 02:17:54 \n", "38 Childish Gambino - Redbone 02:16:15 \n", "48 Moderat - A New Error 02:13:28 \n", "18 Kelpe - Beaks of Eagles - Original Mix 02:11:57 \n", "15 Toro y Moi - Rose Quartz 02:10:43 \n", "32 Sylvan Esso - Coffee 02:01:46 \n", "20 Radiohead - Jigsaw Falling Into Place 02:00:21 \n", "12 Tennis - My Better Self 01:59:28 \n", "31 Shigeto - Ann Arbor, Part 3 & 4 01:53:06 \n", "53 Courtney Barnett - Avant Gardener 01:49:12 \n", "\n", " seconds_lengths \n", "0 32545.0 \n", "2 15052.0 \n", "3 14250.0 \n", "7 13612.0 \n", "6 13356.0 \n", "14 13299.0 \n", "33 12948.0 \n", "30 12123.0 \n", "4 11430.0 \n", "27 10388.0 \n", "1 10368.0 \n", "11 10304.0 \n", "5 9933.0 \n", "16 9630.0 \n", "13 9600.0 \n", "17 9450.0 \n", "10 9350.0 \n", "9 9065.0 \n", "8 8736.0 \n", "29 8478.0 \n", "54 8274.0 \n", "38 8175.0 \n", "48 8008.0 \n", "18 7917.0 \n", "15 7843.0 \n", "32 7306.0 \n", "20 7221.0 \n", "12 7168.0 \n", "31 6786.0 \n", "53 6552.0 " ] }, "execution_count": 129, "metadata": {}, "output_type": "execute_result" } ], "source": [ "timed_tracks" ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [], "source": [ "(seaborn.set_context \"poster\")" ] }, { "cell_type": "code", "execution_count": 142, "metadata": {}, "outputs": [], "source": [ "(matplotlib.pyplot.show (timed_tracks.plot \n", " :kind \"bar\" \n", " :x \"tracks\" \n", " :y '(\"seconds_lengths\" \"times\") \n", " :secondary_y \"times\" \n", " :figsize '(10 4) ))" ] }, { "cell_type": "code", "execution_count": 141, "metadata": {}, "outputs": [], "source": [ "(matplotlib.pyplot.show ( seaborn.jointplot\n", " :data timed_tracks\n", " :y \"song_length\" \n", " :x \"times\"\n", " :space 0))" ] }, { "cell_type": "code", "execution_count": 137, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "\u001b[0;31mTraceback (most recent call last):\n", " File \"/home/tian/utz/playlisp/venv/lib/python3.6/site-packages/calysto_hy/kernel.py\", line 98, in do_execute_direct\n", " eval(code, self.env)\n", " File \"In [137]\", line 6, in \n", "AttributeError: 'JointGrid' object has no attribute 'join'\n", "\n", "\u001b[0m" ] } ], "source": [ "(matplotlib.pyplot.show (.join (\n", " seaborn.jointplot\n", " :data timed_tracks\n", " :y \"song_length\" \n", " :x \"times\"\n", " :space 0)\n", " \n", " (seaborn.kdeplot :data fave_tracks :zorder 0 :n_levels 6) \n", " ))" ] }, { "cell_type": "code", "execution_count": 133, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Help on class JointGrid in module seaborn.axisgrid:\n", "\n", "class JointGrid(builtins.object)\n", " | Grid for drawing a bivariate plot with marginal univariate plots.\n", " | \n", " | Methods defined here:\n", " | \n", " | __init__(self, x, y, data=None, size=6, ratio=5, space=0.2, dropna=True, xlim=None, ylim=None)\n", " | Set up the grid of subplots.\n", " | \n", " | Parameters\n", " | ----------\n", " | x, y : strings or vectors\n", " | Data or names of variables in ``data``.\n", " | data : DataFrame, optional\n", " | DataFrame when ``x`` and ``y`` are variable names.\n", " | size : numeric\n", " | Size of each side of the figure in inches (it will be square).\n", " | ratio : numeric\n", " | Ratio of joint axes size to marginal axes height.\n", " | space : numeric, optional\n", " | Space between the joint and marginal axes\n", " | dropna : bool, optional\n", " | If True, remove observations that are missing from `x` and `y`.\n", " | {x, y}lim : two-tuples, optional\n", " | Axis limits to set before plotting.\n", " | \n", " | See Also\n", " | --------\n", " | jointplot : High-level interface for drawing bivariate plots with\n", " | several different default plot kinds.\n", " | \n", " | Examples\n", " | --------\n", " | \n", " | Initialize the figure but don't draw any plots onto it:\n", " | \n", " | .. plot::\n", " | :context: close-figs\n", " | \n", " | >>> import seaborn as sns; sns.set(style=\"ticks\", color_codes=True)\n", " | >>> tips = sns.load_dataset(\"tips\")\n", " | >>> g = sns.JointGrid(x=\"total_bill\", y=\"tip\", data=tips)\n", " | \n", " | Add plots using default parameters:\n", " | \n", " | .. plot::\n", " | :context: close-figs\n", " | \n", " | >>> g = sns.JointGrid(x=\"total_bill\", y=\"tip\", data=tips)\n", " | >>> g = g.plot(sns.regplot, sns.distplot)\n", " | \n", " | Draw the join and marginal plots separately, which allows finer-level\n", " | control other parameters:\n", " | \n", " | .. plot::\n", " | :context: close-figs\n", " | \n", " | >>> import matplotlib.pyplot as plt\n", " | >>> g = sns.JointGrid(x=\"total_bill\", y=\"tip\", data=tips)\n", " | >>> g = g.plot_joint(plt.scatter, color=\".5\", edgecolor=\"white\")\n", " | >>> g = g.plot_marginals(sns.distplot, kde=False, color=\".5\")\n", " | \n", " | Draw the two marginal plots separately:\n", " | \n", " | .. plot::\n", " | :context: close-figs\n", " | \n", " | >>> import numpy as np\n", " | >>> g = sns.JointGrid(x=\"total_bill\", y=\"tip\", data=tips)\n", " | >>> g = g.plot_joint(plt.scatter, color=\"m\", edgecolor=\"white\")\n", " | >>> _ = g.ax_marg_x.hist(tips[\"total_bill\"], color=\"b\", alpha=.6,\n", " | ... bins=np.arange(0, 60, 5))\n", " | >>> _ = g.ax_marg_y.hist(tips[\"tip\"], color=\"r\", alpha=.6,\n", " | ... orientation=\"horizontal\",\n", " | ... bins=np.arange(0, 12, 1))\n", " | \n", " | Add an annotation with a statistic summarizing the bivariate\n", " | relationship:\n", " | \n", " | .. plot::\n", " | :context: close-figs\n", " | \n", " | >>> from scipy import stats\n", " | >>> g = sns.JointGrid(x=\"total_bill\", y=\"tip\", data=tips)\n", " | >>> g = g.plot_joint(plt.scatter,\n", " | ... color=\"g\", s=40, edgecolor=\"white\")\n", " | >>> g = g.plot_marginals(sns.distplot, kde=False, color=\"g\")\n", " | >>> g = g.annotate(stats.pearsonr)\n", " | \n", " | Use a custom function and formatting for the annotation\n", " | \n", " | .. plot::\n", " | :context: close-figs\n", " | \n", " | >>> g = sns.JointGrid(x=\"total_bill\", y=\"tip\", data=tips)\n", " | >>> g = g.plot_joint(plt.scatter,\n", " | ... color=\"g\", s=40, edgecolor=\"white\")\n", " | >>> g = g.plot_marginals(sns.distplot, kde=False, color=\"g\")\n", " | >>> rsquare = lambda a, b: stats.pearsonr(a, b)[0] ** 2\n", " | >>> g = g.annotate(rsquare, template=\"{stat}: {val:.2f}\",\n", " | ... stat=\"$R^2$\", loc=\"upper left\", fontsize=12)\n", " | \n", " | Remove the space between the joint and marginal axes:\n", " | \n", " | .. plot::\n", " | :context: close-figs\n", " | \n", " | >>> g = sns.JointGrid(x=\"total_bill\", y=\"tip\", data=tips, space=0)\n", " | >>> g = g.plot_joint(sns.kdeplot, cmap=\"Blues_d\")\n", " | >>> g = g.plot_marginals(sns.kdeplot, shade=True)\n", " | \n", " | Draw a smaller plot with relatively larger marginal axes:\n", " | \n", " | .. plot::\n", " | :context: close-figs\n", " | \n", " | >>> g = sns.JointGrid(x=\"total_bill\", y=\"tip\", data=tips,\n", " | ... size=5, ratio=2)\n", " | >>> g = g.plot_joint(sns.kdeplot, cmap=\"Reds_d\")\n", " | >>> g = g.plot_marginals(sns.kdeplot, color=\"r\", shade=True)\n", " | \n", " | Set limits on the axes:\n", " | \n", " | .. plot::\n", " | :context: close-figs\n", " | \n", " | >>> g = sns.JointGrid(x=\"total_bill\", y=\"tip\", data=tips,\n", " | ... xlim=(0, 50), ylim=(0, 8))\n", " | >>> g = g.plot_joint(sns.kdeplot, cmap=\"Purples_d\")\n", " | >>> g = g.plot_marginals(sns.kdeplot, color=\"m\", shade=True)\n", " | \n", " | annotate(self, func, template=None, stat=None, loc='best', **kwargs)\n", " | Annotate the plot with a statistic about the relationship.\n", " | \n", " | Parameters\n", " | ----------\n", " | func : callable\n", " | Statistical function that maps the x, y vectors either to (val, p)\n", " | or to val.\n", " | template : string format template, optional\n", " | The template must have the format keys \"stat\" and \"val\";\n", " | if `func` returns a p value, it should also have the key \"p\".\n", " | stat : string, optional\n", " | Name to use for the statistic in the annotation, by default it\n", " | uses the name of `func`.\n", " | loc : string or int, optional\n", " | Matplotlib legend location code; used to place the annotation.\n", " | kwargs : key, value mappings\n", " | Other keyword arguments are passed to `ax.legend`, which formats\n", " | the annotation.\n", " | \n", " | Returns\n", " | -------\n", " | self : JointGrid instance.\n", " | Returns `self`.\n", " | \n", " | plot(self, joint_func, marginal_func, annot_func=None)\n", " | Shortcut to draw the full plot.\n", " | \n", " | Use `plot_joint` and `plot_marginals` directly for more control.\n", " | \n", " | Parameters\n", " | ----------\n", " | joint_func, marginal_func: callables\n", " | Functions to draw the bivariate and univariate plots.\n", " | \n", " | Returns\n", " | -------\n", " | self : JointGrid instance\n", " | Returns `self`.\n", " | \n", " | plot_joint(self, func, **kwargs)\n", " | Draw a bivariate plot of `x` and `y`.\n", " | \n", " | Parameters\n", " | ----------\n", " | func : plotting callable\n", " | This must take two 1d arrays of data as the first two\n", " | positional arguments, and it must plot on the \"current\" axes.\n", " | kwargs : key, value mappings\n", " | Keyword argument are passed to the plotting function.\n", " | \n", " | Returns\n", " | -------\n", " | self : JointGrid instance\n", " | Returns `self`.\n", " | \n", " | plot_marginals(self, func, **kwargs)\n", " | Draw univariate plots for `x` and `y` separately.\n", " | \n", " | Parameters\n", " | ----------\n", " | func : plotting callable\n", " | This must take a 1d array of data as the first positional\n", " | argument, it must plot on the \"current\" axes, and it must\n", " | accept a \"vertical\" keyword argument to orient the measure\n", " | dimension of the plot vertically.\n", " | kwargs : key, value mappings\n", " | Keyword argument are passed to the plotting function.\n", " | \n", " | Returns\n", " | -------\n", " | self : JointGrid instance\n", " | Returns `self`.\n", " | \n", " | savefig(self, *args, **kwargs)\n", " | Wrap figure.savefig defaulting to tight bounding box.\n", " | \n", " | set_axis_labels(self, xlabel='', ylabel='', **kwargs)\n", " | Set the axis labels on the bivariate axes.\n", " | \n", " | Parameters\n", " | ----------\n", " | xlabel, ylabel : strings\n", " | Label names for the x and y variables.\n", " | kwargs : key, value mappings\n", " | Other keyword arguments are passed to the set_xlabel or\n", " | set_ylabel.\n", " | \n", " | Returns\n", " | -------\n", " | self : JointGrid instance\n", " | returns `self`\n", " | \n", " | ----------------------------------------------------------------------\n", " | Data descriptors defined here:\n", " | \n", " | __dict__\n", " | dictionary for instance variables (if defined)\n", " | \n", " | __weakref__\n", " | list of weak references to the object (if defined)\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "\n" ] } ], "source": [ "(help seaborn.JointGrid)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Calysto Hy", "language": "hy", "name": "calysto_hy" }, "language_info": { "codemirror_mode": { "name": "scheme" }, "mimetype": "text/x-hylang", "name": "hy", "pygments_lexer": "lisp" } }, "nbformat": 4, "nbformat_minor": 2 }