{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Battle of the Bands: Data gathering\n", "\n", "This is a replication of the [fitteR happieR](http://rcharlie.com/2017-02-16-fitteR-happieR/) post which attempted to find the most depressing Radiohead song.\n", "\n", "I've redone it here, using tools available in TM351.\n", "\n", "I'm also on a bit of a Beatles jag, so I've also done the analysis for The Beatles and The Rolling Stones.\n", "\n", "## Contents\n", "\n", "* [Getting data from Spotify](#getspotify)\n", "* [Tag album with artist](#tagalbumwithartist)\n", "* [Tag track with artist](#tagtrackwithartist)\n", "* [Get full track data](#fulltrackdata)\n", "* [Lyrics search](#lyricssearch)\n", "* [Matching datasets](#matchingdatasets)\n", "* [Copy the lyrics over](#copylyrics)\n", "* [Sentiment analysis](#sentimentanalysis)\n", "* [Remove live and duplicate tracks](#removedupliates)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "run_control": { "read_only": false } }, "outputs": [], "source": [ "import pandas as pd\n", "import numpy as np\n", "import matplotlib\n", "import matplotlib.pyplot as plt\n", "%matplotlib inline \n", "import urllib.request\n", "import urllib.parse\n", "import urllib.error\n", "import json\n", "import base64\n", "import configparser\n", "from bs4 import BeautifulSoup\n", "import re\n", "import pymongo\n", "from datetime import datetime\n", "import time\n", "import collections" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We'll use MongoDB to store the data, to save keeping it all in memory, and mean we don't have to recapture all the data to to a different analysis." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "# Open a connection to the Mongo server\n", "client = pymongo.MongoClient('mongodb://localhost:27017/')" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "# try:\n", "# client.drop_database(songs_db)\n", "# except NameError:\n", "# print(\"DB doesn't exist yet.\")" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "# Create a database and a collections within it.\n", "songs_db = client.songs\n", "albums = songs_db.albums\n", "tracks = songs_db.tracks\n", "genius_tracks = songs_db.gtracks" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "API keys and the like are kept in a configuration file, which is read here.\n", "\n", "You'll need to create a web API key for Spotify and Genius. " ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "['app_name', 'client_id', 'client_secret', 'redirect_uri', 'token']" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "config = configparser.ConfigParser()\n", "config.read('secrets.ini')\n", "[k for k in config['genius']]" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [], "source": [ "## How to write the config file. Fill in the details, and create a different config section for Spotify.\n", "# config['genius'] = {}\n", "# config['genius']['app_name'] = 'xxx'\n", "# config['genius']['client_id'] = 'xxx'\n", "# config['genius']['client_secret'] = 'xxx'\n", "# config['genius']['token'] = 'xxx'\n", "# with open('secrets.ini', 'w') as configfile:\n", "# config.write(configfile)" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [], "source": [ "stones_id = '22bE4uQ6baNwSHPVcDxLCe'\n", "beatles_id = '3WrFJ7ztbogyGnTHbHJFl2'\n", "radiohead_id = '4Z8W4fKeB5YxbusRsdQVPb'" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Get album and track data from Spotify\n", "We'll download the data on artists, albums, and tracks from Spotify.\n", "\n", "* [Top](#top)" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [], "source": [ "def get_spotify_auth_token():\n", " auth_url = 'https://accounts.spotify.com/api/token'\n", " auth_data = urllib.parse.urlencode({'grant_type': 'client_credentials'}).encode('utf-8')\n", " auth_id = base64.standard_b64encode((config['spotify']['client_id'] + \\\n", " ':' + config['spotify']['client_secret']).encode('utf-8')).decode('utf-8)')\n", " auth_headers = {'Authorization': 'Basic ' + auth_id}\n", " auth_request = urllib.request.Request(auth_url, data=auth_data, headers=auth_headers)\n", " with urllib.request.urlopen(auth_request) as f:\n", " response = json.loads(f.read().decode('utf-8'))\n", " return response['token_type'], response['access_token']" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "a_type, a_token = get_spotify_auth_token()" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [], "source": [ "def get_artists(artist_name, auth_type, auth_token):\n", " headers = {'Authorization': auth_type + ' ' + auth_token}\n", " query = urllib.parse.urlencode({'q': artist_name, 'type': 'artist'})\n", " url = 'https://api.spotify.com/v1/search?{}'.format(query)\n", " request = urllib.request.Request(url, headers=headers, method='GET')\n", "\n", " with urllib.request.urlopen(request) as f:\n", " response = json.loads(f.read().decode('utf-8'))\n", " artists = []\n", " for artist in response['artists']['items']:\n", " if artist['name'].lower() == artist_name.lower():\n", " this_artist = {'name': artist['name'], 'id': artist['id']}\n", " if artist['images']:\n", " this_artist['image'] = artist['images'][0]['url']\n", " artists += [this_artist]\n", " return artists" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "('22bE4uQ6baNwSHPVcDxLCe',\n", " [{'id': '22bE4uQ6baNwSHPVcDxLCe',\n", " 'image': 'https://i.scdn.co/image/b6b925d5b9f0b5fed8ad52ff887d7351bc7e26c7',\n", " 'name': 'The Rolling Stones'}])" ] }, "execution_count": 11, "metadata": {}, "output_type": "execute_result" } ], "source": [ "artists = get_artists('the rolling stones', a_type, a_token)\n", "stones_id = artists[0]['id']\n", "stones_id, artists" ] }, { "cell_type": "code", "execution_count": 12, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "('3WrFJ7ztbogyGnTHbHJFl2',\n", " [{'id': '3WrFJ7ztbogyGnTHbHJFl2',\n", " 'image': 'https://i.scdn.co/image/197cff807611777427c93258f0a1ccdf6b013b09',\n", " 'name': 'The Beatles'}])" ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "artists = get_artists('the beatles', a_type, a_token)\n", "beatles_id = artists[0]['id']\n", "beatles_id, artists" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "('4Z8W4fKeB5YxbusRsdQVPb',\n", " [{'id': '4Z8W4fKeB5YxbusRsdQVPb',\n", " 'image': 'https://i.scdn.co/image/afcd616e1ef2d2786f47b3b4a8a6aeea24a72adc',\n", " 'name': 'Radiohead'},\n", " {'id': '76j9XexCHSuiclvMCnPg3T', 'name': 'Radiohead'}])" ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "artists = get_artists('radiohead', a_type, a_token)\n", "radiohead_id = artists[0]['id']\n", "radiohead_id, artists" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Find all the albums for an artist." ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [], "source": [ "def get_albums(artist_id, auth_type, auth_token):\n", " headers = {'Authorization': auth_type + ' ' + auth_token}\n", " url = 'https://api.spotify.com/v1/artists/{a_id}/albums?market=GB&album_type=album'.format(a_id=artist_id)\n", " request = urllib.request.Request(url, headers=headers, method='GET')\n", "# request = 'https://api.spotify.com/v1/artists/{id}/albums?market=GB&album_type=album'.format(id=artist_id)\n", " with urllib.request.urlopen(request) as f:\n", " response = json.loads(f.read().decode('utf-8'))\n", " for a in response['items']:\n", " album_url = a['href']\n", " album_request = urllib.request.Request(album_url, headers=headers, method='GET')\n", " with urllib.request.urlopen(album_request) as af:\n", " album = json.loads(af.read().decode('utf-8'))\n", " album['_id'] = album['id']\n", " albums.replace_one({'_id': album['_id']}, album, upsert=True) " ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "52" ] }, "execution_count": 30, "metadata": {}, "output_type": "execute_result" } ], "source": [ "get_albums(beatles_id, a_type, a_token)\n", "albums.find().count()" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "62" ] }, "execution_count": 31, "metadata": {}, "output_type": "execute_result" } ], "source": [ "get_albums(stones_id, a_type, a_token)\n", "albums.find().count()" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "62" ] }, "execution_count": 31, "metadata": {}, "output_type": "execute_result" } ], "source": [ "get_albums(radiohead_id, a_type, a_token)\n", "albums.find().count()" ] }, { "cell_type": "code", "execution_count": 32, "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", "
01234
_id5XfJmldgWzrc1AIdbBaVZn5ju5Ouzan3QwXqQt1Tihbh2pCqZLeavM2BMovJXsJEIV2Pqkn9Dq2DFtdfkKAeqgMd47bcKzmKgmMPHXNVOWpLiu
album_typealbumalbumalbumalbumalbum
artist_idNaNNaNNaNNaNNaN
artist_nameNaNNaNNaNNaNNaN
artists[{'href': 'https://api.spotify.com/v1/artists/...[{'href': 'https://api.spotify.com/v1/artists/...[{'href': 'https://api.spotify.com/v1/artists/...[{'href': 'https://api.spotify.com/v1/artists/...[{'href': 'https://api.spotify.com/v1/artists/...
available_markets[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...
copyrights[{'type': 'C', 'text': '© 2016 Apple Corps Ltd...[{'type': 'C', 'text': '© 2015 Apple Corps Ltd...[{'type': 'C', 'text': '© 2015 Apple Corps Ltd...[{'type': 'C', 'text': '© 2015 Apple Corps Ltd...[{'type': 'C', 'text': '© 2015 Apple Corps Ltd...
external_ids{'upc': '00602557054989'}{'upc': '00602547673503'}{'upc': '00602547670069'}{'upc': '00602547670342'}{'upc': '00602547670328'}
external_urls{'spotify': 'https://open.spotify.com/album/5X...{'spotify': 'https://open.spotify.com/album/5j...{'spotify': 'https://open.spotify.com/album/2p...{'spotify': 'https://open.spotify.com/album/2P...{'spotify': 'https://open.spotify.com/album/47...
genres[][][][][]
hrefhttps://api.spotify.com/v1/albums/5XfJmldgWzrc...https://api.spotify.com/v1/albums/5ju5Ouzan3Qw...https://api.spotify.com/v1/albums/2pCqZLeavM2B...https://api.spotify.com/v1/albums/2Pqkn9Dq2DFt...https://api.spotify.com/v1/albums/47bcKzmKgmMP...
id5XfJmldgWzrc1AIdbBaVZn5ju5Ouzan3QwXqQt1Tihbh2pCqZLeavM2BMovJXsJEIV2Pqkn9Dq2DFtdfkKAeqgMd47bcKzmKgmMPHXNVOWpLiu
images[{'url': 'https://i.scdn.co/image/1b1879c1dd16...[{'url': 'https://i.scdn.co/image/4e6916b16ce5...[{'url': 'https://i.scdn.co/image/809c6f28db64...[{'url': 'https://i.scdn.co/image/9cab76ad73ce...[{'url': 'https://i.scdn.co/image/411d661890b8...
labelDigital Distribution Trinidad and TobagoDigital Distribution Trinidad and TobagoEMI CatalogueEMI CatalogueEMI Catalogue
nameLive At The Hollywood Bowl1 (Remastered)Let It Be (Remastered)Abbey Road (Remastered)Yellow Submarine (Remastered)
popularity5976697657
release_date2016-09-092000-11-131970-05-081969-09-261969-01-17
release_date_precisiondaydaydaydayday
tracks{'href': 'https://api.spotify.com/v1/albums/5X...{'href': 'https://api.spotify.com/v1/albums/5j...{'href': 'https://api.spotify.com/v1/albums/2p...{'href': 'https://api.spotify.com/v1/albums/2P...{'href': 'https://api.spotify.com/v1/albums/47...
typealbumalbumalbumalbumalbum
urispotify:album:5XfJmldgWzrc1AIdbBaVZnspotify:album:5ju5Ouzan3QwXqQt1Tihbhspotify:album:2pCqZLeavM2BMovJXsJEIVspotify:album:2Pqkn9Dq2DFtdfkKAeqgMdspotify:album:47bcKzmKgmMPHXNVOWpLiu
\n", "
" ], "text/plain": [ " 0 \\\n", "_id 5XfJmldgWzrc1AIdbBaVZn \n", "album_type album \n", "artist_id NaN \n", "artist_name NaN \n", "artists [{'href': 'https://api.spotify.com/v1/artists/... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "copyrights [{'type': 'C', 'text': '© 2016 Apple Corps Ltd... \n", "external_ids {'upc': '00602557054989'} \n", "external_urls {'spotify': 'https://open.spotify.com/album/5X... \n", "genres [] \n", "href https://api.spotify.com/v1/albums/5XfJmldgWzrc... \n", "id 5XfJmldgWzrc1AIdbBaVZn \n", "images [{'url': 'https://i.scdn.co/image/1b1879c1dd16... \n", "label Digital Distribution Trinidad and Tobago \n", "name Live At The Hollywood Bowl \n", "popularity 59 \n", "release_date 2016-09-09 \n", "release_date_precision day \n", "tracks {'href': 'https://api.spotify.com/v1/albums/5X... \n", "type album \n", "uri spotify:album:5XfJmldgWzrc1AIdbBaVZn \n", "\n", " 1 \\\n", "_id 5ju5Ouzan3QwXqQt1Tihbh \n", "album_type album \n", "artist_id NaN \n", "artist_name NaN \n", "artists [{'href': 'https://api.spotify.com/v1/artists/... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "copyrights [{'type': 'C', 'text': '© 2015 Apple Corps Ltd... \n", "external_ids {'upc': '00602547673503'} \n", "external_urls {'spotify': 'https://open.spotify.com/album/5j... \n", "genres [] \n", "href https://api.spotify.com/v1/albums/5ju5Ouzan3Qw... \n", "id 5ju5Ouzan3QwXqQt1Tihbh \n", "images [{'url': 'https://i.scdn.co/image/4e6916b16ce5... \n", "label Digital Distribution Trinidad and Tobago \n", "name 1 (Remastered) \n", "popularity 76 \n", "release_date 2000-11-13 \n", "release_date_precision day \n", "tracks {'href': 'https://api.spotify.com/v1/albums/5j... \n", "type album \n", "uri spotify:album:5ju5Ouzan3QwXqQt1Tihbh \n", "\n", " 2 \\\n", "_id 2pCqZLeavM2BMovJXsJEIV \n", "album_type album \n", "artist_id NaN \n", "artist_name NaN \n", "artists [{'href': 'https://api.spotify.com/v1/artists/... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "copyrights [{'type': 'C', 'text': '© 2015 Apple Corps Ltd... \n", "external_ids {'upc': '00602547670069'} \n", "external_urls {'spotify': 'https://open.spotify.com/album/2p... \n", "genres [] \n", "href https://api.spotify.com/v1/albums/2pCqZLeavM2B... \n", "id 2pCqZLeavM2BMovJXsJEIV \n", "images [{'url': 'https://i.scdn.co/image/809c6f28db64... \n", "label EMI Catalogue \n", "name Let It Be (Remastered) \n", "popularity 69 \n", "release_date 1970-05-08 \n", "release_date_precision day \n", "tracks {'href': 'https://api.spotify.com/v1/albums/2p... \n", "type album \n", "uri spotify:album:2pCqZLeavM2BMovJXsJEIV \n", "\n", " 3 \\\n", "_id 2Pqkn9Dq2DFtdfkKAeqgMd \n", "album_type album \n", "artist_id NaN \n", "artist_name NaN \n", "artists [{'href': 'https://api.spotify.com/v1/artists/... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "copyrights [{'type': 'C', 'text': '© 2015 Apple Corps Ltd... \n", "external_ids {'upc': '00602547670342'} \n", "external_urls {'spotify': 'https://open.spotify.com/album/2P... \n", "genres [] \n", "href https://api.spotify.com/v1/albums/2Pqkn9Dq2DFt... \n", "id 2Pqkn9Dq2DFtdfkKAeqgMd \n", "images [{'url': 'https://i.scdn.co/image/9cab76ad73ce... \n", "label EMI Catalogue \n", "name Abbey Road (Remastered) \n", "popularity 76 \n", "release_date 1969-09-26 \n", "release_date_precision day \n", "tracks {'href': 'https://api.spotify.com/v1/albums/2P... \n", "type album \n", "uri spotify:album:2Pqkn9Dq2DFtdfkKAeqgMd \n", "\n", " 4 \n", "_id 47bcKzmKgmMPHXNVOWpLiu \n", "album_type album \n", "artist_id NaN \n", "artist_name NaN \n", "artists [{'href': 'https://api.spotify.com/v1/artists/... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "copyrights [{'type': 'C', 'text': '© 2015 Apple Corps Ltd... \n", "external_ids {'upc': '00602547670328'} \n", "external_urls {'spotify': 'https://open.spotify.com/album/47... \n", "genres [] \n", "href https://api.spotify.com/v1/albums/47bcKzmKgmMP... \n", "id 47bcKzmKgmMPHXNVOWpLiu \n", "images [{'url': 'https://i.scdn.co/image/411d661890b8... \n", "label EMI Catalogue \n", "name Yellow Submarine (Remastered) \n", "popularity 57 \n", "release_date 1969-01-17 \n", "release_date_precision day \n", "tracks {'href': 'https://api.spotify.com/v1/albums/47... \n", "type album \n", "uri spotify:album:47bcKzmKgmMPHXNVOWpLiu " ] }, "execution_count": 32, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list(albums.find())).head().T" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Tag albums with artists\n", "As we have tracks for two artists, let's keep the identification easy and insert the artist name and id into each track document.\n", "\n", "* [Top](#top)" ] }, { "cell_type": "code", "execution_count": 33, "metadata": {}, "outputs": [], "source": [ "for a in albums.find({}, ['artists']):\n", " albums.update_one({'_id': a['_id']}, \n", " {'$set': {'artist_name': a['artists'][0]['name'],\n", " 'artist_id': a['artists'][0]['id']}})" ] }, { "cell_type": "code", "execution_count": 34, "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", "
_idartist_namename
05XfJmldgWzrc1AIdbBaVZnThe BeatlesLive At The Hollywood Bowl
15ju5Ouzan3QwXqQt1TihbhThe Beatles1 (Remastered)
22pCqZLeavM2BMovJXsJEIVThe BeatlesLet It Be (Remastered)
32Pqkn9Dq2DFtdfkKAeqgMdThe BeatlesAbbey Road (Remastered)
447bcKzmKgmMPHXNVOWpLiuThe BeatlesYellow Submarine (Remastered)
503Qh833fEdVT30Pfs93ea6The BeatlesThe Beatles (Remastered)
66P9yO0ukhOx3dvmhGKeYoCThe BeatlesMagical Mystery Tour (Remastered)
71PULmKbHeOqlkIwcDMNwD4The BeatlesSgt. Pepper's Lonely Hearts Club Band (Remaste...
80PYyrqs9NXtxPhf0CZkq2LThe BeatlesRevolver (Remastered)
93OdI6e43crvyAHhaqpxSyzThe BeatlesRubber Soul (Remastered)
1019K3IHYeVkUTjcBHGfbCOiThe BeatlesHelp! (Remastered)
117BgGBZndAvDlKOcwe5rscZThe BeatlesBeatles For Sale (Remastered)
1271Mwd9tntFQYUk4k2DwA0DThe BeatlesA Hard Day's Night (Remastered)
131DBkJIEoeHrTX4WCBQGcCiRadioheadThe King Of Limbs
143nkEsxmIX0zRNXGAexaHAnThe BeatlesWith The Beatles (Remastered)
157gDXyW16byCQOgK965BRznThe BeatlesPlease Please Me (Remastered)
166vuykQgDLUCiZ7YggIpLM9RadioheadA Moon Shaped Pool
1747xaqCsJcYFWqD1gwujl1TRadioheadTKOL RMX 1234567
187eyQXxuf2nGj9d2367Gi5fRadioheadIn Rainbows
1936lJLPoPPOKNFddTAcirncRadioheadIn Rainbows Disk 2
206Eo5EkmdLvZrONzi046iC2RadioheadCom Lag: 2+2=5
211oW3v5Har9mvXnGk0x4fHmRadioheadHail To the Thief
226svTt5o2lUgIrgYDKVmdnDRadioheadI Might Be Wrong
236V9YnBmFjWmXCBaUVRCVXPRadioheadAmnesiac
2419RUXBFyM4PpmrLRdtqWbpRadioheadKid A
257dxKtc08dYeRVHt3p9CZJnRadioheadOK Computer
26500FEaUzn8lN9zWFyZG5C2RadioheadThe Bends
276400dnyeDyD2mIFHfkwHXNRadioheadPablo Honey
284g9Jfls8z2nbQxj5PiXkiyThe Rolling StonesBlue & Lonesome
294fhWcu56Bbh5wALuTouFVWThe Rolling StonesHavana Moon (Live)
............
323CHu7qW160uqPZHW3TMZ1lThe Rolling StonesShine A Light
334FTHynKEtuP7eppERNfjyGThe Rolling StonesA Bigger Bang (2009 Re-Mastered)
3450UGtgNA5bq1c0BDjPfmbDThe Rolling StonesLive Licks
350ZGddnvcVzHVHfE3WW1tV5The Rolling StonesBridges To Babylon (Remastered)
364M8Q1L9PZq0xK5tLUpO3jdThe Rolling StonesStripped
3762ZT16LY1phGM0O8x5qW1zThe Rolling StonesVoodoo Lounge (Remastered 2009)
381W1UJulgICjFDyYIMUwRs7The Rolling StonesFlashpoint
3925mfHGJNQkluvIqedXHSx3The Rolling StonesSteel Wheels (2009 Re-Mastered)
401TpcI1LEFVhBvDPSTMPGFGThe Rolling StonesDirty Work
411WSfNoPDPzgyKFN6OSYWUxThe Rolling StonesDirty Work (Remastered 2009)
42064eFGemsrDcMvgRZ0gqtwThe Rolling StonesUndercover (2009 Re-Mastered)
430hxrNynMDh5QeyALlf1CdSThe Rolling StonesStill Life
441YvnuYGlblQ5vLnOhaZzpnThe Rolling StonesTattoo You (2009 Re-Mastered)
452wZgoXS06wSdu9C0ZJOvlcThe Rolling StonesEmotional Rescue (2009 Re-Mastered)
4654sqbAXxR1jFfyXb1WvrHKThe Rolling StonesSome Girls
476FjXxl9VLURGuubdXUn2J3The Rolling StonesSome Girls (Deluxe Version)
484jbWZmf7kRxCBD6tgVepYhSpice GirlsForever
493sr6lAuO3nmB1u8ZuQgpiXSpice GirlsSpiceworld
503x2jF7blR6bFHtk4MccsyJSpice GirlsSpice
513LXItxKnnJcEDc5QdTc00nThe BeatlesSgt. Pepper's Lonely Hearts Club Band (Deluxe ...
527Hk1X2BCADxuR9saTIKfOWThe Rolling StonesOn Air (Deluxe)
536iCIB08bkoitQOL5y2uEsMThe Rolling StonesSticky Fingers Live At The Fonda Theatre
5434d9ClCaKRoQ8pMeJ9GfvtThe Rolling StonesLadies & Gentlemen (Live)
550aWIIpfY32rT1i3yO9LROlThe Rolling StonesTotally Stripped (Live)
565D7RtaChuvF0Av1xXT3acuThe Rolling StonesTotally Stripped - Brixton (Live)
572b3y5k1DchDACjH5KMlgQvThe Rolling StonesTotally Stripped - Amsterdam (Live)
583wkyUMDuH56iNaSxKvukaxThe Rolling StonesTotally Stripped - Paris (Live)
596hB5kO3oV3tlnblCNSSA9ZMuddy WatersLive At The Checkerboard Lounge
603yNf6JVyEEqvM4OqKEmZSCMuddy WatersLive At The Checkerboard Lounge
612gCp8kyDcL93s4kVP4VMTCThe Rolling StonesSome Girls: Live In Texas '78
\n", "

62 rows × 3 columns

\n", "
" ], "text/plain": [ " _id artist_name \\\n", "0 5XfJmldgWzrc1AIdbBaVZn The Beatles \n", "1 5ju5Ouzan3QwXqQt1Tihbh The Beatles \n", "2 2pCqZLeavM2BMovJXsJEIV The Beatles \n", "3 2Pqkn9Dq2DFtdfkKAeqgMd The Beatles \n", "4 47bcKzmKgmMPHXNVOWpLiu The Beatles \n", "5 03Qh833fEdVT30Pfs93ea6 The Beatles \n", "6 6P9yO0ukhOx3dvmhGKeYoC The Beatles \n", "7 1PULmKbHeOqlkIwcDMNwD4 The Beatles \n", "8 0PYyrqs9NXtxPhf0CZkq2L The Beatles \n", "9 3OdI6e43crvyAHhaqpxSyz The Beatles \n", "10 19K3IHYeVkUTjcBHGfbCOi The Beatles \n", "11 7BgGBZndAvDlKOcwe5rscZ The Beatles \n", "12 71Mwd9tntFQYUk4k2DwA0D The Beatles \n", "13 1DBkJIEoeHrTX4WCBQGcCi Radiohead \n", "14 3nkEsxmIX0zRNXGAexaHAn The Beatles \n", "15 7gDXyW16byCQOgK965BRzn The Beatles \n", "16 6vuykQgDLUCiZ7YggIpLM9 Radiohead \n", "17 47xaqCsJcYFWqD1gwujl1T Radiohead \n", "18 7eyQXxuf2nGj9d2367Gi5f Radiohead \n", "19 36lJLPoPPOKNFddTAcirnc Radiohead \n", "20 6Eo5EkmdLvZrONzi046iC2 Radiohead \n", "21 1oW3v5Har9mvXnGk0x4fHm Radiohead \n", "22 6svTt5o2lUgIrgYDKVmdnD Radiohead \n", "23 6V9YnBmFjWmXCBaUVRCVXP Radiohead \n", "24 19RUXBFyM4PpmrLRdtqWbp Radiohead \n", "25 7dxKtc08dYeRVHt3p9CZJn Radiohead \n", "26 500FEaUzn8lN9zWFyZG5C2 Radiohead \n", "27 6400dnyeDyD2mIFHfkwHXN Radiohead \n", "28 4g9Jfls8z2nbQxj5PiXkiy The Rolling Stones \n", "29 4fhWcu56Bbh5wALuTouFVW The Rolling Stones \n", ".. ... ... \n", "32 3CHu7qW160uqPZHW3TMZ1l The Rolling Stones \n", "33 4FTHynKEtuP7eppERNfjyG The Rolling Stones \n", "34 50UGtgNA5bq1c0BDjPfmbD The Rolling Stones \n", "35 0ZGddnvcVzHVHfE3WW1tV5 The Rolling Stones \n", "36 4M8Q1L9PZq0xK5tLUpO3jd The Rolling Stones \n", "37 62ZT16LY1phGM0O8x5qW1z The Rolling Stones \n", "38 1W1UJulgICjFDyYIMUwRs7 The Rolling Stones \n", "39 25mfHGJNQkluvIqedXHSx3 The Rolling Stones \n", "40 1TpcI1LEFVhBvDPSTMPGFG The Rolling Stones \n", "41 1WSfNoPDPzgyKFN6OSYWUx The Rolling Stones \n", "42 064eFGemsrDcMvgRZ0gqtw The Rolling Stones \n", "43 0hxrNynMDh5QeyALlf1CdS The Rolling Stones \n", "44 1YvnuYGlblQ5vLnOhaZzpn The Rolling Stones \n", "45 2wZgoXS06wSdu9C0ZJOvlc The Rolling Stones \n", "46 54sqbAXxR1jFfyXb1WvrHK The Rolling Stones \n", "47 6FjXxl9VLURGuubdXUn2J3 The Rolling Stones \n", "48 4jbWZmf7kRxCBD6tgVepYh Spice Girls \n", "49 3sr6lAuO3nmB1u8ZuQgpiX Spice Girls \n", "50 3x2jF7blR6bFHtk4MccsyJ Spice Girls \n", "51 3LXItxKnnJcEDc5QdTc00n The Beatles \n", "52 7Hk1X2BCADxuR9saTIKfOW The Rolling Stones \n", "53 6iCIB08bkoitQOL5y2uEsM The Rolling Stones \n", "54 34d9ClCaKRoQ8pMeJ9Gfvt The Rolling Stones \n", "55 0aWIIpfY32rT1i3yO9LROl The Rolling Stones \n", "56 5D7RtaChuvF0Av1xXT3acu The Rolling Stones \n", "57 2b3y5k1DchDACjH5KMlgQv The Rolling Stones \n", "58 3wkyUMDuH56iNaSxKvukax The Rolling Stones \n", "59 6hB5kO3oV3tlnblCNSSA9Z Muddy Waters \n", "60 3yNf6JVyEEqvM4OqKEmZSC Muddy Waters \n", "61 2gCp8kyDcL93s4kVP4VMTC The Rolling Stones \n", "\n", " name \n", "0 Live At The Hollywood Bowl \n", "1 1 (Remastered) \n", "2 Let It Be (Remastered) \n", "3 Abbey Road (Remastered) \n", "4 Yellow Submarine (Remastered) \n", "5 The Beatles (Remastered) \n", "6 Magical Mystery Tour (Remastered) \n", "7 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "8 Revolver (Remastered) \n", "9 Rubber Soul (Remastered) \n", "10 Help! (Remastered) \n", "11 Beatles For Sale (Remastered) \n", "12 A Hard Day's Night (Remastered) \n", "13 The King Of Limbs \n", "14 With The Beatles (Remastered) \n", "15 Please Please Me (Remastered) \n", "16 A Moon Shaped Pool \n", "17 TKOL RMX 1234567 \n", "18 In Rainbows \n", "19 In Rainbows Disk 2 \n", "20 Com Lag: 2+2=5 \n", "21 Hail To the Thief \n", "22 I Might Be Wrong \n", "23 Amnesiac \n", "24 Kid A \n", "25 OK Computer \n", "26 The Bends \n", "27 Pablo Honey \n", "28 Blue & Lonesome \n", "29 Havana Moon (Live) \n", ".. ... \n", "32 Shine A Light \n", "33 A Bigger Bang (2009 Re-Mastered) \n", "34 Live Licks \n", "35 Bridges To Babylon (Remastered) \n", "36 Stripped \n", "37 Voodoo Lounge (Remastered 2009) \n", "38 Flashpoint \n", "39 Steel Wheels (2009 Re-Mastered) \n", "40 Dirty Work \n", "41 Dirty Work (Remastered 2009) \n", "42 Undercover (2009 Re-Mastered) \n", "43 Still Life \n", "44 Tattoo You (2009 Re-Mastered) \n", "45 Emotional Rescue (2009 Re-Mastered) \n", "46 Some Girls \n", "47 Some Girls (Deluxe Version) \n", "48 Forever \n", "49 Spiceworld \n", "50 Spice \n", "51 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "52 On Air (Deluxe) \n", "53 Sticky Fingers Live At The Fonda Theatre \n", "54 Ladies & Gentlemen (Live) \n", "55 Totally Stripped (Live) \n", "56 Totally Stripped - Brixton (Live) \n", "57 Totally Stripped - Amsterdam (Live) \n", "58 Totally Stripped - Paris (Live) \n", "59 Live At The Checkerboard Lounge \n", "60 Live At The Checkerboard Lounge \n", "61 Some Girls: Live In Texas '78 \n", "\n", "[62 rows x 3 columns]" ] }, "execution_count": 34, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list(albums.find({}, ['name', 'artist_name'])))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "According to the [Spotify documentation](https://developer.spotify.com/web-api/object-model/#track-object), some objects returned have only a bit of the data, and contain a `href` field for where to find the rest. The track details in the album documents fit that bill, so let's find the full track information.\n", "\n", "While doing this, not that Spotify will rate-limit the requests, so we have to include a loop to respect the timeout and retry the requests after the appropriate time." ] }, { "cell_type": "code", "execution_count": 35, "metadata": {}, "outputs": [], "source": [ "def get_tracks(album_id, auth_type, auth_token):\n", " headers = {'Authorization': auth_type + ' ' + auth_token}\n", "\n", " album = albums.find_one({'_id': album_id})\n", " for t in album['tracks']['items']:\n", " for _ in range(10):\n", " try:\n", " track_request = urllib.request.Request(t['href'], headers=headers, method='GET')\n", " with urllib.request.urlopen(track_request) as f: \n", "# with urllib.request.urlopen(t['href']) as f:\n", " track = json.loads(f.read().decode('utf-8'))\n", " track['_id'] = track['id']\n", " track['album_id'] = album_id\n", " tracks.replace_one({'_id': track['_id']}, track, upsert=True)\n", " break\n", " except urllib.error.HTTPError as e:\n", " print(\"Rate limited. Pausing for\", e.info()['Retry-After'])\n", " time.sleep(int(e.info()['Retry-After']) + 0.5)\n", " continue" ] }, { "cell_type": "code", "execution_count": 38, "metadata": { "scrolled": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Rate limited. Pausing for 1\n", "Rate limited. Pausing for 1\n", "Rate limited. Pausing for 2\n", "Rate limited. Pausing for 2\n", "Rate limited. Pausing for 1\n", "Rate limited. Pausing for 1\n", "Rate limited. Pausing for 1\n" ] }, { "data": { "text/plain": [ "924" ] }, "execution_count": 38, "metadata": {}, "output_type": "execute_result" } ], "source": [ "a_type, a_token = get_spotify_auth_token()\n", "for album in albums.find():\n", " get_tracks(album['_id'], a_type, a_token)\n", "tracks.find().count()" ] }, { "cell_type": "code", "execution_count": 39, "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", "
01234
_id1jgefM2ZP7RnPVShhy1eUM7FagS2T3y5XwDpYvyHfvmc1NwDWbpg9dPH12xBd2ibrv0r5d5LmhLQwJVEw0kTEExp2vnY8xDhRSW1Cc0xPpUMXc
album{'artists': [{'href': 'https://api.spotify.com...{'artists': [{'href': 'https://api.spotify.com...{'artists': [{'href': 'https://api.spotify.com...{'artists': [{'href': 'https://api.spotify.com...{'artists': [{'href': 'https://api.spotify.com...
album_id3PbRKFafwE7Of8e4dTee723PbRKFafwE7Of8e4dTee724jbWZmf7kRxCBD6tgVepYh4jbWZmf7kRxCBD6tgVepYh4jbWZmf7kRxCBD6tgVepYh
artists[{'href': 'https://api.spotify.com/v1/artists/...[{'href': 'https://api.spotify.com/v1/artists/...[{'href': 'https://api.spotify.com/v1/artists/...[{'href': 'https://api.spotify.com/v1/artists/...[{'href': 'https://api.spotify.com/v1/artists/...
available_markets[GB][GB][AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...
disc_number11111
duration_ms191786303626255866254666246600
explicitFalseFalseFalseFalseFalse
external_ids{'isrc': 'GBCBR1500391'}{'isrc': 'GBCBR1500401'}{'isrc': 'GBAAA0000931'}{'isrc': 'GBAAA0000932'}{'isrc': 'GBAAA0000937'}
external_urls{'spotify': 'https://open.spotify.com/track/1j...{'spotify': 'https://open.spotify.com/track/7F...{'spotify': 'https://open.spotify.com/track/1N...{'spotify': 'https://open.spotify.com/track/0r...{'spotify': 'https://open.spotify.com/track/2v...
hrefhttps://api.spotify.com/v1/tracks/1jgefM2ZP7Rn...https://api.spotify.com/v1/tracks/7FagS2T3y5Xw...https://api.spotify.com/v1/tracks/1NwDWbpg9dPH...https://api.spotify.com/v1/tracks/0r5d5LmhLQwJ...https://api.spotify.com/v1/tracks/2vnY8xDhRSW1...
id1jgefM2ZP7RnPVShhy1eUM7FagS2T3y5XwDpYvyHfvmc1NwDWbpg9dPH12xBd2ibrv0r5d5LmhLQwJVEw0kTEExp2vnY8xDhRSW1Cc0xPpUMXc
nameNot Fade Away - LiveJumpin' Jack Flash - LiveHollerTell Me WhyWeekend Love
popularity1412513731
preview_urlhttps://p.scdn.co/mp3-preview/bba1991141c6e594...https://p.scdn.co/mp3-preview/17aed72343067677...NoneNoneNone
track_number111127
typetracktracktracktracktrack
urispotify:track:1jgefM2ZP7RnPVShhy1eUMspotify:track:7FagS2T3y5XwDpYvyHfvmcspotify:track:1NwDWbpg9dPH12xBd2ibrvspotify:track:0r5d5LmhLQwJVEw0kTEExpspotify:track:2vnY8xDhRSW1Cc0xPpUMXc
\n", "
" ], "text/plain": [ " 0 \\\n", "_id 1jgefM2ZP7RnPVShhy1eUM \n", "album {'artists': [{'href': 'https://api.spotify.com... \n", "album_id 3PbRKFafwE7Of8e4dTee72 \n", "artists [{'href': 'https://api.spotify.com/v1/artists/... \n", "available_markets [GB] \n", "disc_number 1 \n", "duration_ms 191786 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1500391'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/1j... \n", "href https://api.spotify.com/v1/tracks/1jgefM2ZP7Rn... \n", "id 1jgefM2ZP7RnPVShhy1eUM \n", "name Not Fade Away - Live \n", "popularity 14 \n", "preview_url https://p.scdn.co/mp3-preview/bba1991141c6e594... \n", "track_number 1 \n", "type track \n", "uri spotify:track:1jgefM2ZP7RnPVShhy1eUM \n", "\n", " 1 \\\n", "_id 7FagS2T3y5XwDpYvyHfvmc \n", "album {'artists': [{'href': 'https://api.spotify.com... \n", "album_id 3PbRKFafwE7Of8e4dTee72 \n", "artists [{'href': 'https://api.spotify.com/v1/artists/... \n", "available_markets [GB] \n", "disc_number 1 \n", "duration_ms 303626 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1500401'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/7F... \n", "href https://api.spotify.com/v1/tracks/7FagS2T3y5Xw... \n", "id 7FagS2T3y5XwDpYvyHfvmc \n", "name Jumpin' Jack Flash - Live \n", "popularity 12 \n", "preview_url https://p.scdn.co/mp3-preview/17aed72343067677... \n", "track_number 11 \n", "type track \n", "uri spotify:track:7FagS2T3y5XwDpYvyHfvmc \n", "\n", " 2 \\\n", "_id 1NwDWbpg9dPH12xBd2ibrv \n", "album {'artists': [{'href': 'https://api.spotify.com... \n", "album_id 4jbWZmf7kRxCBD6tgVepYh \n", "artists [{'href': 'https://api.spotify.com/v1/artists/... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "disc_number 1 \n", "duration_ms 255866 \n", "explicit False \n", "external_ids {'isrc': 'GBAAA0000931'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/1N... \n", "href https://api.spotify.com/v1/tracks/1NwDWbpg9dPH... \n", "id 1NwDWbpg9dPH12xBd2ibrv \n", "name Holler \n", "popularity 51 \n", "preview_url None \n", "track_number 1 \n", "type track \n", "uri spotify:track:1NwDWbpg9dPH12xBd2ibrv \n", "\n", " 3 \\\n", "_id 0r5d5LmhLQwJVEw0kTEExp \n", "album {'artists': [{'href': 'https://api.spotify.com... \n", "album_id 4jbWZmf7kRxCBD6tgVepYh \n", "artists [{'href': 'https://api.spotify.com/v1/artists/... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "disc_number 1 \n", "duration_ms 254666 \n", "explicit False \n", "external_ids {'isrc': 'GBAAA0000932'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/0r... \n", "href https://api.spotify.com/v1/tracks/0r5d5LmhLQwJ... \n", "id 0r5d5LmhLQwJVEw0kTEExp \n", "name Tell Me Why \n", "popularity 37 \n", "preview_url None \n", "track_number 2 \n", "type track \n", "uri spotify:track:0r5d5LmhLQwJVEw0kTEExp \n", "\n", " 4 \n", "_id 2vnY8xDhRSW1Cc0xPpUMXc \n", "album {'artists': [{'href': 'https://api.spotify.com... \n", "album_id 4jbWZmf7kRxCBD6tgVepYh \n", "artists [{'href': 'https://api.spotify.com/v1/artists/... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "disc_number 1 \n", "duration_ms 246600 \n", "explicit False \n", "external_ids {'isrc': 'GBAAA0000937'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/2v... \n", "href https://api.spotify.com/v1/tracks/2vnY8xDhRSW1... \n", "id 2vnY8xDhRSW1Cc0xPpUMXc \n", "name Weekend Love \n", "popularity 31 \n", "preview_url None \n", "track_number 7 \n", "type track \n", "uri spotify:track:2vnY8xDhRSW1Cc0xPpUMXc " ] }, "execution_count": 39, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list(tracks.find())).head().T" ] }, { "cell_type": "code", "execution_count": 40, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'_id': '1jgefM2ZP7RnPVShhy1eUM'}" ] }, "execution_count": 40, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tracks.find_one({}, 'album.id')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Tag tracks with artist\n", "Again, make an easy tag for the artist of each track.\n", "\n", "* [Top](#top)" ] }, { "cell_type": "code", "execution_count": 42, "metadata": {}, "outputs": [], "source": [ "for t in tracks.find({}, ['artists']):\n", " for a in t['artists']:\n", " #if a['id'] in [beatles_id, stones_id]:\n", " tracks.update_one({'_id': t['_id']}, \n", " {'$set': {'artist_name': a['name'],\n", " 'artist_id': a['id']}})" ] }, { "cell_type": "code", "execution_count": 43, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'Billy Preston',\n", " 'Bob Clearmountain',\n", " 'Buddy Guy',\n", " 'Christina Aguilera',\n", " 'Duke Ellington',\n", " 'George Martin',\n", " 'Jack White',\n", " 'Jimi Hendrix',\n", " 'Muddy Waters',\n", " 'Radiohead',\n", " 'Sheryl Crow',\n", " 'Solomon Burke',\n", " 'Spice Girls',\n", " 'The Beatles',\n", " 'The Rolling Stones'}" ] }, "execution_count": 43, "metadata": {}, "output_type": "execute_result" } ], "source": [ "set(t['artist_name'] for t in tracks.find({}))" ] }, { "cell_type": "code", "execution_count": 44, "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", "
album_idalbum_nameartist_nametrack_idtrack_name
05XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles4edArG2VehvJdwOZfYOxtKTwist And Shout - Live / Remastered
15XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles150EAeMGWJRubuH8zyx7h8She's A Woman - Live / Remastered
25XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles1fVeHYkyMxrjbjRAD9uWsZDizzy Miss Lizzy - Live / Remastered
35XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles0GRplBEB2FWCKutwMmS6nYTicket To Ride - Live / Remastered
45XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles1eVymk74iroqhsZxm0Vy3gCan't Buy Me Love - Live / Remastered
55XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles2p5a9gu6NECVSvBtGSU1vmThings We Said Today - Live / Remastered
65XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles1HyLh5cctOnP186CBi8bhmRoll Over Beethoven - Live / Remastered
75XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles7fZEWm7TAL2oZDyiYrrgnkBoys - Live / Remastered
85XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles21nhooOxso7CCoHPE73w4LA Hard Day's Night - Live / Remastered
95XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles1alcPfZWUHh01l4Fnoo5JtHelp! - Live / Remastered
105XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles24gUDXSQysdnTaRpbWtYlKAll My Loving - Live / Remastered
115XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles2VmFFbXSJzYxzEJSAeI0lMShe Loves You - Live / Remastered
125XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles6b8lhQ86u5MddlmXulslpDLong Tall Sally - Live / Remastered
135XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles1oKfZ5MTCSrv07hsHqJ0JSYou Can't Do That - Live / Bonus Track
145XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles04gBqA2mubcTgFqL9DomljI Want To Hold Your Hand - Live / Bonus Track
155XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles79QDgDoBbS7pCrOjIH7ByAEverybody’s Trying To Be My Baby - Live / Bonu...
165XfJmldgWzrc1AIdbBaVZnLive At The Hollywood BowlThe Beatles1yV2I5c6efVSqSiuv9H2ADBaby's In Black - Live / Bonus Track
175ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles5JT7CoUSGNk7mMNkHMQjqrLove Me Do - Mono / Remastered
185ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles2Q2Gu7Bv8iLenuygtBgDUwFrom Me To You - Mono / Remastered
195ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles2Fk411Ix3qnMG8t8Qa74ZXShe Loves You - Mono / Remastered
205ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles4DRBaZ760gyk7LWnaJFqsJI Want To Hold Your Hand - Remastered 2015
215ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles7pQAq14Z73YUFMtxCyt0bGCan't Buy Me Love - Remastered 2015
225ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles0mNQUZEATk2uItMUtiLWK5A Hard Day's Night - Remastered 2015
235ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles0Gm34HBxrXlaAf1jdJMjx2I Feel Fine - Remastered 2015
245ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles3nhJDVdUrm6DnDW4iBfpKzEight Days A Week - Remastered 2015
255ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles6pkjW5srxjzRSKKMrl7et8Ticket To Ride - Remastered 2015
265ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles1dfuJYDSIc41cw5RPsaCF1Help! - Remastered 2015
275ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles63uskN0xLezVg4281wzeQnYesterday - Remastered 2015
285ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles0vXGSlE4ft3n5JHZMHHSIjDay Tripper - Remastered 2015
295ju5Ouzan3QwXqQt1Tihbh1 (Remastered)The Beatles0Lckblu9CJUXOeMV0XY3b9We Can Work It Out - Remastered 2015
..................
8946hB5kO3oV3tlnblCNSSA9ZLive At The Checkerboard LoungeThe Rolling Stones5AmdUA5aj3BKXBHqMcwpDLInstrumental 1 - Live
8956hB5kO3oV3tlnblCNSSA9ZLive At The Checkerboard LoungeThe Rolling Stones1eIRZEohfewV7H1zGxZy0LInstrumental 2 - Live
8963yNf6JVyEEqvM4OqKEmZSCLive At The Checkerboard LoungeMuddy Waters1ILxG8b0iynG1wQA7aqm58Introduction - Live
8973yNf6JVyEEqvM4OqKEmZSCLive At The Checkerboard LoungeMuddy Waters6HRXy5YBKOlT3uiAQjCjjJYou Don't Have To Go - Live
8983yNf6JVyEEqvM4OqKEmZSCLive At The Checkerboard LoungeThe Rolling Stones7m6dBGKuagWUryeevcBrE0Baby Please Don't Go - Live
8993yNf6JVyEEqvM4OqKEmZSCLive At The Checkerboard LoungeThe Rolling Stones6yjQRBe4nt7KznxYqh7qfKHoochie Coochie Man - Live
9003yNf6JVyEEqvM4OqKEmZSCLive At The Checkerboard LoungeThe Rolling Stones10eM8qubZ9IBU0v6LNLjNMLong Distance Call - Live
9013yNf6JVyEEqvM4OqKEmZSCLive At The Checkerboard LoungeThe Rolling Stones3nc2vvots8KXJIssvtJvh6Mannish Boy - Live
9023yNf6JVyEEqvM4OqKEmZSCLive At The Checkerboard LoungeThe Rolling Stones4kYnrUr98AZARciXJGjjzHGot My Mojo Workin' - Live
9033yNf6JVyEEqvM4OqKEmZSCLive At The Checkerboard LoungeThe Rolling Stones15RgKpCJ1rxwbNMpoA503mNext Time You See Me - Live
9043yNf6JVyEEqvM4OqKEmZSCLive At The Checkerboard LoungeThe Rolling Stones1yFFTCqtFerayfTq46m0P0One Eyed Woman - Live
9053yNf6JVyEEqvM4OqKEmZSCLive At The Checkerboard LoungeThe Rolling Stones402iDzjasfYVYx1LT5gNFSClouds In My Heart - Live
9063yNf6JVyEEqvM4OqKEmZSCLive At The Checkerboard LoungeThe Rolling Stones0L8sAIZr2OcE45cGZ3qbb7Champagne And Reefer - Live
9072gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones0cNyluZzzBVbsk2UY7SpcaLet It Rock - Live
9082gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones6dx6G9OexgRFCulfKI4sPNAll Down The Line - Live
9092gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones6fZKfyDrl9Nph0ifIGvOxsHonky Tonk Women - Live
9102gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones660iobQYqexXXNfRomqz3oStar Star - Live
9112gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones6AX8HMe53fbGdNNAnC8LSzWhen The Whip Comes Down - Live
9122gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones16FlhqpxLT6WTfiLVEZ7VvBeast Of Burden - Live
9132gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones5UXwp4rKvtXtKJpe0iIctMMiss You - Live
9142gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones4pKN6TNF59rJ1PCtPoeppgJust My Imagination - Live
9152gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones2ZBmWii9Yt5EVO32P6oDXMShattered - Live
9162gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones7aJbjVaPvyaqjW47rDYijLRespectable - Live
9172gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones39OF4xTwA6f5BaIeA9aAwFFar Away Eyes - Live
9182gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones2PPqIlfmipTSfx79FvSvepLove In Vain - Live
9192gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones5XQ2enmXsgp66RvyolR8qCTumbling Dice - Live
9202gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones4LPtVRXWYSJw0TmszHFivcHappy - Live
9212gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones2dF1AaEhFCgS2e78JqmkOuSweet Little Sixteen - Live
9222gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones5SvY6KFdltqwqFR7ClMz7yBrown Sugar - Live
9232gCp8kyDcL93s4kVP4VMTCSome Girls: Live In Texas '78The Rolling Stones2uO1HbJhQvmXpjclLmLEeKJumpin' Jack Flash - Live
\n", "

924 rows × 5 columns

\n", "
" ], "text/plain": [ " album_id album_name \\\n", "0 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "1 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "2 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "3 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "4 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "5 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "6 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "7 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "8 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "9 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "10 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "11 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "12 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "13 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "14 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "15 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "16 5XfJmldgWzrc1AIdbBaVZn Live At The Hollywood Bowl \n", "17 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "18 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "19 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "20 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "21 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "22 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "23 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "24 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "25 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "26 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "27 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "28 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", "29 5ju5Ouzan3QwXqQt1Tihbh 1 (Remastered) \n", ".. ... ... \n", "894 6hB5kO3oV3tlnblCNSSA9Z Live At The Checkerboard Lounge \n", "895 6hB5kO3oV3tlnblCNSSA9Z Live At The Checkerboard Lounge \n", "896 3yNf6JVyEEqvM4OqKEmZSC Live At The Checkerboard Lounge \n", "897 3yNf6JVyEEqvM4OqKEmZSC Live At The Checkerboard Lounge \n", "898 3yNf6JVyEEqvM4OqKEmZSC Live At The Checkerboard Lounge \n", "899 3yNf6JVyEEqvM4OqKEmZSC Live At The Checkerboard Lounge \n", "900 3yNf6JVyEEqvM4OqKEmZSC Live At The Checkerboard Lounge \n", "901 3yNf6JVyEEqvM4OqKEmZSC Live At The Checkerboard Lounge \n", "902 3yNf6JVyEEqvM4OqKEmZSC Live At The Checkerboard Lounge \n", "903 3yNf6JVyEEqvM4OqKEmZSC Live At The Checkerboard Lounge \n", "904 3yNf6JVyEEqvM4OqKEmZSC Live At The Checkerboard Lounge \n", "905 3yNf6JVyEEqvM4OqKEmZSC Live At The Checkerboard Lounge \n", "906 3yNf6JVyEEqvM4OqKEmZSC Live At The Checkerboard Lounge \n", "907 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "908 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "909 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "910 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "911 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "912 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "913 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "914 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "915 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "916 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "917 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "918 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "919 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "920 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "921 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "922 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "923 2gCp8kyDcL93s4kVP4VMTC Some Girls: Live In Texas '78 \n", "\n", " artist_name track_id \\\n", "0 The Beatles 4edArG2VehvJdwOZfYOxtK \n", "1 The Beatles 150EAeMGWJRubuH8zyx7h8 \n", "2 The Beatles 1fVeHYkyMxrjbjRAD9uWsZ \n", "3 The Beatles 0GRplBEB2FWCKutwMmS6nY \n", "4 The Beatles 1eVymk74iroqhsZxm0Vy3g \n", "5 The Beatles 2p5a9gu6NECVSvBtGSU1vm \n", "6 The Beatles 1HyLh5cctOnP186CBi8bhm \n", "7 The Beatles 7fZEWm7TAL2oZDyiYrrgnk \n", "8 The Beatles 21nhooOxso7CCoHPE73w4L \n", "9 The Beatles 1alcPfZWUHh01l4Fnoo5Jt \n", "10 The Beatles 24gUDXSQysdnTaRpbWtYlK \n", "11 The Beatles 2VmFFbXSJzYxzEJSAeI0lM \n", "12 The Beatles 6b8lhQ86u5MddlmXulslpD \n", "13 The Beatles 1oKfZ5MTCSrv07hsHqJ0JS \n", "14 The Beatles 04gBqA2mubcTgFqL9Domlj \n", "15 The Beatles 79QDgDoBbS7pCrOjIH7ByA \n", "16 The Beatles 1yV2I5c6efVSqSiuv9H2AD \n", "17 The Beatles 5JT7CoUSGNk7mMNkHMQjqr \n", "18 The Beatles 2Q2Gu7Bv8iLenuygtBgDUw \n", "19 The Beatles 2Fk411Ix3qnMG8t8Qa74ZX \n", "20 The Beatles 4DRBaZ760gyk7LWnaJFqsJ \n", "21 The Beatles 7pQAq14Z73YUFMtxCyt0bG \n", "22 The Beatles 0mNQUZEATk2uItMUtiLWK5 \n", "23 The Beatles 0Gm34HBxrXlaAf1jdJMjx2 \n", "24 The Beatles 3nhJDVdUrm6DnDW4iBfpKz \n", "25 The Beatles 6pkjW5srxjzRSKKMrl7et8 \n", "26 The Beatles 1dfuJYDSIc41cw5RPsaCF1 \n", "27 The Beatles 63uskN0xLezVg4281wzeQn \n", "28 The Beatles 0vXGSlE4ft3n5JHZMHHSIj \n", "29 The Beatles 0Lckblu9CJUXOeMV0XY3b9 \n", ".. ... ... \n", "894 The Rolling Stones 5AmdUA5aj3BKXBHqMcwpDL \n", "895 The Rolling Stones 1eIRZEohfewV7H1zGxZy0L \n", "896 Muddy Waters 1ILxG8b0iynG1wQA7aqm58 \n", "897 Muddy Waters 6HRXy5YBKOlT3uiAQjCjjJ \n", "898 The Rolling Stones 7m6dBGKuagWUryeevcBrE0 \n", "899 The Rolling Stones 6yjQRBe4nt7KznxYqh7qfK \n", "900 The Rolling Stones 10eM8qubZ9IBU0v6LNLjNM \n", "901 The Rolling Stones 3nc2vvots8KXJIssvtJvh6 \n", "902 The Rolling Stones 4kYnrUr98AZARciXJGjjzH \n", "903 The Rolling Stones 15RgKpCJ1rxwbNMpoA503m \n", "904 The Rolling Stones 1yFFTCqtFerayfTq46m0P0 \n", "905 The Rolling Stones 402iDzjasfYVYx1LT5gNFS \n", "906 The Rolling Stones 0L8sAIZr2OcE45cGZ3qbb7 \n", "907 The Rolling Stones 0cNyluZzzBVbsk2UY7Spca \n", "908 The Rolling Stones 6dx6G9OexgRFCulfKI4sPN \n", "909 The Rolling Stones 6fZKfyDrl9Nph0ifIGvOxs \n", "910 The Rolling Stones 660iobQYqexXXNfRomqz3o \n", "911 The Rolling Stones 6AX8HMe53fbGdNNAnC8LSz \n", "912 The Rolling Stones 16FlhqpxLT6WTfiLVEZ7Vv \n", "913 The Rolling Stones 5UXwp4rKvtXtKJpe0iIctM \n", "914 The Rolling Stones 4pKN6TNF59rJ1PCtPoeppg \n", "915 The Rolling Stones 2ZBmWii9Yt5EVO32P6oDXM \n", "916 The Rolling Stones 7aJbjVaPvyaqjW47rDYijL \n", "917 The Rolling Stones 39OF4xTwA6f5BaIeA9aAwF \n", "918 The Rolling Stones 2PPqIlfmipTSfx79FvSvep \n", "919 The Rolling Stones 5XQ2enmXsgp66RvyolR8qC \n", "920 The Rolling Stones 4LPtVRXWYSJw0TmszHFivc \n", "921 The Rolling Stones 2dF1AaEhFCgS2e78JqmkOu \n", "922 The Rolling Stones 5SvY6KFdltqwqFR7ClMz7y \n", "923 The Rolling Stones 2uO1HbJhQvmXpjclLmLEeK \n", "\n", " track_name \n", "0 Twist And Shout - Live / Remastered \n", "1 She's A Woman - Live / Remastered \n", "2 Dizzy Miss Lizzy - Live / Remastered \n", "3 Ticket To Ride - Live / Remastered \n", "4 Can't Buy Me Love - Live / Remastered \n", "5 Things We Said Today - Live / Remastered \n", "6 Roll Over Beethoven - Live / Remastered \n", "7 Boys - Live / Remastered \n", "8 A Hard Day's Night - Live / Remastered \n", "9 Help! - Live / Remastered \n", "10 All My Loving - Live / Remastered \n", "11 She Loves You - Live / Remastered \n", "12 Long Tall Sally - Live / Remastered \n", "13 You Can't Do That - Live / Bonus Track \n", "14 I Want To Hold Your Hand - Live / Bonus Track \n", "15 Everybody’s Trying To Be My Baby - Live / Bonu... \n", "16 Baby's In Black - Live / Bonus Track \n", "17 Love Me Do - Mono / Remastered \n", "18 From Me To You - Mono / Remastered \n", "19 She Loves You - Mono / Remastered \n", "20 I Want To Hold Your Hand - Remastered 2015 \n", "21 Can't Buy Me Love - Remastered 2015 \n", "22 A Hard Day's Night - Remastered 2015 \n", "23 I Feel Fine - Remastered 2015 \n", "24 Eight Days A Week - Remastered 2015 \n", "25 Ticket To Ride - Remastered 2015 \n", "26 Help! - Remastered 2015 \n", "27 Yesterday - Remastered 2015 \n", "28 Day Tripper - Remastered 2015 \n", "29 We Can Work It Out - Remastered 2015 \n", ".. ... \n", "894 Instrumental 1 - Live \n", "895 Instrumental 2 - Live \n", "896 Introduction - Live \n", "897 You Don't Have To Go - Live \n", "898 Baby Please Don't Go - Live \n", "899 Hoochie Coochie Man - Live \n", "900 Long Distance Call - Live \n", "901 Mannish Boy - Live \n", "902 Got My Mojo Workin' - Live \n", "903 Next Time You See Me - Live \n", "904 One Eyed Woman - Live \n", "905 Clouds In My Heart - Live \n", "906 Champagne And Reefer - Live \n", "907 Let It Rock - Live \n", "908 All Down The Line - Live \n", "909 Honky Tonk Women - Live \n", "910 Star Star - Live \n", "911 When The Whip Comes Down - Live \n", "912 Beast Of Burden - Live \n", "913 Miss You - Live \n", "914 Just My Imagination - Live \n", "915 Shattered - Live \n", "916 Respectable - Live \n", "917 Far Away Eyes - Live \n", "918 Love In Vain - Live \n", "919 Tumbling Dice - Live \n", "920 Happy - Live \n", "921 Sweet Little Sixteen - Live \n", "922 Brown Sugar - Live \n", "923 Jumpin' Jack Flash - Live \n", "\n", "[924 rows x 5 columns]" ] }, "execution_count": 44, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame([{'album_id': a['id'], \n", " 'album_name': a['name'],\n", " 'track_id': t['id'],\n", " 'track_name': t['name'],\n", " 'artist_name': t['artist_name']}\n", " for a in albums.find()\n", " for tid in a['tracks']['items']\n", " for t in tracks.find({'_id': tid['id']})])" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Get full track data\n", "The full audio analysis requires an API token to get the data. We use the client token to retreive an authorisation token, which will last for about ten minutes.\n", "\n", "* [Top](#top)" ] }, { "cell_type": "code", "execution_count": 45, "metadata": {}, "outputs": [], "source": [ "def get_audio_features(track_ids, auth_type, auth_token):\n", " url = 'https://api.spotify.com/v1/audio-features?ids={ids}'.format(ids=','.join(track_ids))\n", " headers = {'Authorization': auth_type + ' ' + auth_token}\n", " request = urllib.request.Request(url, headers=headers, method='GET')\n", " \n", " for _ in range(10):\n", " try:\n", " with urllib.request.urlopen(request) as f:\n", " response = json.loads(f.read().decode('utf-8'))\n", " for track in response['audio_features']:\n", " tracks.update_one({'_id': track['id']}, {'$set': track})\n", " break\n", " except urllib.error.HTTPError as e:\n", " print(\"Rate limited. Pausing for\", e.info()['Retry-After'])\n", " time.sleep(int(e.info()['Retry-After']) + 0.5)\n", " continue " ] }, { "cell_type": "code", "execution_count": 46, "metadata": {}, "outputs": [], "source": [ "a_type, a_token = get_spotify_auth_token()\n", "for a in albums.find({}, []):\n", " track_ids = [t['_id'] for t in tracks.find({'album.id': a['_id']}, [])]\n", " get_audio_features(track_ids, a_type, a_token)" ] }, { "cell_type": "code", "execution_count": 18, "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", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
0123456789...251252253254255256257258259260
_id2ucFulEWapRAmTn7l6f5Q72z1p43SNSbeowzy8WdYHNk3ckvsHnEffhhS5c0Cs6Gv55cXiWs6VoLlDlowJQo0UPk4edArG2VehvJdwOZfYOxtK150EAeMGWJRubuH8zyx7h81fVeHYkyMxrjbjRAD9uWsZ0GRplBEB2FWCKutwMmS6nY1eVymk74iroqhsZxm0Vy3g2p5a9gu6NECVSvBtGSU1vm...3pY5chBSUotRa6RoIfwJjc5ToEv4nDN51OyAjK65A9YS3ZFPe2aiLQuEfDxSqQstZp2BOawXVznHmi2KJzRFstBN1alxZZpi5dBLcmV3WkYIzN1k1kJBeaL3FCUG2vOJ1z0g42uZOBjvKNv4QKnBmjOwb05JnPM6eKhHJtkWfS6ymUMF3HEC6nzAo3U5z7blaCNBcF3qchAN1uJ1KiF8yxmqb3Ov
acousticness0.4250.3680.6140.227.67e-050.006750.01310.003270.008650.0836...0.0003660.0002360.2540.2910.2320.7490.4470.1620.9190.482
album{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp......{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...
album_id03Qh833fEdVT30Pfs93ea66P9yO0ukhOx3dvmhGKeYoC7BgGBZndAvDlKOcwe5rscZ3LXItxKnnJcEDc5QdTc00n5XfJmldgWzrc1AIdbBaVZn5XfJmldgWzrc1AIdbBaVZn5XfJmldgWzrc1AIdbBaVZn5XfJmldgWzrc1AIdbBaVZn5XfJmldgWzrc1AIdbBaVZn5XfJmldgWzrc1AIdbBaVZn...3LXItxKnnJcEDc5QdTc00n3LXItxKnnJcEDc5QdTc00n3LXItxKnnJcEDc5QdTc00n3LXItxKnnJcEDc5QdTc00n3LXItxKnnJcEDc5QdTc00n3LXItxKnnJcEDc5QdTc00n3LXItxKnnJcEDc5QdTc00n3LXItxKnnJcEDc5QdTc00n3LXItxKnnJcEDc5QdTc00n3LXItxKnnJcEDc5QdTc00n
analysis_urlhttps://api.spotify.com/v1/audio-analysis/2ucF...https://api.spotify.com/v1/audio-analysis/2z1p...https://api.spotify.com/v1/audio-analysis/3ckv...https://api.spotify.com/v1/audio-analysis/5cXi...https://api.spotify.com/v1/audio-analysis/4edA...https://api.spotify.com/v1/audio-analysis/150E...https://api.spotify.com/v1/audio-analysis/1fVe...https://api.spotify.com/v1/audio-analysis/0GRp...https://api.spotify.com/v1/audio-analysis/1eVy...https://api.spotify.com/v1/audio-analysis/2p5a......https://api.spotify.com/v1/audio-analysis/3pY5...https://api.spotify.com/v1/audio-analysis/5ToE...https://api.spotify.com/v1/audio-analysis/3ZFP...https://api.spotify.com/v1/audio-analysis/2BOa...https://api.spotify.com/v1/audio-analysis/1alx...https://api.spotify.com/v1/audio-analysis/1k1k...https://api.spotify.com/v1/audio-analysis/42uZ...https://api.spotify.com/v1/audio-analysis/5JnP...https://api.spotify.com/v1/audio-analysis/3HEC...https://api.spotify.com/v1/audio-analysis/3qch...
artist_id3WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl2...3WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl23WrFJ7ztbogyGnTHbHJFl2
artist_nameThe BeatlesThe BeatlesThe BeatlesThe BeatlesThe BeatlesThe BeatlesThe BeatlesThe BeatlesThe BeatlesThe Beatles...The BeatlesThe BeatlesThe BeatlesThe BeatlesThe BeatlesThe BeatlesThe BeatlesThe BeatlesThe BeatlesThe Beatles
artists[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s......[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...
available_markets[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C......[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...
ctitlewild honey pieflyingkansas city heyheyheyheywhen im sixtyfourtwist and shoutshes a womandizzy miss lizzyticket to ridecant buy me lovethings we said today...good morning good morningsgt peppers lonely hearts club band reprisea day in the lifesgt peppers lonely hearts club bandwith a little help from my friendslucy in the sky with diamondsgetting betterfixing a holeshes leaving homebeing for the benefit of mr kite
danceability0.7920.5510.5880.8180.3110.1880.4060.390.20.307...0.5160.5760.3390.5830.9130.4230.730.5910.4430.595
disc_number1112111111...1112222222
duration_ms5297313552015814717865393507192053219733146240134867138733...15446780600330920156440196520238867138533207840229120187213
energy0.7630.3950.7240.2310.8220.8850.8670.7790.8490.637...0.7740.9450.4460.6870.6030.3610.4590.5540.1180.378
explicitFalseFalseFalseFalseFalseFalseFalseFalseFalseFalse...FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse
external_ids{'isrc': 'GBAYE0601648'}{'isrc': 'GBAYE0601635'}{'isrc': 'GBAYE0601457'}{'isrc': 'GBUM71701196'}{'isrc': 'GBUM71603960'}{'isrc': 'GBUM71603957'}{'isrc': 'GBUM71603952'}{'isrc': 'GBUM71603959'}{'isrc': 'GBUM71603951'}{'isrc': 'GBUM71603958'}...{'isrc': 'GBUM71700950'}{'isrc': 'GBUM71700957'}{'isrc': 'GBUM71700946'}{'isrc': 'GBUM71701188'}{'isrc': 'GBUM71701189'}{'isrc': 'GBUM71701190'}{'isrc': 'GBUM71701191'}{'isrc': 'GBUM71701192'}{'isrc': 'GBUM71701193'}{'isrc': 'GBUM71701194'}
external_urls{'spotify': 'https://open.spotify.com/track/2u...{'spotify': 'https://open.spotify.com/track/2z...{'spotify': 'https://open.spotify.com/track/3c...{'spotify': 'https://open.spotify.com/track/5c...{'spotify': 'https://open.spotify.com/track/4e...{'spotify': 'https://open.spotify.com/track/15...{'spotify': 'https://open.spotify.com/track/1f...{'spotify': 'https://open.spotify.com/track/0G...{'spotify': 'https://open.spotify.com/track/1e...{'spotify': 'https://open.spotify.com/track/2p......{'spotify': 'https://open.spotify.com/track/3p...{'spotify': 'https://open.spotify.com/track/5T...{'spotify': 'https://open.spotify.com/track/3Z...{'spotify': 'https://open.spotify.com/track/2B...{'spotify': 'https://open.spotify.com/track/1a...{'spotify': 'https://open.spotify.com/track/1k...{'spotify': 'https://open.spotify.com/track/42...{'spotify': 'https://open.spotify.com/track/5J...{'spotify': 'https://open.spotify.com/track/3H...{'spotify': 'https://open.spotify.com/track/3q...
hrefhttps://api.spotify.com/v1/tracks/2ucFulEWapRA...https://api.spotify.com/v1/tracks/2z1p43SNSbeo...https://api.spotify.com/v1/tracks/3ckvsHnEffhh...https://api.spotify.com/v1/tracks/5cXiWs6VoLlD...https://api.spotify.com/v1/tracks/4edArG2VehvJ...https://api.spotify.com/v1/tracks/150EAeMGWJRu...https://api.spotify.com/v1/tracks/1fVeHYkyMxrj...https://api.spotify.com/v1/tracks/0GRplBEB2FWC...https://api.spotify.com/v1/tracks/1eVymk74iroq...https://api.spotify.com/v1/tracks/2p5a9gu6NECV......https://api.spotify.com/v1/tracks/3pY5chBSUotR...https://api.spotify.com/v1/tracks/5ToEv4nDN51O...https://api.spotify.com/v1/tracks/3ZFPe2aiLQuE...https://api.spotify.com/v1/tracks/2BOawXVznHmi...https://api.spotify.com/v1/tracks/1alxZZpi5dBL...https://api.spotify.com/v1/tracks/1k1kJBeaL3FC...https://api.spotify.com/v1/tracks/42uZOBjvKNv4...https://api.spotify.com/v1/tracks/5JnPM6eKhHJt...https://api.spotify.com/v1/tracks/3HEC6nzAo3U5...https://api.spotify.com/v1/tracks/3qchAN1uJ1Ki...
id2ucFulEWapRAmTn7l6f5Q72z1p43SNSbeowzy8WdYHNk3ckvsHnEffhhS5c0Cs6Gv55cXiWs6VoLlDlowJQo0UPk4edArG2VehvJdwOZfYOxtK150EAeMGWJRubuH8zyx7h81fVeHYkyMxrjbjRAD9uWsZ0GRplBEB2FWCKutwMmS6nY1eVymk74iroqhsZxm0Vy3g2p5a9gu6NECVSvBtGSU1vm...3pY5chBSUotRa6RoIfwJjc5ToEv4nDN51OyAjK65A9YS3ZFPe2aiLQuEfDxSqQstZp2BOawXVznHmi2KJzRFstBN1alxZZpi5dBLcmV3WkYIzN1k1kJBeaL3FCUG2vOJ1z0g42uZOBjvKNv4QKnBmjOwb05JnPM6eKhHJtkWfS6ymUMF3HEC6nzAo3U5z7blaCNBcF3qchAN1uJ1KiF8yxmqb3Ov
ignoreNaNNaNNaNNaNTrueTrueTrueTrueTrueTrue...NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
instrumentalness0.6270.888.92e-0502.04e-062.42e-050.000141000...00.1240.0001770.01740.5314.31e-050.1217.85e-050.9288.96e-06
key20772911955...2040620540
liveness0.7890.09320.8770.07470.5080.850.4960.3660.8940.756...0.50.4630.90.6680.1540.1060.1830.04370.1250.432
loudness-11.185-14.755-6.63-11.951-8.696-8.189-6.879-8.007-7.606-8.35...-6.955-5.376-10.854-7.932-7.878-12.382-10.511-7.154-12.964-11.467
lyrical_density0.1698980NaNNaN2.823320.5779650.7964211.853121.475531.29746...1.281831.004960.6406381.06751.516390.7786761.234360.7024630.9994760.806568
lyricshoney pie honey pie i love you honey pieNaNNaNNaNwell shake it up baby now (shake it up baby) t...my love don't give me presents i know that she...{intro} you make me dizzy miss lizzy the way y...i think i'm going to be sad i think it's today...can't buy me love love can't buy me love i'll ...you say you will love me if i have to go you'l......nothing to do to save his life call his wife i...(1234) (bye) we're sgt pepper's lonely hearts ...i read the news today oh boy about a lucky man...it was twenty years ago today sgt pepper taugh...billy shears what would you think if i sang ou...picture yourself in a boat on a river with tan...it's getting better all the time i used to get...i'm fixing a hole where the rain gets in and s...wednesday morning at five o'clock as the day b...for the benefit of mr kite there will be a sho...
mode1111110111...1101011111
nameWild Honey Pie - RemasteredFlying - Remastered 2009Kansas City / Hey-Hey-Hey-Hey - RemasteredWhen I'm Sixty-Four - Take 2Twist And Shout - Live / RemasteredShe's A Woman - Live / RemasteredDizzy Miss Lizzy - Live / RemasteredTicket To Ride - Live / RemasteredCan't Buy Me Love - Live / RemasteredThings We Said Today - Live / Remastered...Good Morning Good Morning - RemixSgt. Pepper's Lonely Hearts Club Band (Reprise...A Day In The Life - RemixSgt. Pepper's Lonely Hearts Club Band - Take 9...With A Little Help From My Friends - Take 1 / ...Lucy In The Sky With Diamonds - Take 1Getting Better - Take 1 / Instrumental And Spe...Fixing A Hole - Speech And Take 3She's Leaving Home - Take 1 / InstrumentalBeing For The Benefit Of Mr. Kite! - Take 4
nnrc_sentiment{'joy': 0.25, 'positive': 1.0}NaNNaNNaN{'anger': 0.2727272727272727, 'surprise': 0.36...{'anger': 0.4, 'trust': 0.4, 'sadness': 0.6, '...{'anger': 0.1, 'surprise': 0.1, 'negative': 0....{'anger': 0.3333333333333333, 'fear': 0.333333...{'anger': 0.2857142857142857, 'surprise': 0.28...{'anger': 0.07692307692307693, 'trust': 0.1538......{'anger': 0.06666666666666667, 'trust': 0.8666...{'anger': 1.0, 'trust': 0.18181818181818182, '...{'trust': 0.625, 'fear': 0.125, 'surprise': 0....{'anger': 0.7, 'trust': 1.0, 'sadness': 1.0, '...{'fear': 0.125, 'negative': 0.125, 'joy': 1.0,...{'surprise': 0.14285714285714285, 'negative': ...{'anger': 0.42857142857142855, 'disgust': 0.57...{'anger': 0.2, 'sadness': 0.2, 'negative': 1.0...{'anger': 0.4, 'trust': 0.6, 'sadness': 0.2, '...{'anger': 0.09090909090909091, 'trust': 0.7272...
nrc_sentiment{'joy': 1, 'positive': 4}NaNNaNNaN{'anger': 3, 'surprise': 4, 'positive': 11, 't...{'anger': 2, 'trust': 2, 'fear': 1, 'surprise'...{'anger': 1, 'surprise': 1, 'negative': 9, 'jo...{'anger': 2, 'fear': 2, 'negative': 2, 'joy': ...{'anger': 10, 'surprise': 10, 'positive': 35, ...{'anger': 1, 'trust': 2, 'fear': 1, 'surprise'......{'anger': 1, 'trust': 13, 'fear': 2, 'surprise...{'anger': 11, 'trust': 2, 'fear': 11, 'surpris...{'trust': 5, 'fear': 1, 'surprise': 2, 'negati...{'anger': 7, 'trust': 10, 'fear': 8, 'surprise...{'fear': 1, 'negative': 1, 'joy': 8, 'trust': ...{'surprise': 2, 'negative': 1, 'positive': 14,...{'anger': 3, 'disgust': 4, 'fear': 3, 'surpris...{'anger': 1, 'fear': 1, 'negative': 5, 'positi...{'anger': 4, 'trust': 6, 'fear': 1, 'surprise'...{'anger': 1, 'trust': 8, 'fear': 2, 'surprise'...
original_lyrics\\n\\nHoney Pie\\nHoney Pie\\nI love you, Honey Pi...\\n\\n[Instrumental]\\n\\nNaNNaN\\n\\n[Verse 1]\\nWell shake it up baby now (shak...\\n\\n[Chorus]\\nMy love don't give me presents\\n...\\n\\n{Intro}\\n\\nYou make me dizzy, Miss Lizzy\\n...\\n\\n[Verse 1]\\nI think I'm going to be sad\\nI ...\\n\\n[Chorus 1]\\nCan't buy me love, love\\nCan't...\\n\\n[Verse 1]\\nYou say you will love me\\nIf I ......\\n\\n[Verse 1]\\nNothing to do to save his life ...\\n\\n[Intro]\\n(1,2,3,4)\\n\\n(Bye!)\\n\\n[Verse]\\nW...\\n\\n[Verse 1: John Lennon]\\nI read the news to...\\n\\n[Verse 1]\\nIt was twenty years ago today\\n...\\n\\n[Segue]\\nBilly Shears!\\n\\n[Verse 1]\\nWhat ...\\n\\n[Verse 1]\\nPicture yourself in a boat on a...\\n\\n[Intro]\\nIt's getting better all the time\\...\\n\\n[Chorus]\\nI'm fixing a hole where the rain...\\n\\n[Verse 1]\\nWednesday morning at five o'clo...\\n\\n[Verse 1]\\nFor the benefit of Mr. Kite\\nTh...
popularity44453935484645454543...40414439383736353535
preview_urlNoneNoneNoneNoneNoneNoneNoneNoneNoneNone...NoneNoneNoneNoneNoneNoneNoneNoneNoneNone
sentiment{'label': 'pos', 'probability': {'pos': 0.6088...NaNNaNNaN{'label': 'pos', 'probability': {'pos': 0.5000...{'label': 'neutral', 'probability': {'pos': 0....{'label': 'neg', 'probability': {'pos': 0.4047...{'label': 'neg', 'probability': {'pos': 0.1745...{'label': 'neg', 'probability': {'pos': 0.2616...{'label': 'neg', 'probability': {'pos': 0.3672......{'label': 'neutral', 'probability': {'pos': 0....{'label': 'pos', 'probability': {'pos': 0.5616...{'label': 'neutral', 'probability': {'pos': 0....{'label': 'pos', 'probability': {'pos': 0.7184...{'label': 'neg', 'probability': {'pos': 0.4475...{'label': 'neutral', 'probability': {'pos': 0....{'label': 'neg', 'probability': {'pos': 0.1925...{'label': 'neg', 'probability': {'pos': 0.2385...{'label': 'neutral', 'probability': {'pos': 0....{'label': 'neutral', 'probability': {'pos': 0....
speechiness0.05060.05010.03350.1270.03950.06620.04610.04230.05710.0392...0.08950.05470.04530.07310.1070.04810.07290.05380.03690.0488
tempo89.992.929131.36132.645126.441175.86129.417121.216173.283146.636...121.559118.77880.89594.509111.38899.567127.565113.629127.648111.717
time_signature4444444444...4444444434
track_hrefhttps://api.spotify.com/v1/tracks/2ucFulEWapRA...https://api.spotify.com/v1/tracks/2z1p43SNSbeo...https://api.spotify.com/v1/tracks/3ckvsHnEffhh...https://api.spotify.com/v1/tracks/5cXiWs6VoLlD...https://api.spotify.com/v1/tracks/4edArG2VehvJ...https://api.spotify.com/v1/tracks/150EAeMGWJRu...https://api.spotify.com/v1/tracks/1fVeHYkyMxrj...https://api.spotify.com/v1/tracks/0GRplBEB2FWC...https://api.spotify.com/v1/tracks/1eVymk74iroq...https://api.spotify.com/v1/tracks/2p5a9gu6NECV......https://api.spotify.com/v1/tracks/3pY5chBSUotR...https://api.spotify.com/v1/tracks/5ToEv4nDN51O...https://api.spotify.com/v1/tracks/3ZFPe2aiLQuE...https://api.spotify.com/v1/tracks/2BOawXVznHmi...https://api.spotify.com/v1/tracks/1alxZZpi5dBL...https://api.spotify.com/v1/tracks/1k1kJBeaL3FC...https://api.spotify.com/v1/tracks/42uZOBjvKNv4...https://api.spotify.com/v1/tracks/5JnPM6eKhHJt...https://api.spotify.com/v1/tracks/3HEC6nzAo3U5...https://api.spotify.com/v1/tracks/3qchAN1uJ1Ki...
track_number5379123456...1112131234567
typeaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_features...audio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_features
urispotify:track:2ucFulEWapRAmTn7l6f5Q7spotify:track:2z1p43SNSbeowzy8WdYHNkspotify:track:3ckvsHnEffhhS5c0Cs6Gv5spotify:track:5cXiWs6VoLlDlowJQo0UPkspotify:track:4edArG2VehvJdwOZfYOxtKspotify:track:150EAeMGWJRubuH8zyx7h8spotify:track:1fVeHYkyMxrjbjRAD9uWsZspotify:track:0GRplBEB2FWCKutwMmS6nYspotify:track:1eVymk74iroqhsZxm0Vy3gspotify:track:2p5a9gu6NECVSvBtGSU1vm...spotify:track:3pY5chBSUotRa6RoIfwJjcspotify:track:5ToEv4nDN51OyAjK65A9YSspotify:track:3ZFPe2aiLQuEfDxSqQstZpspotify:track:2BOawXVznHmi2KJzRFstBNspotify:track:1alxZZpi5dBLcmV3WkYIzNspotify:track:1k1kJBeaL3FCUG2vOJ1z0gspotify:track:42uZOBjvKNv4QKnBmjOwb0spotify:track:5JnPM6eKhHJtkWfS6ymUMFspotify:track:3HEC6nzAo3U5z7blaCNBcFspotify:track:3qchAN1uJ1KiF8yxmqb3Ov
valence0.1520.2610.9240.4620.6130.590.7560.4090.6770.368...0.8490.7940.1330.50.380.3280.330.6410.1840.536
\n", "

42 rows × 261 columns

\n", "
" ], "text/plain": [ " 0 \\\n", "_id 2ucFulEWapRAmTn7l6f5Q7 \n", "acousticness 0.425 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 03Qh833fEdVT30Pfs93ea6 \n", "analysis_url https://api.spotify.com/v1/audio-analysis/2ucF... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle wild honey pie \n", "danceability 0.792 \n", "disc_number 1 \n", "duration_ms 52973 \n", "energy 0.763 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE0601648'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/2u... \n", "href https://api.spotify.com/v1/tracks/2ucFulEWapRA... \n", "id 2ucFulEWapRAmTn7l6f5Q7 \n", "ignore NaN \n", "instrumentalness 0.627 \n", "key 2 \n", "liveness 0.789 \n", "loudness -11.185 \n", "lyrical_density 0.169898 \n", "lyrics honey pie honey pie i love you honey pie \n", "mode 1 \n", "name Wild Honey Pie - Remastered \n", "nnrc_sentiment {'joy': 0.25, 'positive': 1.0} \n", "nrc_sentiment {'joy': 1, 'positive': 4} \n", "original_lyrics \\n\\nHoney Pie\\nHoney Pie\\nI love you, Honey Pi... \n", "popularity 44 \n", "preview_url None \n", "sentiment {'label': 'pos', 'probability': {'pos': 0.6088... \n", "speechiness 0.0506 \n", "tempo 89.9 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/2ucFulEWapRA... \n", "track_number 5 \n", "type audio_features \n", "uri spotify:track:2ucFulEWapRAmTn7l6f5Q7 \n", "valence 0.152 \n", "\n", " 1 \\\n", "_id 2z1p43SNSbeowzy8WdYHNk \n", "acousticness 0.368 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 6P9yO0ukhOx3dvmhGKeYoC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/2z1p... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle flying \n", "danceability 0.551 \n", "disc_number 1 \n", "duration_ms 135520 \n", "energy 0.395 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE0601635'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/2z... \n", "href https://api.spotify.com/v1/tracks/2z1p43SNSbeo... \n", "id 2z1p43SNSbeowzy8WdYHNk \n", "ignore NaN \n", "instrumentalness 0.88 \n", "key 0 \n", "liveness 0.0932 \n", "loudness -14.755 \n", "lyrical_density 0 \n", "lyrics NaN \n", "mode 1 \n", "name Flying - Remastered 2009 \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics \\n\\n[Instrumental]\\n\\n \n", "popularity 45 \n", "preview_url None \n", "sentiment NaN \n", "speechiness 0.0501 \n", "tempo 92.929 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/2z1p43SNSbeo... \n", "track_number 3 \n", "type audio_features \n", "uri spotify:track:2z1p43SNSbeowzy8WdYHNk \n", "valence 0.261 \n", "\n", " 2 \\\n", "_id 3ckvsHnEffhhS5c0Cs6Gv5 \n", "acousticness 0.614 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 7BgGBZndAvDlKOcwe5rscZ \n", "analysis_url https://api.spotify.com/v1/audio-analysis/3ckv... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle kansas city heyheyheyhey \n", "danceability 0.588 \n", "disc_number 1 \n", "duration_ms 158147 \n", "energy 0.724 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE0601457'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/3c... \n", "href https://api.spotify.com/v1/tracks/3ckvsHnEffhh... \n", "id 3ckvsHnEffhhS5c0Cs6Gv5 \n", "ignore NaN \n", "instrumentalness 8.92e-05 \n", "key 7 \n", "liveness 0.877 \n", "loudness -6.63 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Kansas City / Hey-Hey-Hey-Hey - Remastered \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 39 \n", "preview_url None \n", "sentiment NaN \n", "speechiness 0.0335 \n", "tempo 131.36 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/3ckvsHnEffhh... \n", "track_number 7 \n", "type audio_features \n", "uri spotify:track:3ckvsHnEffhhS5c0Cs6Gv5 \n", "valence 0.924 \n", "\n", " 3 \\\n", "_id 5cXiWs6VoLlDlowJQo0UPk \n", "acousticness 0.22 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3LXItxKnnJcEDc5QdTc00n \n", "analysis_url https://api.spotify.com/v1/audio-analysis/5cXi... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle when im sixtyfour \n", "danceability 0.818 \n", "disc_number 2 \n", "duration_ms 178653 \n", "energy 0.231 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71701196'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/5c... \n", "href https://api.spotify.com/v1/tracks/5cXiWs6VoLlD... \n", "id 5cXiWs6VoLlDlowJQo0UPk \n", "ignore NaN \n", "instrumentalness 0 \n", "key 7 \n", "liveness 0.0747 \n", "loudness -11.951 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name When I'm Sixty-Four - Take 2 \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 35 \n", "preview_url None \n", "sentiment NaN \n", "speechiness 0.127 \n", "tempo 132.645 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/5cXiWs6VoLlD... \n", "track_number 9 \n", "type audio_features \n", "uri spotify:track:5cXiWs6VoLlDlowJQo0UPk \n", "valence 0.462 \n", "\n", " 4 \\\n", "_id 4edArG2VehvJdwOZfYOxtK \n", "acousticness 7.67e-05 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 5XfJmldgWzrc1AIdbBaVZn \n", "analysis_url https://api.spotify.com/v1/audio-analysis/4edA... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle twist and shout \n", "danceability 0.311 \n", "disc_number 1 \n", "duration_ms 93507 \n", "energy 0.822 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71603960'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/4e... \n", "href https://api.spotify.com/v1/tracks/4edArG2VehvJ... \n", "id 4edArG2VehvJdwOZfYOxtK \n", "ignore True \n", "instrumentalness 2.04e-06 \n", "key 2 \n", "liveness 0.508 \n", "loudness -8.696 \n", "lyrical_density 2.82332 \n", "lyrics well shake it up baby now (shake it up baby) t... \n", "mode 1 \n", "name Twist And Shout - Live / Remastered \n", "nnrc_sentiment {'anger': 0.2727272727272727, 'surprise': 0.36... \n", "nrc_sentiment {'anger': 3, 'surprise': 4, 'positive': 11, 't... \n", "original_lyrics \\n\\n[Verse 1]\\nWell shake it up baby now (shak... \n", "popularity 48 \n", "preview_url None \n", "sentiment {'label': 'pos', 'probability': {'pos': 0.5000... \n", "speechiness 0.0395 \n", "tempo 126.441 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/4edArG2VehvJ... \n", "track_number 1 \n", "type audio_features \n", "uri spotify:track:4edArG2VehvJdwOZfYOxtK \n", "valence 0.613 \n", "\n", " 5 \\\n", "_id 150EAeMGWJRubuH8zyx7h8 \n", "acousticness 0.00675 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 5XfJmldgWzrc1AIdbBaVZn \n", "analysis_url https://api.spotify.com/v1/audio-analysis/150E... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle shes a woman \n", "danceability 0.188 \n", "disc_number 1 \n", "duration_ms 192053 \n", "energy 0.885 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71603957'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/15... \n", "href https://api.spotify.com/v1/tracks/150EAeMGWJRu... \n", "id 150EAeMGWJRubuH8zyx7h8 \n", "ignore True \n", "instrumentalness 2.42e-05 \n", "key 9 \n", "liveness 0.85 \n", "loudness -8.189 \n", "lyrical_density 0.577965 \n", "lyrics my love don't give me presents i know that she... \n", "mode 1 \n", "name She's A Woman - Live / Remastered \n", "nnrc_sentiment {'anger': 0.4, 'trust': 0.4, 'sadness': 0.6, '... \n", "nrc_sentiment {'anger': 2, 'trust': 2, 'fear': 1, 'surprise'... \n", "original_lyrics \\n\\n[Chorus]\\nMy love don't give me presents\\n... \n", "popularity 46 \n", "preview_url None \n", "sentiment {'label': 'neutral', 'probability': {'pos': 0.... \n", "speechiness 0.0662 \n", "tempo 175.86 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/150EAeMGWJRu... \n", "track_number 2 \n", "type audio_features \n", "uri spotify:track:150EAeMGWJRubuH8zyx7h8 \n", "valence 0.59 \n", "\n", " 6 \\\n", "_id 1fVeHYkyMxrjbjRAD9uWsZ \n", "acousticness 0.0131 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 5XfJmldgWzrc1AIdbBaVZn \n", "analysis_url https://api.spotify.com/v1/audio-analysis/1fVe... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle dizzy miss lizzy \n", "danceability 0.406 \n", "disc_number 1 \n", "duration_ms 219733 \n", "energy 0.867 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71603952'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/1f... \n", "href https://api.spotify.com/v1/tracks/1fVeHYkyMxrj... \n", "id 1fVeHYkyMxrjbjRAD9uWsZ \n", "ignore True \n", "instrumentalness 0.000141 \n", "key 11 \n", "liveness 0.496 \n", "loudness -6.879 \n", "lyrical_density 0.796421 \n", "lyrics {intro} you make me dizzy miss lizzy the way y... \n", "mode 0 \n", "name Dizzy Miss Lizzy - Live / Remastered \n", "nnrc_sentiment {'anger': 0.1, 'surprise': 0.1, 'negative': 0.... \n", "nrc_sentiment {'anger': 1, 'surprise': 1, 'negative': 9, 'jo... \n", "original_lyrics \\n\\n{Intro}\\n\\nYou make me dizzy, Miss Lizzy\\n... \n", "popularity 45 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.4047... \n", "speechiness 0.0461 \n", "tempo 129.417 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/1fVeHYkyMxrj... \n", "track_number 3 \n", "type audio_features \n", "uri spotify:track:1fVeHYkyMxrjbjRAD9uWsZ \n", "valence 0.756 \n", "\n", " 7 \\\n", "_id 0GRplBEB2FWCKutwMmS6nY \n", "acousticness 0.00327 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 5XfJmldgWzrc1AIdbBaVZn \n", "analysis_url https://api.spotify.com/v1/audio-analysis/0GRp... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle ticket to ride \n", "danceability 0.39 \n", "disc_number 1 \n", "duration_ms 146240 \n", "energy 0.779 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71603959'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/0G... \n", "href https://api.spotify.com/v1/tracks/0GRplBEB2FWC... \n", "id 0GRplBEB2FWCKutwMmS6nY \n", "ignore True \n", "instrumentalness 0 \n", "key 9 \n", "liveness 0.366 \n", "loudness -8.007 \n", "lyrical_density 1.85312 \n", "lyrics i think i'm going to be sad i think it's today... \n", "mode 1 \n", "name Ticket To Ride - Live / Remastered \n", "nnrc_sentiment {'anger': 0.3333333333333333, 'fear': 0.333333... \n", "nrc_sentiment {'anger': 2, 'fear': 2, 'negative': 2, 'joy': ... \n", "original_lyrics \\n\\n[Verse 1]\\nI think I'm going to be sad\\nI ... \n", "popularity 45 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.1745... \n", "speechiness 0.0423 \n", "tempo 121.216 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/0GRplBEB2FWC... \n", "track_number 4 \n", "type audio_features \n", "uri spotify:track:0GRplBEB2FWCKutwMmS6nY \n", "valence 0.409 \n", "\n", " 8 \\\n", "_id 1eVymk74iroqhsZxm0Vy3g \n", "acousticness 0.00865 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 5XfJmldgWzrc1AIdbBaVZn \n", "analysis_url https://api.spotify.com/v1/audio-analysis/1eVy... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle cant buy me love \n", "danceability 0.2 \n", "disc_number 1 \n", "duration_ms 134867 \n", "energy 0.849 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71603951'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/1e... \n", "href https://api.spotify.com/v1/tracks/1eVymk74iroq... \n", "id 1eVymk74iroqhsZxm0Vy3g \n", "ignore True \n", "instrumentalness 0 \n", "key 5 \n", "liveness 0.894 \n", "loudness -7.606 \n", "lyrical_density 1.47553 \n", "lyrics can't buy me love love can't buy me love i'll ... \n", "mode 1 \n", "name Can't Buy Me Love - Live / Remastered \n", "nnrc_sentiment {'anger': 0.2857142857142857, 'surprise': 0.28... \n", "nrc_sentiment {'anger': 10, 'surprise': 10, 'positive': 35, ... \n", "original_lyrics \\n\\n[Chorus 1]\\nCan't buy me love, love\\nCan't... \n", "popularity 45 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.2616... \n", "speechiness 0.0571 \n", "tempo 173.283 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/1eVymk74iroq... \n", "track_number 5 \n", "type audio_features \n", "uri spotify:track:1eVymk74iroqhsZxm0Vy3g \n", "valence 0.677 \n", "\n", " 9 \\\n", "_id 2p5a9gu6NECVSvBtGSU1vm \n", "acousticness 0.0836 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 5XfJmldgWzrc1AIdbBaVZn \n", "analysis_url https://api.spotify.com/v1/audio-analysis/2p5a... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle things we said today \n", "danceability 0.307 \n", "disc_number 1 \n", "duration_ms 138733 \n", "energy 0.637 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71603958'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/2p... \n", "href https://api.spotify.com/v1/tracks/2p5a9gu6NECV... \n", "id 2p5a9gu6NECVSvBtGSU1vm \n", "ignore True \n", "instrumentalness 0 \n", "key 5 \n", "liveness 0.756 \n", "loudness -8.35 \n", "lyrical_density 1.29746 \n", "lyrics you say you will love me if i have to go you'l... \n", "mode 1 \n", "name Things We Said Today - Live / Remastered \n", "nnrc_sentiment {'anger': 0.07692307692307693, 'trust': 0.1538... \n", "nrc_sentiment {'anger': 1, 'trust': 2, 'fear': 1, 'surprise'... \n", "original_lyrics \\n\\n[Verse 1]\\nYou say you will love me\\nIf I ... \n", "popularity 43 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.3672... \n", "speechiness 0.0392 \n", "tempo 146.636 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/2p5a9gu6NECV... \n", "track_number 6 \n", "type audio_features \n", "uri spotify:track:2p5a9gu6NECVSvBtGSU1vm \n", "valence 0.368 \n", "\n", " ... \\\n", "_id ... \n", "acousticness ... \n", "album ... \n", "album_id ... \n", "analysis_url ... \n", "artist_id ... \n", "artist_name ... \n", "artists ... \n", "available_markets ... \n", "ctitle ... \n", "danceability ... \n", "disc_number ... \n", "duration_ms ... \n", "energy ... \n", "explicit ... \n", "external_ids ... \n", "external_urls ... \n", "href ... \n", "id ... \n", "ignore ... \n", "instrumentalness ... \n", "key ... \n", "liveness ... \n", "loudness ... \n", "lyrical_density ... \n", "lyrics ... \n", "mode ... \n", "name ... \n", "nnrc_sentiment ... \n", "nrc_sentiment ... \n", "original_lyrics ... \n", "popularity ... \n", "preview_url ... \n", "sentiment ... \n", "speechiness ... \n", "tempo ... \n", "time_signature ... \n", "track_href ... \n", "track_number ... \n", "type ... \n", "uri ... \n", "valence ... \n", "\n", " 251 \\\n", "_id 3pY5chBSUotRa6RoIfwJjc \n", "acousticness 0.000366 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3LXItxKnnJcEDc5QdTc00n \n", "analysis_url https://api.spotify.com/v1/audio-analysis/3pY5... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle good morning good morning \n", "danceability 0.516 \n", "disc_number 1 \n", "duration_ms 154467 \n", "energy 0.774 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71700950'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/3p... \n", "href https://api.spotify.com/v1/tracks/3pY5chBSUotR... \n", "id 3pY5chBSUotRa6RoIfwJjc \n", "ignore NaN \n", "instrumentalness 0 \n", "key 2 \n", "liveness 0.5 \n", "loudness -6.955 \n", "lyrical_density 1.28183 \n", "lyrics nothing to do to save his life call his wife i... \n", "mode 1 \n", "name Good Morning Good Morning - Remix \n", "nnrc_sentiment {'anger': 0.06666666666666667, 'trust': 0.8666... \n", "nrc_sentiment {'anger': 1, 'trust': 13, 'fear': 2, 'surprise... \n", "original_lyrics \\n\\n[Verse 1]\\nNothing to do to save his life ... \n", "popularity 40 \n", "preview_url None \n", "sentiment {'label': 'neutral', 'probability': {'pos': 0.... \n", "speechiness 0.0895 \n", "tempo 121.559 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/3pY5chBSUotR... \n", "track_number 11 \n", "type audio_features \n", "uri spotify:track:3pY5chBSUotRa6RoIfwJjc \n", "valence 0.849 \n", "\n", " 252 \\\n", "_id 5ToEv4nDN51OyAjK65A9YS \n", "acousticness 0.000236 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3LXItxKnnJcEDc5QdTc00n \n", "analysis_url https://api.spotify.com/v1/audio-analysis/5ToE... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle sgt peppers lonely hearts club band reprise \n", "danceability 0.576 \n", "disc_number 1 \n", "duration_ms 80600 \n", "energy 0.945 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71700957'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/5T... \n", "href https://api.spotify.com/v1/tracks/5ToEv4nDN51O... \n", "id 5ToEv4nDN51OyAjK65A9YS \n", "ignore NaN \n", "instrumentalness 0.124 \n", "key 0 \n", "liveness 0.463 \n", "loudness -5.376 \n", "lyrical_density 1.00496 \n", "lyrics (1234) (bye) we're sgt pepper's lonely hearts ... \n", "mode 1 \n", "name Sgt. Pepper's Lonely Hearts Club Band (Reprise... \n", "nnrc_sentiment {'anger': 1.0, 'trust': 0.18181818181818182, '... \n", "nrc_sentiment {'anger': 11, 'trust': 2, 'fear': 11, 'surpris... \n", "original_lyrics \\n\\n[Intro]\\n(1,2,3,4)\\n\\n(Bye!)\\n\\n[Verse]\\nW... \n", "popularity 41 \n", "preview_url None \n", "sentiment {'label': 'pos', 'probability': {'pos': 0.5616... \n", "speechiness 0.0547 \n", "tempo 118.778 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/5ToEv4nDN51O... \n", "track_number 12 \n", "type audio_features \n", "uri spotify:track:5ToEv4nDN51OyAjK65A9YS \n", "valence 0.794 \n", "\n", " 253 \\\n", "_id 3ZFPe2aiLQuEfDxSqQstZp \n", "acousticness 0.254 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3LXItxKnnJcEDc5QdTc00n \n", "analysis_url https://api.spotify.com/v1/audio-analysis/3ZFP... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle a day in the life \n", "danceability 0.339 \n", "disc_number 1 \n", "duration_ms 330920 \n", "energy 0.446 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71700946'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/3Z... \n", "href https://api.spotify.com/v1/tracks/3ZFPe2aiLQuE... \n", "id 3ZFPe2aiLQuEfDxSqQstZp \n", "ignore NaN \n", "instrumentalness 0.000177 \n", "key 4 \n", "liveness 0.9 \n", "loudness -10.854 \n", "lyrical_density 0.640638 \n", "lyrics i read the news today oh boy about a lucky man... \n", "mode 0 \n", "name A Day In The Life - Remix \n", "nnrc_sentiment {'trust': 0.625, 'fear': 0.125, 'surprise': 0.... \n", "nrc_sentiment {'trust': 5, 'fear': 1, 'surprise': 2, 'negati... \n", "original_lyrics \\n\\n[Verse 1: John Lennon]\\nI read the news to... \n", "popularity 44 \n", "preview_url None \n", "sentiment {'label': 'neutral', 'probability': {'pos': 0.... \n", "speechiness 0.0453 \n", "tempo 80.895 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/3ZFPe2aiLQuE... \n", "track_number 13 \n", "type audio_features \n", "uri spotify:track:3ZFPe2aiLQuEfDxSqQstZp \n", "valence 0.133 \n", "\n", " 254 \\\n", "_id 2BOawXVznHmi2KJzRFstBN \n", "acousticness 0.291 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3LXItxKnnJcEDc5QdTc00n \n", "analysis_url https://api.spotify.com/v1/audio-analysis/2BOa... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle sgt peppers lonely hearts club band \n", "danceability 0.583 \n", "disc_number 2 \n", "duration_ms 156440 \n", "energy 0.687 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71701188'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/2B... \n", "href https://api.spotify.com/v1/tracks/2BOawXVznHmi... \n", "id 2BOawXVznHmi2KJzRFstBN \n", "ignore NaN \n", "instrumentalness 0.0174 \n", "key 0 \n", "liveness 0.668 \n", "loudness -7.932 \n", "lyrical_density 1.0675 \n", "lyrics it was twenty years ago today sgt pepper taugh... \n", "mode 1 \n", "name Sgt. Pepper's Lonely Hearts Club Band - Take 9... \n", "nnrc_sentiment {'anger': 0.7, 'trust': 1.0, 'sadness': 1.0, '... \n", "nrc_sentiment {'anger': 7, 'trust': 10, 'fear': 8, 'surprise... \n", "original_lyrics \\n\\n[Verse 1]\\nIt was twenty years ago today\\n... \n", "popularity 39 \n", "preview_url None \n", "sentiment {'label': 'pos', 'probability': {'pos': 0.7184... \n", "speechiness 0.0731 \n", "tempo 94.509 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/2BOawXVznHmi... \n", "track_number 1 \n", "type audio_features \n", "uri spotify:track:2BOawXVznHmi2KJzRFstBN \n", "valence 0.5 \n", "\n", " 255 \\\n", "_id 1alxZZpi5dBLcmV3WkYIzN \n", "acousticness 0.232 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3LXItxKnnJcEDc5QdTc00n \n", "analysis_url https://api.spotify.com/v1/audio-analysis/1alx... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle with a little help from my friends \n", "danceability 0.913 \n", "disc_number 2 \n", "duration_ms 196520 \n", "energy 0.603 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71701189'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/1a... \n", "href https://api.spotify.com/v1/tracks/1alxZZpi5dBL... \n", "id 1alxZZpi5dBLcmV3WkYIzN \n", "ignore NaN \n", "instrumentalness 0.531 \n", "key 6 \n", "liveness 0.154 \n", "loudness -7.878 \n", "lyrical_density 1.51639 \n", "lyrics billy shears what would you think if i sang ou... \n", "mode 0 \n", "name With A Little Help From My Friends - Take 1 / ... \n", "nnrc_sentiment {'fear': 0.125, 'negative': 0.125, 'joy': 1.0,... \n", "nrc_sentiment {'fear': 1, 'negative': 1, 'joy': 8, 'trust': ... \n", "original_lyrics \\n\\n[Segue]\\nBilly Shears!\\n\\n[Verse 1]\\nWhat ... \n", "popularity 38 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.4475... \n", "speechiness 0.107 \n", "tempo 111.388 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/1alxZZpi5dBL... \n", "track_number 2 \n", "type audio_features \n", "uri spotify:track:1alxZZpi5dBLcmV3WkYIzN \n", "valence 0.38 \n", "\n", " 256 \\\n", "_id 1k1kJBeaL3FCUG2vOJ1z0g \n", "acousticness 0.749 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3LXItxKnnJcEDc5QdTc00n \n", "analysis_url https://api.spotify.com/v1/audio-analysis/1k1k... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle lucy in the sky with diamonds \n", "danceability 0.423 \n", "disc_number 2 \n", "duration_ms 238867 \n", "energy 0.361 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71701190'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/1k... \n", "href https://api.spotify.com/v1/tracks/1k1kJBeaL3FC... \n", "id 1k1kJBeaL3FCUG2vOJ1z0g \n", "ignore NaN \n", "instrumentalness 4.31e-05 \n", "key 2 \n", "liveness 0.106 \n", "loudness -12.382 \n", "lyrical_density 0.778676 \n", "lyrics picture yourself in a boat on a river with tan... \n", "mode 1 \n", "name Lucy In The Sky With Diamonds - Take 1 \n", "nnrc_sentiment {'surprise': 0.14285714285714285, 'negative': ... \n", "nrc_sentiment {'surprise': 2, 'negative': 1, 'positive': 14,... \n", "original_lyrics \\n\\n[Verse 1]\\nPicture yourself in a boat on a... \n", "popularity 37 \n", "preview_url None \n", "sentiment {'label': 'neutral', 'probability': {'pos': 0.... \n", "speechiness 0.0481 \n", "tempo 99.567 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/1k1kJBeaL3FC... \n", "track_number 3 \n", "type audio_features \n", "uri spotify:track:1k1kJBeaL3FCUG2vOJ1z0g \n", "valence 0.328 \n", "\n", " 257 \\\n", "_id 42uZOBjvKNv4QKnBmjOwb0 \n", "acousticness 0.447 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3LXItxKnnJcEDc5QdTc00n \n", "analysis_url https://api.spotify.com/v1/audio-analysis/42uZ... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle getting better \n", "danceability 0.73 \n", "disc_number 2 \n", "duration_ms 138533 \n", "energy 0.459 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71701191'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/42... \n", "href https://api.spotify.com/v1/tracks/42uZOBjvKNv4... \n", "id 42uZOBjvKNv4QKnBmjOwb0 \n", "ignore NaN \n", "instrumentalness 0.121 \n", "key 0 \n", "liveness 0.183 \n", "loudness -10.511 \n", "lyrical_density 1.23436 \n", "lyrics it's getting better all the time i used to get... \n", "mode 1 \n", "name Getting Better - Take 1 / Instrumental And Spe... \n", "nnrc_sentiment {'anger': 0.42857142857142855, 'disgust': 0.57... \n", "nrc_sentiment {'anger': 3, 'disgust': 4, 'fear': 3, 'surpris... \n", "original_lyrics \\n\\n[Intro]\\nIt's getting better all the time\\... \n", "popularity 36 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.1925... \n", "speechiness 0.0729 \n", "tempo 127.565 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/42uZOBjvKNv4... \n", "track_number 4 \n", "type audio_features \n", "uri spotify:track:42uZOBjvKNv4QKnBmjOwb0 \n", "valence 0.33 \n", "\n", " 258 \\\n", "_id 5JnPM6eKhHJtkWfS6ymUMF \n", "acousticness 0.162 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3LXItxKnnJcEDc5QdTc00n \n", "analysis_url https://api.spotify.com/v1/audio-analysis/5JnP... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle fixing a hole \n", "danceability 0.591 \n", "disc_number 2 \n", "duration_ms 207840 \n", "energy 0.554 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71701192'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/5J... \n", "href https://api.spotify.com/v1/tracks/5JnPM6eKhHJt... \n", "id 5JnPM6eKhHJtkWfS6ymUMF \n", "ignore NaN \n", "instrumentalness 7.85e-05 \n", "key 5 \n", "liveness 0.0437 \n", "loudness -7.154 \n", "lyrical_density 0.702463 \n", "lyrics i'm fixing a hole where the rain gets in and s... \n", "mode 1 \n", "name Fixing A Hole - Speech And Take 3 \n", "nnrc_sentiment {'anger': 0.2, 'sadness': 0.2, 'negative': 1.0... \n", "nrc_sentiment {'anger': 1, 'fear': 1, 'negative': 5, 'positi... \n", "original_lyrics \\n\\n[Chorus]\\nI'm fixing a hole where the rain... \n", "popularity 35 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.2385... \n", "speechiness 0.0538 \n", "tempo 113.629 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/5JnPM6eKhHJt... \n", "track_number 5 \n", "type audio_features \n", "uri spotify:track:5JnPM6eKhHJtkWfS6ymUMF \n", "valence 0.641 \n", "\n", " 259 \\\n", "_id 3HEC6nzAo3U5z7blaCNBcF \n", "acousticness 0.919 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3LXItxKnnJcEDc5QdTc00n \n", "analysis_url https://api.spotify.com/v1/audio-analysis/3HEC... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle shes leaving home \n", "danceability 0.443 \n", "disc_number 2 \n", "duration_ms 229120 \n", "energy 0.118 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71701193'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/3H... \n", "href https://api.spotify.com/v1/tracks/3HEC6nzAo3U5... \n", "id 3HEC6nzAo3U5z7blaCNBcF \n", "ignore NaN \n", "instrumentalness 0.928 \n", "key 4 \n", "liveness 0.125 \n", "loudness -12.964 \n", "lyrical_density 0.999476 \n", "lyrics wednesday morning at five o'clock as the day b... \n", "mode 1 \n", "name She's Leaving Home - Take 1 / Instrumental \n", "nnrc_sentiment {'anger': 0.4, 'trust': 0.6, 'sadness': 0.2, '... \n", "nrc_sentiment {'anger': 4, 'trust': 6, 'fear': 1, 'surprise'... \n", "original_lyrics \\n\\n[Verse 1]\\nWednesday morning at five o'clo... \n", "popularity 35 \n", "preview_url None \n", "sentiment {'label': 'neutral', 'probability': {'pos': 0.... \n", "speechiness 0.0369 \n", "tempo 127.648 \n", "time_signature 3 \n", "track_href https://api.spotify.com/v1/tracks/3HEC6nzAo3U5... \n", "track_number 6 \n", "type audio_features \n", "uri spotify:track:3HEC6nzAo3U5z7blaCNBcF \n", "valence 0.184 \n", "\n", " 260 \n", "_id 3qchAN1uJ1KiF8yxmqb3Ov \n", "acousticness 0.482 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3LXItxKnnJcEDc5QdTc00n \n", "analysis_url https://api.spotify.com/v1/audio-analysis/3qch... \n", "artist_id 3WrFJ7ztbogyGnTHbHJFl2 \n", "artist_name The Beatles \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle being for the benefit of mr kite \n", "danceability 0.595 \n", "disc_number 2 \n", "duration_ms 187213 \n", "energy 0.378 \n", "explicit False \n", "external_ids {'isrc': 'GBUM71701194'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/3q... \n", "href https://api.spotify.com/v1/tracks/3qchAN1uJ1Ki... \n", "id 3qchAN1uJ1KiF8yxmqb3Ov \n", "ignore NaN \n", "instrumentalness 8.96e-06 \n", "key 0 \n", "liveness 0.432 \n", "loudness -11.467 \n", "lyrical_density 0.806568 \n", "lyrics for the benefit of mr kite there will be a sho... \n", "mode 1 \n", "name Being For The Benefit Of Mr. Kite! - Take 4 \n", "nnrc_sentiment {'anger': 0.09090909090909091, 'trust': 0.7272... \n", "nrc_sentiment {'anger': 1, 'trust': 8, 'fear': 2, 'surprise'... \n", "original_lyrics \\n\\n[Verse 1]\\nFor the benefit of Mr. Kite\\nTh... \n", "popularity 35 \n", "preview_url None \n", "sentiment {'label': 'neutral', 'probability': {'pos': 0.... \n", "speechiness 0.0488 \n", "tempo 111.717 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/3qchAN1uJ1Ki... \n", "track_number 7 \n", "type audio_features \n", "uri spotify:track:3qchAN1uJ1KiF8yxmqb3Ov \n", "valence 0.536 \n", "\n", "[42 rows x 261 columns]" ] }, "execution_count": 18, "metadata": {}, "output_type": "execute_result" } ], "source": [ "beatles_tracks = pd.DataFrame(list(tracks.find({'artist_id': beatles_id})))\n", "beatles_tracks.T" ] }, { "cell_type": "code", "execution_count": 19, "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", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
0123456789...456457458459460461462463464465
_id1jgefM2ZP7RnPVShhy1eUM7FagS2T3y5XwDpYvyHfvmc4pKN6TNF59rJ1PCtPoeppg39OF4xTwA6f5BaIeA9aAwF2uO1HbJhQvmXpjclLmLEeK19LYBNYOMwmDKXvhwq5Ggv56ljxn1tdisThe4xcVe4px2Ax0tajnMzn8bB0jkmGNCK2l4gWzhTj7Yt1IvMTWnSgF7otIbWwB2rkqB3BHl6v296...1F69leTp8WQHMFVQ5gOtIS3nc2vvots8KXJIssvtJvh60cNyluZzzBVbsk2UY7Spca6dx6G9OexgRFCulfKI4sPN6fZKfyDrl9Nph0ifIGvOxs660iobQYqexXXNfRomqz3o6AX8HMe53fbGdNNAnC8LSz16FlhqpxLT6WTfiLVEZ7Vv5UXwp4rKvtXtKJpe0iIctM1tiyUANzZamsPZlHhZBbOd
acousticness0.1480.0005520.0002150.272.35e-050.1090.0240.8590.4830.198...0.3550.3120.01070.0280.03040.01530.0002310.02480.003090.0547
album{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp......{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...
album_id3PbRKFafwE7Of8e4dTee723PbRKFafwE7Of8e4dTee722gCp8kyDcL93s4kVP4VMTC2gCp8kyDcL93s4kVP4VMTC2gCp8kyDcL93s4kVP4VMTC5eTqRwTGKPBUiUuN1rFaXD3CHu7qW160uqPZHW3TMZ1l3CHu7qW160uqPZHW3TMZ1l3CHu7qW160uqPZHW3TMZ1l3CHu7qW160uqPZHW3TMZ1l...6hB5kO3oV3tlnblCNSSA9Z3yNf6JVyEEqvM4OqKEmZSC2gCp8kyDcL93s4kVP4VMTC2gCp8kyDcL93s4kVP4VMTC2gCp8kyDcL93s4kVP4VMTC2gCp8kyDcL93s4kVP4VMTC2gCp8kyDcL93s4kVP4VMTC2gCp8kyDcL93s4kVP4VMTC2gCp8kyDcL93s4kVP4VMTC34d9ClCaKRoQ8pMeJ9Gfvt
analysis_urlhttps://api.spotify.com/v1/audio-analysis/1jge...https://api.spotify.com/v1/audio-analysis/7Fag...https://api.spotify.com/v1/audio-analysis/4pKN...https://api.spotify.com/v1/audio-analysis/39OF...https://api.spotify.com/v1/audio-analysis/2uO1...https://api.spotify.com/v1/audio-analysis/19LY...https://api.spotify.com/v1/audio-analysis/56lj...https://api.spotify.com/v1/audio-analysis/2Ax0...https://api.spotify.com/v1/audio-analysis/2l4g...https://api.spotify.com/v1/audio-analysis/7otI......https://api.spotify.com/v1/audio-analysis/1F69...https://api.spotify.com/v1/audio-analysis/3nc2...https://api.spotify.com/v1/audio-analysis/0cNy...https://api.spotify.com/v1/audio-analysis/6dx6...https://api.spotify.com/v1/audio-analysis/6fZK...https://api.spotify.com/v1/audio-analysis/660i...https://api.spotify.com/v1/audio-analysis/6AX8...https://api.spotify.com/v1/audio-analysis/16Fl...https://api.spotify.com/v1/audio-analysis/5UXw...https://api.spotify.com/v1/audio-analysis/1tiy...
artist_id22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe...22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe22bE4uQ6baNwSHPVcDxLCe
artist_nameThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling Stones...The Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling StonesThe Rolling Stones
artists[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s......[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...
available_markets[GB][GB][AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C......[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...
ctitlenot fade awayjumpin jack flashjust my imaginationfar away eyesjumpin jack flasheverybody needs somebody to love finalejust my imaginationband introductionsmartin scorsese introlittle ta...mannish boymannish boylet it rockall down the linehonky tonk womenstar starwhen the whip comes downbeast of burdenmiss youyou cant always get what you want
danceability0.2820.3180.2940.4050.1190.2430.4120.32200.385...0.330.3290.3780.2510.3610.2240.2230.5790.470.349
disc_number1111111122...1111111111
duration_ms1917873036274000933511073752402460003998679989312400249307...625413625480132533236627218280227547313213388907515560446907
energy0.8830.9760.9640.6460.9910.9780.9340.9950.6020.929...0.730.7420.9830.9810.9570.980.9910.9040.9460.677
explicitFalseFalseFalseFalseFalseFalseFalseFalseFalseFalse...FalseFalseFalseFalseFalseTrueFalseFalseFalseFalse
external_ids{'isrc': 'GBCBR1500391'}{'isrc': 'GBCBR1500401'}{'isrc': 'GBCBR1101705'}{'isrc': 'GBCBR1101708'}{'isrc': 'GBCBR1101714'}{'isrc': 'USA171210012'}{'isrc': 'GBUM70802502'}{'isrc': 'GBUM70802637'}{'isrc': 'GBUM70803078'}{'isrc': 'GBUM70802501'}...{'isrc': 'GBCBR1200225'}{'isrc': 'GBCBR1200225'}{'isrc': 'GBCBR1101698'}{'isrc': 'GBCBR1101699'}{'isrc': 'GBCBR1101700'}{'isrc': 'GBCBR1101701'}{'isrc': 'GBCBR1101702'}{'isrc': 'GBCBR1101703'}{'isrc': 'GBCBR1101704'}{'isrc': 'GBCBR1600555'}
external_urls{'spotify': 'https://open.spotify.com/track/1j...{'spotify': 'https://open.spotify.com/track/7F...{'spotify': 'https://open.spotify.com/track/4p...{'spotify': 'https://open.spotify.com/track/39...{'spotify': 'https://open.spotify.com/track/2u...{'spotify': 'https://open.spotify.com/track/19...{'spotify': 'https://open.spotify.com/track/56...{'spotify': 'https://open.spotify.com/track/2A...{'spotify': 'https://open.spotify.com/track/2l...{'spotify': 'https://open.spotify.com/track/7o......{'spotify': 'https://open.spotify.com/track/1F...{'spotify': 'https://open.spotify.com/track/3n...{'spotify': 'https://open.spotify.com/track/0c...{'spotify': 'https://open.spotify.com/track/6d...{'spotify': 'https://open.spotify.com/track/6f...{'spotify': 'https://open.spotify.com/track/66...{'spotify': 'https://open.spotify.com/track/6A...{'spotify': 'https://open.spotify.com/track/16...{'spotify': 'https://open.spotify.com/track/5U...{'spotify': 'https://open.spotify.com/track/1t...
hrefhttps://api.spotify.com/v1/tracks/1jgefM2ZP7Rn...https://api.spotify.com/v1/tracks/7FagS2T3y5Xw...https://api.spotify.com/v1/tracks/4pKN6TNF59rJ...https://api.spotify.com/v1/tracks/39OF4xTwA6f5...https://api.spotify.com/v1/tracks/2uO1HbJhQvmX...https://api.spotify.com/v1/tracks/19LYBNYOMwmD...https://api.spotify.com/v1/tracks/56ljxn1tdisT...https://api.spotify.com/v1/tracks/2Ax0tajnMzn8...https://api.spotify.com/v1/tracks/2l4gWzhTj7Yt...https://api.spotify.com/v1/tracks/7otIbWwB2rkq......https://api.spotify.com/v1/tracks/1F69leTp8WQH...https://api.spotify.com/v1/tracks/3nc2vvots8KX...https://api.spotify.com/v1/tracks/0cNyluZzzBVb...https://api.spotify.com/v1/tracks/6dx6G9OexgRF...https://api.spotify.com/v1/tracks/6fZKfyDrl9Np...https://api.spotify.com/v1/tracks/660iobQYqexX...https://api.spotify.com/v1/tracks/6AX8HMe53fbG...https://api.spotify.com/v1/tracks/16FlhqpxLT6W...https://api.spotify.com/v1/tracks/5UXwp4rKvtXt...https://api.spotify.com/v1/tracks/1tiyUANzZams...
id1jgefM2ZP7RnPVShhy1eUM7FagS2T3y5XwDpYvyHfvmc4pKN6TNF59rJ1PCtPoeppg39OF4xTwA6f5BaIeA9aAwF2uO1HbJhQvmXpjclLmLEeK19LYBNYOMwmDKXvhwq5Ggv56ljxn1tdisThe4xcVe4px2Ax0tajnMzn8bB0jkmGNCK2l4gWzhTj7Yt1IvMTWnSgF7otIbWwB2rkqB3BHl6v296...1F69leTp8WQHMFVQ5gOtIS3nc2vvots8KXJIssvtJvh60cNyluZzzBVbsk2UY7Spca6dx6G9OexgRFCulfKI4sPN6fZKfyDrl9Nph0ifIGvOxs660iobQYqexXXNfRomqz3o6AX8HMe53fbGdNNAnC8LSz16FlhqpxLT6WTfiLVEZ7Vv5UXwp4rKvtXtKJpe0iIctM1tiyUANzZamsPZlHhZBbOd
ignoreTrueTrueNaNNaNNaNTrueTrueTrueTrueTrue...NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
instrumentalness0.001160.0009730.1890.001880.7250.7620.009142.47e-0500.00435...000.0002170.7030.02090.06810.1010.1130.5722.2e-05
key942511224102...7220792490
liveness0.9690.970.9520.8760.9610.7630.9180.9510.6990.851...0.5750.7770.8310.9850.9670.9840.9880.920.930.409
loudness-7.634-5.105-5.963-8.871-4.511-5.918-3.937-5.071-16.689-2.877...-5.973-5.986-5.918-5.255-6.338-5.511-5.136-6.108-5.641-5.968
lyrical_density0.693478NaNNaNNaNNaNNaNNaNNaNNaNNaN...0.2254510.2254271.19970.8452120.6505411.045940.7439030.7791070.5683140.912942
lyricsi'm going to tell you how it's going to be you...NaNNaNNaNNaNNaNNaNNaNNaNNaN...everything gonna be alright oh yeah yeah now w...everything gonna be alright oh yeah yeah now w...in the heat of the day down in mobile alabama ...yeah heard the diesel drumming all down the li...i met a gin-soaked barroom queen in memphis sh...baby baby i've been so sad since you've been g...yeah mama and papa told me i was crazy to stay...i'll never be your beast of burden my back is ...i've been holding out so long i've been sleepi...i saw her today at the reception a glass of wi...
mode1111011100...1111111101
nameNot Fade Away - LiveJumpin' Jack Flash - LiveJust My Imagination - LiveFar Away Eyes - LiveJumpin' Jack Flash - LiveEverybody Needs Somebody To Love (Finale) - Li...Just My Imagination - Live At The Beacon Theat...Band Introductions - Live At The Beacon Theatr...Martin Scorsese Intro - Live At The Beacon The...Little T&A - Live At The Beacon Theatre, New Y......Mannish Boy - LiveMannish Boy - LiveLet It Rock - LiveAll Down The Line - LiveHonky Tonk Women - LiveStar Star - LiveWhen The Whip Comes Down - LiveBeast Of Burden - LiveMiss You - LiveYou Can’t Always Get What You Want - Live
nnrc_sentiment{'negative': 0.3157894736842105, 'joy': 0.8421...NaNNaNNaNNaNNaNNaNNaNNaNNaN...{'anger': 0.07692307692307693, 'trust': 0.3076...{'anger': 0.07692307692307693, 'trust': 0.3076...{'anger': 0.3333333333333333, 'sadness': 0.111...{'anger': 0.5, 'sadness': 0.3333333333333333, ...{'anger': 0.2, 'trust': 0.4, 'sadness': 0.8, '...{'anger': 0.1, 'trust': 0.6, 'sadness': 0.0666...{'anger': 0.9565217391304348, 'trust': 0.17391...{'anger': 0.4230769230769231, 'trust': 0.57692...{'anger': 0.16666666666666666, 'disgust': 0.75...{'anger': 0.4, 'trust': 0.5, 'sadness': 0.4, '...
nrc_sentiment{'negative': 6, 'joy': 16, 'trust': 4, 'positi...NaNNaNNaNNaNNaNNaNNaNNaNNaN...{'anger': 1, 'trust': 4, 'fear': 1, 'surprise'...{'anger': 1, 'trust': 4, 'fear': 1, 'surprise'...{'anger': 3, 'fear': 3, 'surprise': 4, 'negati...{'anger': 3, 'fear': 2, 'surprise': 1, 'negati...{'anger': 1, 'trust': 2, 'fear': 5, 'negative'...{'anger': 3, 'trust': 18, 'fear': 3, 'surprise...{'anger': 22, 'trust': 4, 'fear': 2, 'surprise...{'anger': 11, 'trust': 15, 'fear': 12, 'surpri...{'anger': 2, 'disgust': 9, 'fear': 3, 'surpris...{'anger': 4, 'trust': 5, 'fear': 3, 'surprise'...
original_lyrics\\n\\n[Chorus]\\nI'm going to tell you how it's g...NaNNaNNaNNaNNaNNaNNaNNaNNaN...\\n\\n[Verse 1]\\nEverything gonna be alright\\nOh...\\n\\n[Verse 1]\\nEverything gonna be alright\\nOh...\\n\\n[Verse]\\nIn the heat of the day down in Mo...\\n\\n[Verse]\\nYeah, heard the diesel drumming a...\\n\\nI met a gin-soaked barroom queen in Memphi...\\n\\n[Verse 1]\\nBaby, baby, I've been so sad si...\\n\\n[Verse 1]\\nYeah, mama and papa told me\\nI ...\\n\\n[Intro]\\nI'll never be your beast of burde...\\n\\n[Produced by The Glimmer Twins]\\n\\n[Verse ...\\n\\n[Intro: London Bach Choir]\\nI saw her toda...
popularity1412191818212621022...2122019212019252236
preview_urlhttps://p.scdn.co/mp3-preview/bba1991141c6e594...https://p.scdn.co/mp3-preview/17aed72343067677...NoneNoneNoneNoneNoneNoneNoneNone...NoneNoneNoneNoneNoneNoneNoneNoneNoneNone
sentiment{'label': 'pos', 'probability': {'pos': 0.5669...NaNNaNNaNNaNNaNNaNNaNNaNNaN...{'label': 'neg', 'probability': {'pos': 0.3814...{'label': 'neg', 'probability': {'pos': 0.3814...{'label': 'neutral', 'probability': {'pos': 0....{'label': 'neg', 'probability': {'pos': 0.4794...{'label': 'neutral', 'probability': {'pos': 0....{'label': 'neg', 'probability': {'pos': 0.3255...{'label': 'neg', 'probability': {'pos': 0.2602...{'label': 'neg', 'probability': {'pos': 0.2596...{'label': 'neg', 'probability': {'pos': 0.2422...{'label': 'neg', 'probability': {'pos': 0.3829...
speechiness0.09360.08060.07420.03560.110.4210.07280.59200.0692...0.1310.1370.08570.1140.05040.1120.110.04060.03990.0311
tempo99.59141.754118.24693.57164.942181.122113.354106.6820137.735...173.625170.818152.922162.735117.921159.078154.808108.156117.17144.952
time_signature4444444404...3344444444
track_hrefhttps://api.spotify.com/v1/tracks/1jgefM2ZP7Rn...https://api.spotify.com/v1/tracks/7FagS2T3y5Xw...https://api.spotify.com/v1/tracks/4pKN6TNF59rJ...https://api.spotify.com/v1/tracks/39OF4xTwA6f5...https://api.spotify.com/v1/tracks/2uO1HbJhQvmX...https://api.spotify.com/v1/tracks/19LYBNYOMwmD...https://api.spotify.com/v1/tracks/56ljxn1tdisT...https://api.spotify.com/v1/tracks/2Ax0tajnMzn8...https://api.spotify.com/v1/tracks/2l4gWzhTj7Yt...https://api.spotify.com/v1/tracks/7otIbWwB2rkq......https://api.spotify.com/v1/tracks/1F69leTp8WQH...https://api.spotify.com/v1/tracks/3nc2vvots8KX...https://api.spotify.com/v1/tracks/0cNyluZzzBVb...https://api.spotify.com/v1/tracks/6dx6G9OexgRF...https://api.spotify.com/v1/tracks/6fZKfyDrl9Np...https://api.spotify.com/v1/tracks/660iobQYqexX...https://api.spotify.com/v1/tracks/6AX8HMe53fbG...https://api.spotify.com/v1/tracks/16FlhqpxLT6W...https://api.spotify.com/v1/tracks/5UXwp4rKvtXt...https://api.spotify.com/v1/tracks/1tiyUANzZams...
track_number111811171381218...136123456710
typeaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_features...audio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_features
urispotify:track:1jgefM2ZP7RnPVShhy1eUMspotify:track:7FagS2T3y5XwDpYvyHfvmcspotify:track:4pKN6TNF59rJ1PCtPoeppgspotify:track:39OF4xTwA6f5BaIeA9aAwFspotify:track:2uO1HbJhQvmXpjclLmLEeKspotify:track:19LYBNYOMwmDKXvhwq5Ggvspotify:track:56ljxn1tdisThe4xcVe4pxspotify:track:2Ax0tajnMzn8bB0jkmGNCKspotify:track:2l4gWzhTj7Yt1IvMTWnSgFspotify:track:7otIbWwB2rkqB3BHl6v296...spotify:track:1F69leTp8WQHMFVQ5gOtISspotify:track:3nc2vvots8KXJIssvtJvh6spotify:track:0cNyluZzzBVbsk2UY7Spcaspotify:track:6dx6G9OexgRFCulfKI4sPNspotify:track:6fZKfyDrl9Nph0ifIGvOxsspotify:track:660iobQYqexXXNfRomqz3ospotify:track:6AX8HMe53fbGdNNAnC8LSzspotify:track:16FlhqpxLT6WTfiLVEZ7Vvspotify:track:5UXwp4rKvtXtKJpe0iIctMspotify:track:1tiyUANzZamsPZlHhZBbOd
valence0.6780.3590.6390.5620.2940.1840.4530.034800.596...0.4780.5170.6230.590.7270.6460.5630.6440.8470.16
\n", "

42 rows × 466 columns

\n", "
" ], "text/plain": [ " 0 \\\n", "_id 1jgefM2ZP7RnPVShhy1eUM \n", "acousticness 0.148 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3PbRKFafwE7Of8e4dTee72 \n", "analysis_url https://api.spotify.com/v1/audio-analysis/1jge... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [GB] \n", "ctitle not fade away \n", "danceability 0.282 \n", "disc_number 1 \n", "duration_ms 191787 \n", "energy 0.883 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1500391'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/1j... \n", "href https://api.spotify.com/v1/tracks/1jgefM2ZP7Rn... \n", "id 1jgefM2ZP7RnPVShhy1eUM \n", "ignore True \n", "instrumentalness 0.00116 \n", "key 9 \n", "liveness 0.969 \n", "loudness -7.634 \n", "lyrical_density 0.693478 \n", "lyrics i'm going to tell you how it's going to be you... \n", "mode 1 \n", "name Not Fade Away - Live \n", "nnrc_sentiment {'negative': 0.3157894736842105, 'joy': 0.8421... \n", "nrc_sentiment {'negative': 6, 'joy': 16, 'trust': 4, 'positi... \n", "original_lyrics \\n\\n[Chorus]\\nI'm going to tell you how it's g... \n", "popularity 14 \n", "preview_url https://p.scdn.co/mp3-preview/bba1991141c6e594... \n", "sentiment {'label': 'pos', 'probability': {'pos': 0.5669... \n", "speechiness 0.0936 \n", "tempo 99.59 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/1jgefM2ZP7Rn... \n", "track_number 1 \n", "type audio_features \n", "uri spotify:track:1jgefM2ZP7RnPVShhy1eUM \n", "valence 0.678 \n", "\n", " 1 \\\n", "_id 7FagS2T3y5XwDpYvyHfvmc \n", "acousticness 0.000552 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3PbRKFafwE7Of8e4dTee72 \n", "analysis_url https://api.spotify.com/v1/audio-analysis/7Fag... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [GB] \n", "ctitle jumpin jack flash \n", "danceability 0.318 \n", "disc_number 1 \n", "duration_ms 303627 \n", "energy 0.976 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1500401'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/7F... \n", "href https://api.spotify.com/v1/tracks/7FagS2T3y5Xw... \n", "id 7FagS2T3y5XwDpYvyHfvmc \n", "ignore True \n", "instrumentalness 0.000973 \n", "key 4 \n", "liveness 0.97 \n", "loudness -5.105 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Jumpin' Jack Flash - Live \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 12 \n", "preview_url https://p.scdn.co/mp3-preview/17aed72343067677... \n", "sentiment NaN \n", "speechiness 0.0806 \n", "tempo 141.754 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/7FagS2T3y5Xw... \n", "track_number 11 \n", "type audio_features \n", "uri spotify:track:7FagS2T3y5XwDpYvyHfvmc \n", "valence 0.359 \n", "\n", " 2 \\\n", "_id 4pKN6TNF59rJ1PCtPoeppg \n", "acousticness 0.000215 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 2gCp8kyDcL93s4kVP4VMTC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/4pKN... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle just my imagination \n", "danceability 0.294 \n", "disc_number 1 \n", "duration_ms 400093 \n", "energy 0.964 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1101705'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/4p... \n", "href https://api.spotify.com/v1/tracks/4pKN6TNF59rJ... \n", "id 4pKN6TNF59rJ1PCtPoeppg \n", "ignore NaN \n", "instrumentalness 0.189 \n", "key 2 \n", "liveness 0.952 \n", "loudness -5.963 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Just My Imagination - Live \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 19 \n", "preview_url None \n", "sentiment NaN \n", "speechiness 0.0742 \n", "tempo 118.246 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/4pKN6TNF59rJ... \n", "track_number 8 \n", "type audio_features \n", "uri spotify:track:4pKN6TNF59rJ1PCtPoeppg \n", "valence 0.639 \n", "\n", " 3 \\\n", "_id 39OF4xTwA6f5BaIeA9aAwF \n", "acousticness 0.27 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 2gCp8kyDcL93s4kVP4VMTC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/39OF... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle far away eyes \n", "danceability 0.405 \n", "disc_number 1 \n", "duration_ms 351107 \n", "energy 0.646 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1101708'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/39... \n", "href https://api.spotify.com/v1/tracks/39OF4xTwA6f5... \n", "id 39OF4xTwA6f5BaIeA9aAwF \n", "ignore NaN \n", "instrumentalness 0.00188 \n", "key 5 \n", "liveness 0.876 \n", "loudness -8.871 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Far Away Eyes - Live \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 18 \n", "preview_url None \n", "sentiment NaN \n", "speechiness 0.0356 \n", "tempo 93.57 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/39OF4xTwA6f5... \n", "track_number 11 \n", "type audio_features \n", "uri spotify:track:39OF4xTwA6f5BaIeA9aAwF \n", "valence 0.562 \n", "\n", " 4 \\\n", "_id 2uO1HbJhQvmXpjclLmLEeK \n", "acousticness 2.35e-05 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 2gCp8kyDcL93s4kVP4VMTC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/2uO1... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle jumpin jack flash \n", "danceability 0.119 \n", "disc_number 1 \n", "duration_ms 375240 \n", "energy 0.991 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1101714'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/2u... \n", "href https://api.spotify.com/v1/tracks/2uO1HbJhQvmX... \n", "id 2uO1HbJhQvmXpjclLmLEeK \n", "ignore NaN \n", "instrumentalness 0.725 \n", "key 11 \n", "liveness 0.961 \n", "loudness -4.511 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 0 \n", "name Jumpin' Jack Flash - Live \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 18 \n", "preview_url None \n", "sentiment NaN \n", "speechiness 0.11 \n", "tempo 164.942 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/2uO1HbJhQvmX... \n", "track_number 17 \n", "type audio_features \n", "uri spotify:track:2uO1HbJhQvmXpjclLmLEeK \n", "valence 0.294 \n", "\n", " 5 \\\n", "_id 19LYBNYOMwmDKXvhwq5Ggv \n", "acousticness 0.109 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 5eTqRwTGKPBUiUuN1rFaXD \n", "analysis_url https://api.spotify.com/v1/audio-analysis/19LY... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle everybody needs somebody to love finale \n", "danceability 0.243 \n", "disc_number 1 \n", "duration_ms 246000 \n", "energy 0.978 \n", "explicit False \n", "external_ids {'isrc': 'USA171210012'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/19... \n", "href https://api.spotify.com/v1/tracks/19LYBNYOMwmD... \n", "id 19LYBNYOMwmDKXvhwq5Ggv \n", "ignore True \n", "instrumentalness 0.762 \n", "key 2 \n", "liveness 0.763 \n", "loudness -5.918 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Everybody Needs Somebody To Love (Finale) - Li... \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 21 \n", "preview_url None \n", "sentiment NaN \n", "speechiness 0.421 \n", "tempo 181.122 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/19LYBNYOMwmD... \n", "track_number 13 \n", "type audio_features \n", "uri spotify:track:19LYBNYOMwmDKXvhwq5Ggv \n", "valence 0.184 \n", "\n", " 6 \\\n", "_id 56ljxn1tdisThe4xcVe4px \n", "acousticness 0.024 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3CHu7qW160uqPZHW3TMZ1l \n", "analysis_url https://api.spotify.com/v1/audio-analysis/56lj... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle just my imagination \n", "danceability 0.412 \n", "disc_number 1 \n", "duration_ms 399867 \n", "energy 0.934 \n", "explicit False \n", "external_ids {'isrc': 'GBUM70802502'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/56... \n", "href https://api.spotify.com/v1/tracks/56ljxn1tdisT... \n", "id 56ljxn1tdisThe4xcVe4px \n", "ignore True \n", "instrumentalness 0.00914 \n", "key 2 \n", "liveness 0.918 \n", "loudness -3.937 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Just My Imagination - Live At The Beacon Theat... \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 26 \n", "preview_url None \n", "sentiment NaN \n", "speechiness 0.0728 \n", "tempo 113.354 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/56ljxn1tdisT... \n", "track_number 8 \n", "type audio_features \n", "uri spotify:track:56ljxn1tdisThe4xcVe4px \n", "valence 0.453 \n", "\n", " 7 \\\n", "_id 2Ax0tajnMzn8bB0jkmGNCK \n", "acousticness 0.859 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3CHu7qW160uqPZHW3TMZ1l \n", "analysis_url https://api.spotify.com/v1/audio-analysis/2Ax0... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle band introductions \n", "danceability 0.322 \n", "disc_number 1 \n", "duration_ms 99893 \n", "energy 0.995 \n", "explicit False \n", "external_ids {'isrc': 'GBUM70802637'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/2A... \n", "href https://api.spotify.com/v1/tracks/2Ax0tajnMzn8... \n", "id 2Ax0tajnMzn8bB0jkmGNCK \n", "ignore True \n", "instrumentalness 2.47e-05 \n", "key 4 \n", "liveness 0.951 \n", "loudness -5.071 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Band Introductions - Live At The Beacon Theatr... \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 21 \n", "preview_url None \n", "sentiment NaN \n", "speechiness 0.592 \n", "tempo 106.682 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/2Ax0tajnMzn8... \n", "track_number 12 \n", "type audio_features \n", "uri spotify:track:2Ax0tajnMzn8bB0jkmGNCK \n", "valence 0.0348 \n", "\n", " 8 \\\n", "_id 2l4gWzhTj7Yt1IvMTWnSgF \n", "acousticness 0.483 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3CHu7qW160uqPZHW3TMZ1l \n", "analysis_url https://api.spotify.com/v1/audio-analysis/2l4g... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle martin scorsese intro \n", "danceability 0 \n", "disc_number 2 \n", "duration_ms 12400 \n", "energy 0.602 \n", "explicit False \n", "external_ids {'isrc': 'GBUM70803078'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/2l... \n", "href https://api.spotify.com/v1/tracks/2l4gWzhTj7Yt... \n", "id 2l4gWzhTj7Yt1IvMTWnSgF \n", "ignore True \n", "instrumentalness 0 \n", "key 10 \n", "liveness 0.699 \n", "loudness -16.689 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 0 \n", "name Martin Scorsese Intro - Live At The Beacon The... \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 0 \n", "preview_url None \n", "sentiment NaN \n", "speechiness 0 \n", "tempo 0 \n", "time_signature 0 \n", "track_href https://api.spotify.com/v1/tracks/2l4gWzhTj7Yt... \n", "track_number 1 \n", "type audio_features \n", "uri spotify:track:2l4gWzhTj7Yt1IvMTWnSgF \n", "valence 0 \n", "\n", " 9 \\\n", "_id 7otIbWwB2rkqB3BHl6v296 \n", "acousticness 0.198 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3CHu7qW160uqPZHW3TMZ1l \n", "analysis_url https://api.spotify.com/v1/audio-analysis/7otI... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle little ta \n", "danceability 0.385 \n", "disc_number 2 \n", "duration_ms 249307 \n", "energy 0.929 \n", "explicit False \n", "external_ids {'isrc': 'GBUM70802501'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/7o... \n", "href https://api.spotify.com/v1/tracks/7otIbWwB2rkq... \n", "id 7otIbWwB2rkqB3BHl6v296 \n", "ignore True \n", "instrumentalness 0.00435 \n", "key 2 \n", "liveness 0.851 \n", "loudness -2.877 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 0 \n", "name Little T&A - Live At The Beacon Theatre, New Y... \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 22 \n", "preview_url None \n", "sentiment NaN \n", "speechiness 0.0692 \n", "tempo 137.735 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/7otIbWwB2rkq... \n", "track_number 8 \n", "type audio_features \n", "uri spotify:track:7otIbWwB2rkqB3BHl6v296 \n", "valence 0.596 \n", "\n", " ... \\\n", "_id ... \n", "acousticness ... \n", "album ... \n", "album_id ... \n", "analysis_url ... \n", "artist_id ... \n", "artist_name ... \n", "artists ... \n", "available_markets ... \n", "ctitle ... \n", "danceability ... \n", "disc_number ... \n", "duration_ms ... \n", "energy ... \n", "explicit ... \n", "external_ids ... \n", "external_urls ... \n", "href ... \n", "id ... \n", "ignore ... \n", "instrumentalness ... \n", "key ... \n", "liveness ... \n", "loudness ... \n", "lyrical_density ... \n", "lyrics ... \n", "mode ... \n", "name ... \n", "nnrc_sentiment ... \n", "nrc_sentiment ... \n", "original_lyrics ... \n", "popularity ... \n", "preview_url ... \n", "sentiment ... \n", "speechiness ... \n", "tempo ... \n", "time_signature ... \n", "track_href ... \n", "track_number ... \n", "type ... \n", "uri ... \n", "valence ... \n", "\n", " 456 \\\n", "_id 1F69leTp8WQHMFVQ5gOtIS \n", "acousticness 0.355 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 6hB5kO3oV3tlnblCNSSA9Z \n", "analysis_url https://api.spotify.com/v1/audio-analysis/1F69... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle mannish boy \n", "danceability 0.33 \n", "disc_number 1 \n", "duration_ms 625413 \n", "energy 0.73 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1200225'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/1F... \n", "href https://api.spotify.com/v1/tracks/1F69leTp8WQH... \n", "id 1F69leTp8WQHMFVQ5gOtIS \n", "ignore NaN \n", "instrumentalness 0 \n", "key 7 \n", "liveness 0.575 \n", "loudness -5.973 \n", "lyrical_density 0.225451 \n", "lyrics everything gonna be alright oh yeah yeah now w... \n", "mode 1 \n", "name Mannish Boy - Live \n", "nnrc_sentiment {'anger': 0.07692307692307693, 'trust': 0.3076... \n", "nrc_sentiment {'anger': 1, 'trust': 4, 'fear': 1, 'surprise'... \n", "original_lyrics \\n\\n[Verse 1]\\nEverything gonna be alright\\nOh... \n", "popularity 21 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.3814... \n", "speechiness 0.131 \n", "tempo 173.625 \n", "time_signature 3 \n", "track_href https://api.spotify.com/v1/tracks/1F69leTp8WQH... \n", "track_number 13 \n", "type audio_features \n", "uri spotify:track:1F69leTp8WQHMFVQ5gOtIS \n", "valence 0.478 \n", "\n", " 457 \\\n", "_id 3nc2vvots8KXJIssvtJvh6 \n", "acousticness 0.312 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 3yNf6JVyEEqvM4OqKEmZSC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/3nc2... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle mannish boy \n", "danceability 0.329 \n", "disc_number 1 \n", "duration_ms 625480 \n", "energy 0.742 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1200225'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/3n... \n", "href https://api.spotify.com/v1/tracks/3nc2vvots8KX... \n", "id 3nc2vvots8KXJIssvtJvh6 \n", "ignore NaN \n", "instrumentalness 0 \n", "key 2 \n", "liveness 0.777 \n", "loudness -5.986 \n", "lyrical_density 0.225427 \n", "lyrics everything gonna be alright oh yeah yeah now w... \n", "mode 1 \n", "name Mannish Boy - Live \n", "nnrc_sentiment {'anger': 0.07692307692307693, 'trust': 0.3076... \n", "nrc_sentiment {'anger': 1, 'trust': 4, 'fear': 1, 'surprise'... \n", "original_lyrics \\n\\n[Verse 1]\\nEverything gonna be alright\\nOh... \n", "popularity 2 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.3814... \n", "speechiness 0.137 \n", "tempo 170.818 \n", "time_signature 3 \n", "track_href https://api.spotify.com/v1/tracks/3nc2vvots8KX... \n", "track_number 6 \n", "type audio_features \n", "uri spotify:track:3nc2vvots8KXJIssvtJvh6 \n", "valence 0.517 \n", "\n", " 458 \\\n", "_id 0cNyluZzzBVbsk2UY7Spca \n", "acousticness 0.0107 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 2gCp8kyDcL93s4kVP4VMTC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/0cNy... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle let it rock \n", "danceability 0.378 \n", "disc_number 1 \n", "duration_ms 132533 \n", "energy 0.983 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1101698'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/0c... \n", "href https://api.spotify.com/v1/tracks/0cNyluZzzBVb... \n", "id 0cNyluZzzBVbsk2UY7Spca \n", "ignore NaN \n", "instrumentalness 0.000217 \n", "key 2 \n", "liveness 0.831 \n", "loudness -5.918 \n", "lyrical_density 1.1997 \n", "lyrics in the heat of the day down in mobile alabama ... \n", "mode 1 \n", "name Let It Rock - Live \n", "nnrc_sentiment {'anger': 0.3333333333333333, 'sadness': 0.111... \n", "nrc_sentiment {'anger': 3, 'fear': 3, 'surprise': 4, 'negati... \n", "original_lyrics \\n\\n[Verse]\\nIn the heat of the day down in Mo... \n", "popularity 20 \n", "preview_url None \n", "sentiment {'label': 'neutral', 'probability': {'pos': 0.... \n", "speechiness 0.0857 \n", "tempo 152.922 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/0cNyluZzzBVb... \n", "track_number 1 \n", "type audio_features \n", "uri spotify:track:0cNyluZzzBVbsk2UY7Spca \n", "valence 0.623 \n", "\n", " 459 \\\n", "_id 6dx6G9OexgRFCulfKI4sPN \n", "acousticness 0.028 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 2gCp8kyDcL93s4kVP4VMTC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/6dx6... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle all down the line \n", "danceability 0.251 \n", "disc_number 1 \n", "duration_ms 236627 \n", "energy 0.981 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1101699'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/6d... \n", "href https://api.spotify.com/v1/tracks/6dx6G9OexgRF... \n", "id 6dx6G9OexgRFCulfKI4sPN \n", "ignore NaN \n", "instrumentalness 0.703 \n", "key 0 \n", "liveness 0.985 \n", "loudness -5.255 \n", "lyrical_density 0.845212 \n", "lyrics yeah heard the diesel drumming all down the li... \n", "mode 1 \n", "name All Down The Line - Live \n", "nnrc_sentiment {'anger': 0.5, 'sadness': 0.3333333333333333, ... \n", "nrc_sentiment {'anger': 3, 'fear': 2, 'surprise': 1, 'negati... \n", "original_lyrics \\n\\n[Verse]\\nYeah, heard the diesel drumming a... \n", "popularity 19 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.4794... \n", "speechiness 0.114 \n", "tempo 162.735 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/6dx6G9OexgRF... \n", "track_number 2 \n", "type audio_features \n", "uri spotify:track:6dx6G9OexgRFCulfKI4sPN \n", "valence 0.59 \n", "\n", " 460 \\\n", "_id 6fZKfyDrl9Nph0ifIGvOxs \n", "acousticness 0.0304 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 2gCp8kyDcL93s4kVP4VMTC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/6fZK... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle honky tonk women \n", "danceability 0.361 \n", "disc_number 1 \n", "duration_ms 218280 \n", "energy 0.957 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1101700'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/6f... \n", "href https://api.spotify.com/v1/tracks/6fZKfyDrl9Np... \n", "id 6fZKfyDrl9Nph0ifIGvOxs \n", "ignore NaN \n", "instrumentalness 0.0209 \n", "key 7 \n", "liveness 0.967 \n", "loudness -6.338 \n", "lyrical_density 0.650541 \n", "lyrics i met a gin-soaked barroom queen in memphis sh... \n", "mode 1 \n", "name Honky Tonk Women - Live \n", "nnrc_sentiment {'anger': 0.2, 'trust': 0.4, 'sadness': 0.8, '... \n", "nrc_sentiment {'anger': 1, 'trust': 2, 'fear': 5, 'negative'... \n", "original_lyrics \\n\\nI met a gin-soaked barroom queen in Memphi... \n", "popularity 21 \n", "preview_url None \n", "sentiment {'label': 'neutral', 'probability': {'pos': 0.... \n", "speechiness 0.0504 \n", "tempo 117.921 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/6fZKfyDrl9Np... \n", "track_number 3 \n", "type audio_features \n", "uri spotify:track:6fZKfyDrl9Nph0ifIGvOxs \n", "valence 0.727 \n", "\n", " 461 \\\n", "_id 660iobQYqexXXNfRomqz3o \n", "acousticness 0.0153 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 2gCp8kyDcL93s4kVP4VMTC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/660i... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle star star \n", "danceability 0.224 \n", "disc_number 1 \n", "duration_ms 227547 \n", "energy 0.98 \n", "explicit True \n", "external_ids {'isrc': 'GBCBR1101701'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/66... \n", "href https://api.spotify.com/v1/tracks/660iobQYqexX... \n", "id 660iobQYqexXXNfRomqz3o \n", "ignore NaN \n", "instrumentalness 0.0681 \n", "key 9 \n", "liveness 0.984 \n", "loudness -5.511 \n", "lyrical_density 1.04594 \n", "lyrics baby baby i've been so sad since you've been g... \n", "mode 1 \n", "name Star Star - Live \n", "nnrc_sentiment {'anger': 0.1, 'trust': 0.6, 'sadness': 0.0666... \n", "nrc_sentiment {'anger': 3, 'trust': 18, 'fear': 3, 'surprise... \n", "original_lyrics \\n\\n[Verse 1]\\nBaby, baby, I've been so sad si... \n", "popularity 20 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.3255... \n", "speechiness 0.112 \n", "tempo 159.078 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/660iobQYqexX... \n", "track_number 4 \n", "type audio_features \n", "uri spotify:track:660iobQYqexXXNfRomqz3o \n", "valence 0.646 \n", "\n", " 462 \\\n", "_id 6AX8HMe53fbGdNNAnC8LSz \n", "acousticness 0.000231 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 2gCp8kyDcL93s4kVP4VMTC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/6AX8... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle when the whip comes down \n", "danceability 0.223 \n", "disc_number 1 \n", "duration_ms 313213 \n", "energy 0.991 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1101702'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/6A... \n", "href https://api.spotify.com/v1/tracks/6AX8HMe53fbG... \n", "id 6AX8HMe53fbGdNNAnC8LSz \n", "ignore NaN \n", "instrumentalness 0.101 \n", "key 2 \n", "liveness 0.988 \n", "loudness -5.136 \n", "lyrical_density 0.743903 \n", "lyrics yeah mama and papa told me i was crazy to stay... \n", "mode 1 \n", "name When The Whip Comes Down - Live \n", "nnrc_sentiment {'anger': 0.9565217391304348, 'trust': 0.17391... \n", "nrc_sentiment {'anger': 22, 'trust': 4, 'fear': 2, 'surprise... \n", "original_lyrics \\n\\n[Verse 1]\\nYeah, mama and papa told me\\nI ... \n", "popularity 19 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.2602... \n", "speechiness 0.11 \n", "tempo 154.808 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/6AX8HMe53fbG... \n", "track_number 5 \n", "type audio_features \n", "uri spotify:track:6AX8HMe53fbGdNNAnC8LSz \n", "valence 0.563 \n", "\n", " 463 \\\n", "_id 16FlhqpxLT6WTfiLVEZ7Vv \n", "acousticness 0.0248 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 2gCp8kyDcL93s4kVP4VMTC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/16Fl... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle beast of burden \n", "danceability 0.579 \n", "disc_number 1 \n", "duration_ms 388907 \n", "energy 0.904 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1101703'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/16... \n", "href https://api.spotify.com/v1/tracks/16FlhqpxLT6W... \n", "id 16FlhqpxLT6WTfiLVEZ7Vv \n", "ignore NaN \n", "instrumentalness 0.113 \n", "key 4 \n", "liveness 0.92 \n", "loudness -6.108 \n", "lyrical_density 0.779107 \n", "lyrics i'll never be your beast of burden my back is ... \n", "mode 1 \n", "name Beast Of Burden - Live \n", "nnrc_sentiment {'anger': 0.4230769230769231, 'trust': 0.57692... \n", "nrc_sentiment {'anger': 11, 'trust': 15, 'fear': 12, 'surpri... \n", "original_lyrics \\n\\n[Intro]\\nI'll never be your beast of burde... \n", "popularity 25 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.2596... \n", "speechiness 0.0406 \n", "tempo 108.156 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/16FlhqpxLT6W... \n", "track_number 6 \n", "type audio_features \n", "uri spotify:track:16FlhqpxLT6WTfiLVEZ7Vv \n", "valence 0.644 \n", "\n", " 464 \\\n", "_id 5UXwp4rKvtXtKJpe0iIctM \n", "acousticness 0.00309 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 2gCp8kyDcL93s4kVP4VMTC \n", "analysis_url https://api.spotify.com/v1/audio-analysis/5UXw... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle miss you \n", "danceability 0.47 \n", "disc_number 1 \n", "duration_ms 515560 \n", "energy 0.946 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1101704'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/5U... \n", "href https://api.spotify.com/v1/tracks/5UXwp4rKvtXt... \n", "id 5UXwp4rKvtXtKJpe0iIctM \n", "ignore NaN \n", "instrumentalness 0.572 \n", "key 9 \n", "liveness 0.93 \n", "loudness -5.641 \n", "lyrical_density 0.568314 \n", "lyrics i've been holding out so long i've been sleepi... \n", "mode 0 \n", "name Miss You - Live \n", "nnrc_sentiment {'anger': 0.16666666666666666, 'disgust': 0.75... \n", "nrc_sentiment {'anger': 2, 'disgust': 9, 'fear': 3, 'surpris... \n", "original_lyrics \\n\\n[Produced by The Glimmer Twins]\\n\\n[Verse ... \n", "popularity 22 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.2422... \n", "speechiness 0.0399 \n", "tempo 117.17 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/5UXwp4rKvtXt... \n", "track_number 7 \n", "type audio_features \n", "uri spotify:track:5UXwp4rKvtXtKJpe0iIctM \n", "valence 0.847 \n", "\n", " 465 \n", "_id 1tiyUANzZamsPZlHhZBbOd \n", "acousticness 0.0547 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 34d9ClCaKRoQ8pMeJ9Gfvt \n", "analysis_url https://api.spotify.com/v1/audio-analysis/1tiy... \n", "artist_id 22bE4uQ6baNwSHPVcDxLCe \n", "artist_name The Rolling Stones \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C... \n", "ctitle you cant always get what you want \n", "danceability 0.349 \n", "disc_number 1 \n", "duration_ms 446907 \n", "energy 0.677 \n", "explicit False \n", "external_ids {'isrc': 'GBCBR1600555'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/1t... \n", "href https://api.spotify.com/v1/tracks/1tiyUANzZams... \n", "id 1tiyUANzZamsPZlHhZBbOd \n", "ignore NaN \n", "instrumentalness 2.2e-05 \n", "key 0 \n", "liveness 0.409 \n", "loudness -5.968 \n", "lyrical_density 0.912942 \n", "lyrics i saw her today at the reception a glass of wi... \n", "mode 1 \n", "name You Can’t Always Get What You Want - Live \n", "nnrc_sentiment {'anger': 0.4, 'trust': 0.5, 'sadness': 0.4, '... \n", "nrc_sentiment {'anger': 4, 'trust': 5, 'fear': 3, 'surprise'... \n", "original_lyrics \\n\\n[Intro: London Bach Choir]\\nI saw her toda... \n", "popularity 36 \n", "preview_url None \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.3829... \n", "speechiness 0.0311 \n", "tempo 144.952 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/1tiyUANzZams... \n", "track_number 10 \n", "type audio_features \n", "uri spotify:track:1tiyUANzZamsPZlHhZBbOd \n", "valence 0.16 \n", "\n", "[42 rows x 466 columns]" ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "stones_tracks = pd.DataFrame(list(tracks.find({'artist_id': stones_id})))\n", "stones_tracks.T" ] }, { "cell_type": "code", "execution_count": 20, "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", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
0123456789...136137138139140141142143144145
_id6Unw1AAcpS1ZgZoRlj2jxA5hfzW7LG97Hxv62HHUKgaj64lecUR19lBSu317AzVZv31CxhtUbe1o2PeMM3l5Kch62H7Y8wYixrSlKJoaZ1N2yl3zkFTfcboFcOdno0CHCmTc7KKglMFf5KV0PIDSAOqfnH4raxzmnFq93jfKC8c3xcIv1gaAIZ4vGQ6QvDUgN2Xyus7krim8C3DpTu1ShdoZezix...2zYmvi3w2T8a9Ckrv21bvW3ovbSnT5NNhl1gzMcw1NRZ4NUc1M0CS7b6zvWoyvibju4nklmaiY4gfQI3SB1sLGsd11qDTSr3Dj4TkPnBcIOqEJ4D6ZExVvYLZxhcAvifX5px48IEDejXX5LH8TAC3VIGpc2B5P22cfUadACK7jLQegU66qttbImnJ5wuA8AtDKEy180eECFDnWy0RdjMmJ8NOeAL
acousticness0.008220.05890.08250.1020.0008010.09550.01470.4430.3130.464...0.0008490.7040.0001011.93e-050.002810.0008490.009680.0001350.0004650.00101
album{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp......{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...{'external_urls': {'spotify': 'https://open.sp...
album_id47xaqCsJcYFWqD1gwujl1T47xaqCsJcYFWqD1gwujl1T47xaqCsJcYFWqD1gwujl1T47xaqCsJcYFWqD1gwujl1T47xaqCsJcYFWqD1gwujl1T47xaqCsJcYFWqD1gwujl1T47xaqCsJcYFWqD1gwujl1T47xaqCsJcYFWqD1gwujl1T47xaqCsJcYFWqD1gwujl1T47xaqCsJcYFWqD1gwujl1T...6400dnyeDyD2mIFHfkwHXN6400dnyeDyD2mIFHfkwHXN6400dnyeDyD2mIFHfkwHXN6400dnyeDyD2mIFHfkwHXN6400dnyeDyD2mIFHfkwHXN6400dnyeDyD2mIFHfkwHXN6400dnyeDyD2mIFHfkwHXN6400dnyeDyD2mIFHfkwHXN6400dnyeDyD2mIFHfkwHXN1DBkJIEoeHrTX4WCBQGcCi
analysis_urlhttps://api.spotify.com/v1/audio-analysis/6Unw...https://api.spotify.com/v1/audio-analysis/5hfz...https://api.spotify.com/v1/audio-analysis/64le...https://api.spotify.com/v1/audio-analysis/1Cxh...https://api.spotify.com/v1/audio-analysis/2H7Y...https://api.spotify.com/v1/audio-analysis/3zkF...https://api.spotify.com/v1/audio-analysis/7KKg...https://api.spotify.com/v1/audio-analysis/4rax...https://api.spotify.com/v1/audio-analysis/1gaA...https://api.spotify.com/v1/audio-analysis/7kri......https://api.spotify.com/v1/audio-analysis/2zYm...https://api.spotify.com/v1/audio-analysis/3ovb...https://api.spotify.com/v1/audio-analysis/4NUc...https://api.spotify.com/v1/audio-analysis/4nkl...https://api.spotify.com/v1/audio-analysis/11qD...https://api.spotify.com/v1/audio-analysis/4D6Z...https://api.spotify.com/v1/audio-analysis/48IE...https://api.spotify.com/v1/audio-analysis/2B5P...https://api.spotify.com/v1/audio-analysis/6qtt...https://api.spotify.com/v1/audio-analysis/0eEC...
artist_id4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb...4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb4Z8W4fKeB5YxbusRsdQVPb
artist_nameRadioheadRadioheadRadioheadRadioheadRadioheadRadioheadRadioheadRadioheadRadioheadRadiohead...RadioheadRadioheadRadioheadRadioheadRadioheadRadioheadRadioheadRadioheadRadioheadRadiohead
artists[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s......[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...[{'external_urls': {'spotify': 'https://open.s...
available_markets[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C......[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...[AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C...
ctitlelittle by little caribou rmxlotus flower jacques greene rmxmorning mr magpie nathan fake rmxbloom harmonic 313 rmxbloom mark pritchard rmxferal lone rmxmorning mr magpie pearson sound scavenger rmxseparator four tet rmxgive up the ghost thriller houseghost remixcodex illum sphere...stop whisperingthinking about youanyone can play guitarripcordvegetableprove yourselfi cantlurgeeblow outferal
danceability0.80.6290.6610.4430.4140.7610.4810.4610.5960.441...0.2120.3640.2940.2560.3840.250.2840.420.2840.49
disc_number1111111111...1111111111
duration_ms340160429947291987304333367280317507278893423000373760274373...325627161533217800189733192667145373253093187867282067192743
energy0.5860.5920.7070.6650.7120.8770.3360.4550.8940.575...0.6960.370.8130.9060.7170.620.8250.5480.7190.777
explicitFalseFalseFalseFalseFalseFalseFalseFalseFalseFalse...FalseFalseFalseFalseFalseFalseFalseFalseFalseFalse
external_ids{'isrc': 'GBU4B1100013'}{'isrc': 'GBU4B1100014'}{'isrc': 'GBU4B1100015'}{'isrc': 'GBU4B1100016'}{'isrc': 'GBU4B1100017'}{'isrc': 'GBU4B1100018'}{'isrc': 'GBU4B1100020'}{'isrc': 'GBU4B1100019'}{'isrc': 'GBU4B1100031'}{'isrc': 'GBU4B1100032'}...{'isrc': 'GBAYE9300106'}{'isrc': 'GBAYE9200114'}{'isrc': 'GBAYE9300107'}{'isrc': 'GBAYE9300108'}{'isrc': 'GBAYE9300109'}{'isrc': 'GBAYE9200115'}{'isrc': 'GBAYE9300110'}{'isrc': 'GBAYE9200116'}{'isrc': 'GBAYE9300111'}{'isrc': 'GBU4B1100006'}
external_urls{'spotify': 'https://open.spotify.com/track/6U...{'spotify': 'https://open.spotify.com/track/5h...{'spotify': 'https://open.spotify.com/track/64...{'spotify': 'https://open.spotify.com/track/1C...{'spotify': 'https://open.spotify.com/track/2H...{'spotify': 'https://open.spotify.com/track/3z...{'spotify': 'https://open.spotify.com/track/7K...{'spotify': 'https://open.spotify.com/track/4r...{'spotify': 'https://open.spotify.com/track/1g...{'spotify': 'https://open.spotify.com/track/7k......{'spotify': 'https://open.spotify.com/track/2z...{'spotify': 'https://open.spotify.com/track/3o...{'spotify': 'https://open.spotify.com/track/4N...{'spotify': 'https://open.spotify.com/track/4n...{'spotify': 'https://open.spotify.com/track/11...{'spotify': 'https://open.spotify.com/track/4D...{'spotify': 'https://open.spotify.com/track/48...{'spotify': 'https://open.spotify.com/track/2B...{'spotify': 'https://open.spotify.com/track/6q...{'spotify': 'https://open.spotify.com/track/0e...
hrefhttps://api.spotify.com/v1/tracks/6Unw1AAcpS1Z...https://api.spotify.com/v1/tracks/5hfzW7LG97Hx...https://api.spotify.com/v1/tracks/64lecUR19lBS...https://api.spotify.com/v1/tracks/1CxhtUbe1o2P...https://api.spotify.com/v1/tracks/2H7Y8wYixrSl...https://api.spotify.com/v1/tracks/3zkFTfcboFcO...https://api.spotify.com/v1/tracks/7KKglMFf5KV0...https://api.spotify.com/v1/tracks/4raxzmnFq93j...https://api.spotify.com/v1/tracks/1gaAIZ4vGQ6Q...https://api.spotify.com/v1/tracks/7krim8C3DpTu......https://api.spotify.com/v1/tracks/2zYmvi3w2T8a...https://api.spotify.com/v1/tracks/3ovbSnT5NNhl...https://api.spotify.com/v1/tracks/4NUc1M0CS7b6...https://api.spotify.com/v1/tracks/4nklmaiY4gfQ...https://api.spotify.com/v1/tracks/11qDTSr3Dj4T...https://api.spotify.com/v1/tracks/4D6ZExVvYLZx...https://api.spotify.com/v1/tracks/48IEDejXX5LH...https://api.spotify.com/v1/tracks/2B5P22cfUadA...https://api.spotify.com/v1/tracks/6qttbImnJ5wu...https://api.spotify.com/v1/tracks/0eECFDnWy0Rd...
id6Unw1AAcpS1ZgZoRlj2jxA5hfzW7LG97Hxv62HHUKgaj64lecUR19lBSu317AzVZv31CxhtUbe1o2PeMM3l5Kch62H7Y8wYixrSlKJoaZ1N2yl3zkFTfcboFcOdno0CHCmTc7KKglMFf5KV0PIDSAOqfnH4raxzmnFq93jfKC8c3xcIv1gaAIZ4vGQ6QvDUgN2Xyus7krim8C3DpTu1ShdoZezix...2zYmvi3w2T8a9Ckrv21bvW3ovbSnT5NNhl1gzMcw1NRZ4NUc1M0CS7b6zvWoyvibju4nklmaiY4gfQI3SB1sLGsd11qDTSr3Dj4TkPnBcIOqEJ4D6ZExVvYLZxhcAvifX5px48IEDejXX5LH8TAC3VIGpc2B5P22cfUadACK7jLQegU66qttbImnJ5wuA8AtDKEy180eECFDnWy0RdjMmJ8NOeAL
ignoreNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
instrumentalness0.7730.9380.07720.9370.9360.000180.8340.6410.8490.00509...0.01657.71e-060.0007560.3660.5690.08480.30.3990.3820.898
key22090701042...27426070117
liveness0.08460.09510.1170.1110.1190.6110.2320.08120.1150.387...0.1290.08830.3330.3220.1870.1750.1180.1110.240.0896
loudness-9.633-8.405-7.023-13.055-7.97-7.806-12.43-12.403-9.477-10.58...-10.059-14.134-10.772-10.436-8.868-10.915-10.256-12.298-10.739-11.521
lyrical_densityNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...0.3961591.151470.6887050.4796210.7110710.7497950.565010.3992190.3403450.0933886
lyricsNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...and the wise man said i don't want to hear you...been thinking about you your records are here ...destiny destiny protect me from the world dest...soul destroyed with clever toys for little boy...i never wanted anything but this i worked hard...i can't afford to breathe in this time nowhere...please forget the words that i just blurted ou...i feel better i feel better now you've gone i ...in my mind and nailed into my heels all the ti...you are not mine and i am not yours and that's...
mode1010111000...1101111101
nameLittle By Little (Caribou Rmx)Lotus Flower (Jacques Greene Rmx)Morning Mr Magpie (Nathan Fake Rmx)Bloom (Harmonic 313 Rmx)Bloom (Mark Pritchard Rmx)Feral (Lone RMX)Morning Mr Magpie (Pearson Sound Scavenger RMX)Separator (Four Tet RMX)Give Up The Ghost (Thriller Houseghost Remix)Codex (Illum Sphere)...Stop WhisperingThinking About YouAnyone Can Play GuitarRipcordVegetableProve YourselfI Can'tLurgeeBlow OutFeral
nnrc_sentimentNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...{'anger': 0.5, 'trust': 0.375, 'sadness': 0.25...{'joy': 0.5714285714285714, 'trust': 0.1428571...{'anger': 0.5714285714285714, 'negative': 0.57...{'negative': 0.6666666666666666, 'anger': 1.0,...{'anger': 0.5, 'trust': 0.125, 'sadness': 0.25...{'anger': 0.0625, 'sadness': 0.0625, 'surprise...{'anger': 0.4, 'fear': 0.2, 'negative': 1.0, '...{'negative': 1.0}{'negative': 1.0, 'anger': 0.625, 'sadness': 0...{}
nrc_sentimentNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...{'anger': 4, 'trust': 3, 'fear': 1, 'surprise'...{'joy': 4, 'trust': 1, 'positive': 7, 'surpris...{'anger': 4, 'negative': 4, 'joy': 5, 'trust':...{'negative': 2, 'anger': 3, 'positive': 1, 'sa...{'anger': 4, 'trust': 1, 'fear': 3, 'negative'...{'anger': 1, 'fear': 2, 'surprise': 1, 'negati...{'anger': 2, 'fear': 1, 'negative': 5, 'trust'...{'negative': 1}{'negative': 8, 'anger': 5, 'sadness': 3, 'fea...{}
original_lyricsNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...\\n\\n[Verse 1]\\nAnd the wise man said I don't w...\\n\\n[Verse 1]\\nBeen thinking about you\\nYour r...\\n\\n[Verse 1]\\nDestiny, destiny protect me fro...\\n\\n[Verse 1]\\nSoul destroyed with clever toys...\\n\\n[Verse 1]\\nI never wanted anything but thi...\\n\\n[Verse 1]\\nI can't afford to breathe in th...\\n\\n[Verse 1]\\nPlease forget the words that I ...\\n\\n[Verse 1]\\nI feel better\\nI feel better no...\\n\\n[Verse 1]\\nIn my mind\\nAnd nailed into my ...\\n\\n[Verse]\\nYou are not mine\\nAnd I am not yo...
popularity43433736363534363433...44484542424241414445
preview_urlhttps://p.scdn.co/mp3-preview/0e4982f830936c3c...https://p.scdn.co/mp3-preview/fb82884344aaffd3...https://p.scdn.co/mp3-preview/e8aa276e76b8e753...https://p.scdn.co/mp3-preview/686816b702063d96...https://p.scdn.co/mp3-preview/7e51561e95c5a3aa...https://p.scdn.co/mp3-preview/3d4ad1a19809193c...https://p.scdn.co/mp3-preview/c62871a98cd382a0...https://p.scdn.co/mp3-preview/d7e13aaa8cf0f949...https://p.scdn.co/mp3-preview/19cf8afa026a7449...https://p.scdn.co/mp3-preview/03dc62ba2d343861......https://p.scdn.co/mp3-preview/397951413134fe02...https://p.scdn.co/mp3-preview/ec90a4cef1ff0cbf...https://p.scdn.co/mp3-preview/76e430500d399da2...https://p.scdn.co/mp3-preview/a519caf188516bc5...https://p.scdn.co/mp3-preview/22dd1bf01746cb6d...https://p.scdn.co/mp3-preview/6d62fc6cd2849212...https://p.scdn.co/mp3-preview/516d9e9499a86318...https://p.scdn.co/mp3-preview/ae0de4e9b90a15a7...https://p.scdn.co/mp3-preview/69a5564e6733d6d2...https://p.scdn.co/mp3-preview/9dc0af2fa010c41d...
sentimentNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...{'label': 'neg', 'probability': {'pos': 0.1440...{'label': 'neg', 'probability': {'pos': 0.2083...{'label': 'neg', 'probability': {'pos': 0.3734...{'label': 'neg', 'probability': {'pos': 0.3408...{'label': 'neg', 'probability': {'pos': 0.1167...{'label': 'neg', 'probability': {'pos': 0.1849...{'label': 'neg', 'probability': {'pos': 0.1502...{'label': 'neg', 'probability': {'pos': 0.2629...{'label': 'neg', 'probability': {'pos': 0.3796...{'label': 'pos', 'probability': {'pos': 0.5347...
speechiness0.06010.03270.2320.05360.03250.1740.06740.07160.1020.0332...0.04720.03310.05470.05480.03390.06110.05950.02680.05060.0974
tempo115.62127.982139.976150.02375.007134.938132.035113.752119.96872.52...122.37103.44150.845137.949105.852114.098106.108101.9141.539135.991
time_signature4444443441...4444444444
track_hrefhttps://api.spotify.com/v1/tracks/6Unw1AAcpS1Z...https://api.spotify.com/v1/tracks/5hfzW7LG97Hx...https://api.spotify.com/v1/tracks/64lecUR19lBS...https://api.spotify.com/v1/tracks/1CxhtUbe1o2P...https://api.spotify.com/v1/tracks/2H7Y8wYixrSl...https://api.spotify.com/v1/tracks/3zkFTfcboFcO...https://api.spotify.com/v1/tracks/7KKglMFf5KV0...https://api.spotify.com/v1/tracks/4raxzmnFq93j...https://api.spotify.com/v1/tracks/1gaAIZ4vGQ6Q...https://api.spotify.com/v1/tracks/7krim8C3DpTu......https://api.spotify.com/v1/tracks/2zYmvi3w2T8a...https://api.spotify.com/v1/tracks/3ovbSnT5NNhl...https://api.spotify.com/v1/tracks/4NUc1M0CS7b6...https://api.spotify.com/v1/tracks/4nklmaiY4gfQ...https://api.spotify.com/v1/tracks/11qDTSr3Dj4T...https://api.spotify.com/v1/tracks/4D6ZExVvYLZx...https://api.spotify.com/v1/tracks/48IEDejXX5LH...https://api.spotify.com/v1/tracks/2B5P22cfUadA...https://api.spotify.com/v1/tracks/6qttbImnJ5wu...https://api.spotify.com/v1/tracks/0eECFDnWy0Rd...
track_number12345678910...4567891011124
typeaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_features...audio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_featuresaudio_features
urispotify:track:6Unw1AAcpS1ZgZoRlj2jxAspotify:track:5hfzW7LG97Hxv62HHUKgajspotify:track:64lecUR19lBSu317AzVZv3spotify:track:1CxhtUbe1o2PeMM3l5Kch6spotify:track:2H7Y8wYixrSlKJoaZ1N2ylspotify:track:3zkFTfcboFcOdno0CHCmTcspotify:track:7KKglMFf5KV0PIDSAOqfnHspotify:track:4raxzmnFq93jfKC8c3xcIvspotify:track:1gaAIZ4vGQ6QvDUgN2Xyusspotify:track:7krim8C3DpTu1ShdoZezix...spotify:track:2zYmvi3w2T8a9Ckrv21bvWspotify:track:3ovbSnT5NNhl1gzMcw1NRZspotify:track:4NUc1M0CS7b6zvWoyvibjuspotify:track:4nklmaiY4gfQI3SB1sLGsdspotify:track:11qDTSr3Dj4TkPnBcIOqEJspotify:track:4D6ZExVvYLZxhcAvifX5pxspotify:track:48IEDejXX5LH8TAC3VIGpcspotify:track:2B5P22cfUadACK7jLQegU6spotify:track:6qttbImnJ5wuA8AtDKEy18spotify:track:0eECFDnWy0RdjMmJ8NOeAL
valence0.1260.1690.8460.1850.2860.2220.09010.3750.1430.0678...0.2980.4210.5540.2540.420.3190.2760.4080.2890.729
\n", "

42 rows × 146 columns

\n", "
" ], "text/plain": [ " 0 \\\n", "_id 6Unw1AAcpS1ZgZoRlj2jxA \n", "acousticness 0.00822 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 47xaqCsJcYFWqD1gwujl1T \n", "analysis_url https://api.spotify.com/v1/audio-analysis/6Unw... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle little by little caribou rmx \n", "danceability 0.8 \n", "disc_number 1 \n", "duration_ms 340160 \n", "energy 0.586 \n", "explicit False \n", "external_ids {'isrc': 'GBU4B1100013'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/6U... \n", "href https://api.spotify.com/v1/tracks/6Unw1AAcpS1Z... \n", "id 6Unw1AAcpS1ZgZoRlj2jxA \n", "ignore NaN \n", "instrumentalness 0.773 \n", "key 2 \n", "liveness 0.0846 \n", "loudness -9.633 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Little By Little (Caribou Rmx) \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 43 \n", "preview_url https://p.scdn.co/mp3-preview/0e4982f830936c3c... \n", "sentiment NaN \n", "speechiness 0.0601 \n", "tempo 115.62 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/6Unw1AAcpS1Z... \n", "track_number 1 \n", "type audio_features \n", "uri spotify:track:6Unw1AAcpS1ZgZoRlj2jxA \n", "valence 0.126 \n", "\n", " 1 \\\n", "_id 5hfzW7LG97Hxv62HHUKgaj \n", "acousticness 0.0589 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 47xaqCsJcYFWqD1gwujl1T \n", "analysis_url https://api.spotify.com/v1/audio-analysis/5hfz... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle lotus flower jacques greene rmx \n", "danceability 0.629 \n", "disc_number 1 \n", "duration_ms 429947 \n", "energy 0.592 \n", "explicit False \n", "external_ids {'isrc': 'GBU4B1100014'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/5h... \n", "href https://api.spotify.com/v1/tracks/5hfzW7LG97Hx... \n", "id 5hfzW7LG97Hxv62HHUKgaj \n", "ignore NaN \n", "instrumentalness 0.938 \n", "key 2 \n", "liveness 0.0951 \n", "loudness -8.405 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 0 \n", "name Lotus Flower (Jacques Greene Rmx) \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 43 \n", "preview_url https://p.scdn.co/mp3-preview/fb82884344aaffd3... \n", "sentiment NaN \n", "speechiness 0.0327 \n", "tempo 127.982 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/5hfzW7LG97Hx... \n", "track_number 2 \n", "type audio_features \n", "uri spotify:track:5hfzW7LG97Hxv62HHUKgaj \n", "valence 0.169 \n", "\n", " 2 \\\n", "_id 64lecUR19lBSu317AzVZv3 \n", "acousticness 0.0825 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 47xaqCsJcYFWqD1gwujl1T \n", "analysis_url https://api.spotify.com/v1/audio-analysis/64le... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle morning mr magpie nathan fake rmx \n", "danceability 0.661 \n", "disc_number 1 \n", "duration_ms 291987 \n", "energy 0.707 \n", "explicit False \n", "external_ids {'isrc': 'GBU4B1100015'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/64... \n", "href https://api.spotify.com/v1/tracks/64lecUR19lBS... \n", "id 64lecUR19lBSu317AzVZv3 \n", "ignore NaN \n", "instrumentalness 0.0772 \n", "key 0 \n", "liveness 0.117 \n", "loudness -7.023 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Morning Mr Magpie (Nathan Fake Rmx) \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 37 \n", "preview_url https://p.scdn.co/mp3-preview/e8aa276e76b8e753... \n", "sentiment NaN \n", "speechiness 0.232 \n", "tempo 139.976 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/64lecUR19lBS... \n", "track_number 3 \n", "type audio_features \n", "uri spotify:track:64lecUR19lBSu317AzVZv3 \n", "valence 0.846 \n", "\n", " 3 \\\n", "_id 1CxhtUbe1o2PeMM3l5Kch6 \n", "acousticness 0.102 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 47xaqCsJcYFWqD1gwujl1T \n", "analysis_url https://api.spotify.com/v1/audio-analysis/1Cxh... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle bloom harmonic 313 rmx \n", "danceability 0.443 \n", "disc_number 1 \n", "duration_ms 304333 \n", "energy 0.665 \n", "explicit False \n", "external_ids {'isrc': 'GBU4B1100016'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/1C... \n", "href https://api.spotify.com/v1/tracks/1CxhtUbe1o2P... \n", "id 1CxhtUbe1o2PeMM3l5Kch6 \n", "ignore NaN \n", "instrumentalness 0.937 \n", "key 9 \n", "liveness 0.111 \n", "loudness -13.055 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 0 \n", "name Bloom (Harmonic 313 Rmx) \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 36 \n", "preview_url https://p.scdn.co/mp3-preview/686816b702063d96... \n", "sentiment NaN \n", "speechiness 0.0536 \n", "tempo 150.023 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/1CxhtUbe1o2P... \n", "track_number 4 \n", "type audio_features \n", "uri spotify:track:1CxhtUbe1o2PeMM3l5Kch6 \n", "valence 0.185 \n", "\n", " 4 \\\n", "_id 2H7Y8wYixrSlKJoaZ1N2yl \n", "acousticness 0.000801 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 47xaqCsJcYFWqD1gwujl1T \n", "analysis_url https://api.spotify.com/v1/audio-analysis/2H7Y... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle bloom mark pritchard rmx \n", "danceability 0.414 \n", "disc_number 1 \n", "duration_ms 367280 \n", "energy 0.712 \n", "explicit False \n", "external_ids {'isrc': 'GBU4B1100017'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/2H... \n", "href https://api.spotify.com/v1/tracks/2H7Y8wYixrSl... \n", "id 2H7Y8wYixrSlKJoaZ1N2yl \n", "ignore NaN \n", "instrumentalness 0.936 \n", "key 0 \n", "liveness 0.119 \n", "loudness -7.97 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Bloom (Mark Pritchard Rmx) \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 36 \n", "preview_url https://p.scdn.co/mp3-preview/7e51561e95c5a3aa... \n", "sentiment NaN \n", "speechiness 0.0325 \n", "tempo 75.007 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/2H7Y8wYixrSl... \n", "track_number 5 \n", "type audio_features \n", "uri spotify:track:2H7Y8wYixrSlKJoaZ1N2yl \n", "valence 0.286 \n", "\n", " 5 \\\n", "_id 3zkFTfcboFcOdno0CHCmTc \n", "acousticness 0.0955 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 47xaqCsJcYFWqD1gwujl1T \n", "analysis_url https://api.spotify.com/v1/audio-analysis/3zkF... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle feral lone rmx \n", "danceability 0.761 \n", "disc_number 1 \n", "duration_ms 317507 \n", "energy 0.877 \n", "explicit False \n", "external_ids {'isrc': 'GBU4B1100018'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/3z... \n", "href https://api.spotify.com/v1/tracks/3zkFTfcboFcO... \n", "id 3zkFTfcboFcOdno0CHCmTc \n", "ignore NaN \n", "instrumentalness 0.00018 \n", "key 7 \n", "liveness 0.611 \n", "loudness -7.806 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Feral (Lone RMX) \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 35 \n", "preview_url https://p.scdn.co/mp3-preview/3d4ad1a19809193c... \n", "sentiment NaN \n", "speechiness 0.174 \n", "tempo 134.938 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/3zkFTfcboFcO... \n", "track_number 6 \n", "type audio_features \n", "uri spotify:track:3zkFTfcboFcOdno0CHCmTc \n", "valence 0.222 \n", "\n", " 6 \\\n", "_id 7KKglMFf5KV0PIDSAOqfnH \n", "acousticness 0.0147 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 47xaqCsJcYFWqD1gwujl1T \n", "analysis_url https://api.spotify.com/v1/audio-analysis/7KKg... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle morning mr magpie pearson sound scavenger rmx \n", "danceability 0.481 \n", "disc_number 1 \n", "duration_ms 278893 \n", "energy 0.336 \n", "explicit False \n", "external_ids {'isrc': 'GBU4B1100020'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/7K... \n", "href https://api.spotify.com/v1/tracks/7KKglMFf5KV0... \n", "id 7KKglMFf5KV0PIDSAOqfnH \n", "ignore NaN \n", "instrumentalness 0.834 \n", "key 0 \n", "liveness 0.232 \n", "loudness -12.43 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 1 \n", "name Morning Mr Magpie (Pearson Sound Scavenger RMX) \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 34 \n", "preview_url https://p.scdn.co/mp3-preview/c62871a98cd382a0... \n", "sentiment NaN \n", "speechiness 0.0674 \n", "tempo 132.035 \n", "time_signature 3 \n", "track_href https://api.spotify.com/v1/tracks/7KKglMFf5KV0... \n", "track_number 7 \n", "type audio_features \n", "uri spotify:track:7KKglMFf5KV0PIDSAOqfnH \n", "valence 0.0901 \n", "\n", " 7 \\\n", "_id 4raxzmnFq93jfKC8c3xcIv \n", "acousticness 0.443 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 47xaqCsJcYFWqD1gwujl1T \n", "analysis_url https://api.spotify.com/v1/audio-analysis/4rax... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle separator four tet rmx \n", "danceability 0.461 \n", "disc_number 1 \n", "duration_ms 423000 \n", "energy 0.455 \n", "explicit False \n", "external_ids {'isrc': 'GBU4B1100019'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/4r... \n", "href https://api.spotify.com/v1/tracks/4raxzmnFq93j... \n", "id 4raxzmnFq93jfKC8c3xcIv \n", "ignore NaN \n", "instrumentalness 0.641 \n", "key 10 \n", "liveness 0.0812 \n", "loudness -12.403 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 0 \n", "name Separator (Four Tet RMX) \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 36 \n", "preview_url https://p.scdn.co/mp3-preview/d7e13aaa8cf0f949... \n", "sentiment NaN \n", "speechiness 0.0716 \n", "tempo 113.752 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/4raxzmnFq93j... \n", "track_number 8 \n", "type audio_features \n", "uri spotify:track:4raxzmnFq93jfKC8c3xcIv \n", "valence 0.375 \n", "\n", " 8 \\\n", "_id 1gaAIZ4vGQ6QvDUgN2Xyus \n", "acousticness 0.313 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 47xaqCsJcYFWqD1gwujl1T \n", "analysis_url https://api.spotify.com/v1/audio-analysis/1gaA... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle give up the ghost thriller houseghost remix \n", "danceability 0.596 \n", "disc_number 1 \n", "duration_ms 373760 \n", "energy 0.894 \n", "explicit False \n", "external_ids {'isrc': 'GBU4B1100031'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/1g... \n", "href https://api.spotify.com/v1/tracks/1gaAIZ4vGQ6Q... \n", "id 1gaAIZ4vGQ6QvDUgN2Xyus \n", "ignore NaN \n", "instrumentalness 0.849 \n", "key 4 \n", "liveness 0.115 \n", "loudness -9.477 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 0 \n", "name Give Up The Ghost (Thriller Houseghost Remix) \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 34 \n", "preview_url https://p.scdn.co/mp3-preview/19cf8afa026a7449... \n", "sentiment NaN \n", "speechiness 0.102 \n", "tempo 119.968 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/1gaAIZ4vGQ6Q... \n", "track_number 9 \n", "type audio_features \n", "uri spotify:track:1gaAIZ4vGQ6QvDUgN2Xyus \n", "valence 0.143 \n", "\n", " 9 \\\n", "_id 7krim8C3DpTu1ShdoZezix \n", "acousticness 0.464 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 47xaqCsJcYFWqD1gwujl1T \n", "analysis_url https://api.spotify.com/v1/audio-analysis/7kri... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle codex illum sphere \n", "danceability 0.441 \n", "disc_number 1 \n", "duration_ms 274373 \n", "energy 0.575 \n", "explicit False \n", "external_ids {'isrc': 'GBU4B1100032'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/7k... \n", "href https://api.spotify.com/v1/tracks/7krim8C3DpTu... \n", "id 7krim8C3DpTu1ShdoZezix \n", "ignore NaN \n", "instrumentalness 0.00509 \n", "key 2 \n", "liveness 0.387 \n", "loudness -10.58 \n", "lyrical_density NaN \n", "lyrics NaN \n", "mode 0 \n", "name Codex (Illum Sphere) \n", "nnrc_sentiment NaN \n", "nrc_sentiment NaN \n", "original_lyrics NaN \n", "popularity 33 \n", "preview_url https://p.scdn.co/mp3-preview/03dc62ba2d343861... \n", "sentiment NaN \n", "speechiness 0.0332 \n", "tempo 72.52 \n", "time_signature 1 \n", "track_href https://api.spotify.com/v1/tracks/7krim8C3DpTu... \n", "track_number 10 \n", "type audio_features \n", "uri spotify:track:7krim8C3DpTu1ShdoZezix \n", "valence 0.0678 \n", "\n", " ... \\\n", "_id ... \n", "acousticness ... \n", "album ... \n", "album_id ... \n", "analysis_url ... \n", "artist_id ... \n", "artist_name ... \n", "artists ... \n", "available_markets ... \n", "ctitle ... \n", "danceability ... \n", "disc_number ... \n", "duration_ms ... \n", "energy ... \n", "explicit ... \n", "external_ids ... \n", "external_urls ... \n", "href ... \n", "id ... \n", "ignore ... \n", "instrumentalness ... \n", "key ... \n", "liveness ... \n", "loudness ... \n", "lyrical_density ... \n", "lyrics ... \n", "mode ... \n", "name ... \n", "nnrc_sentiment ... \n", "nrc_sentiment ... \n", "original_lyrics ... \n", "popularity ... \n", "preview_url ... \n", "sentiment ... \n", "speechiness ... \n", "tempo ... \n", "time_signature ... \n", "track_href ... \n", "track_number ... \n", "type ... \n", "uri ... \n", "valence ... \n", "\n", " 136 \\\n", "_id 2zYmvi3w2T8a9Ckrv21bvW \n", "acousticness 0.000849 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 6400dnyeDyD2mIFHfkwHXN \n", "analysis_url https://api.spotify.com/v1/audio-analysis/2zYm... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle stop whispering \n", "danceability 0.212 \n", "disc_number 1 \n", "duration_ms 325627 \n", "energy 0.696 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE9300106'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/2z... \n", "href https://api.spotify.com/v1/tracks/2zYmvi3w2T8a... \n", "id 2zYmvi3w2T8a9Ckrv21bvW \n", "ignore NaN \n", "instrumentalness 0.0165 \n", "key 2 \n", "liveness 0.129 \n", "loudness -10.059 \n", "lyrical_density 0.396159 \n", "lyrics and the wise man said i don't want to hear you... \n", "mode 1 \n", "name Stop Whispering \n", "nnrc_sentiment {'anger': 0.5, 'trust': 0.375, 'sadness': 0.25... \n", "nrc_sentiment {'anger': 4, 'trust': 3, 'fear': 1, 'surprise'... \n", "original_lyrics \\n\\n[Verse 1]\\nAnd the wise man said I don't w... \n", "popularity 44 \n", "preview_url https://p.scdn.co/mp3-preview/397951413134fe02... \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.1440... \n", "speechiness 0.0472 \n", "tempo 122.37 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/2zYmvi3w2T8a... \n", "track_number 4 \n", "type audio_features \n", "uri spotify:track:2zYmvi3w2T8a9Ckrv21bvW \n", "valence 0.298 \n", "\n", " 137 \\\n", "_id 3ovbSnT5NNhl1gzMcw1NRZ \n", "acousticness 0.704 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 6400dnyeDyD2mIFHfkwHXN \n", "analysis_url https://api.spotify.com/v1/audio-analysis/3ovb... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle thinking about you \n", "danceability 0.364 \n", "disc_number 1 \n", "duration_ms 161533 \n", "energy 0.37 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE9200114'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/3o... \n", "href https://api.spotify.com/v1/tracks/3ovbSnT5NNhl... \n", "id 3ovbSnT5NNhl1gzMcw1NRZ \n", "ignore NaN \n", "instrumentalness 7.71e-06 \n", "key 7 \n", "liveness 0.0883 \n", "loudness -14.134 \n", "lyrical_density 1.15147 \n", "lyrics been thinking about you your records are here ... \n", "mode 1 \n", "name Thinking About You \n", "nnrc_sentiment {'joy': 0.5714285714285714, 'trust': 0.1428571... \n", "nrc_sentiment {'joy': 4, 'trust': 1, 'positive': 7, 'surpris... \n", "original_lyrics \\n\\n[Verse 1]\\nBeen thinking about you\\nYour r... \n", "popularity 48 \n", "preview_url https://p.scdn.co/mp3-preview/ec90a4cef1ff0cbf... \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.2083... \n", "speechiness 0.0331 \n", "tempo 103.44 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/3ovbSnT5NNhl... \n", "track_number 5 \n", "type audio_features \n", "uri spotify:track:3ovbSnT5NNhl1gzMcw1NRZ \n", "valence 0.421 \n", "\n", " 138 \\\n", "_id 4NUc1M0CS7b6zvWoyvibju \n", "acousticness 0.000101 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 6400dnyeDyD2mIFHfkwHXN \n", "analysis_url https://api.spotify.com/v1/audio-analysis/4NUc... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle anyone can play guitar \n", "danceability 0.294 \n", "disc_number 1 \n", "duration_ms 217800 \n", "energy 0.813 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE9300107'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/4N... \n", "href https://api.spotify.com/v1/tracks/4NUc1M0CS7b6... \n", "id 4NUc1M0CS7b6zvWoyvibju \n", "ignore NaN \n", "instrumentalness 0.000756 \n", "key 4 \n", "liveness 0.333 \n", "loudness -10.772 \n", "lyrical_density 0.688705 \n", "lyrics destiny destiny protect me from the world dest... \n", "mode 0 \n", "name Anyone Can Play Guitar \n", "nnrc_sentiment {'anger': 0.5714285714285714, 'negative': 0.57... \n", "nrc_sentiment {'anger': 4, 'negative': 4, 'joy': 5, 'trust':... \n", "original_lyrics \\n\\n[Verse 1]\\nDestiny, destiny protect me fro... \n", "popularity 45 \n", "preview_url https://p.scdn.co/mp3-preview/76e430500d399da2... \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.3734... \n", "speechiness 0.0547 \n", "tempo 150.845 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/4NUc1M0CS7b6... \n", "track_number 6 \n", "type audio_features \n", "uri spotify:track:4NUc1M0CS7b6zvWoyvibju \n", "valence 0.554 \n", "\n", " 139 \\\n", "_id 4nklmaiY4gfQI3SB1sLGsd \n", "acousticness 1.93e-05 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 6400dnyeDyD2mIFHfkwHXN \n", "analysis_url https://api.spotify.com/v1/audio-analysis/4nkl... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle ripcord \n", "danceability 0.256 \n", "disc_number 1 \n", "duration_ms 189733 \n", "energy 0.906 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE9300108'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/4n... \n", "href https://api.spotify.com/v1/tracks/4nklmaiY4gfQ... \n", "id 4nklmaiY4gfQI3SB1sLGsd \n", "ignore NaN \n", "instrumentalness 0.366 \n", "key 2 \n", "liveness 0.322 \n", "loudness -10.436 \n", "lyrical_density 0.479621 \n", "lyrics soul destroyed with clever toys for little boy... \n", "mode 1 \n", "name Ripcord \n", "nnrc_sentiment {'negative': 0.6666666666666666, 'anger': 1.0,... \n", "nrc_sentiment {'negative': 2, 'anger': 3, 'positive': 1, 'sa... \n", "original_lyrics \\n\\n[Verse 1]\\nSoul destroyed with clever toys... \n", "popularity 42 \n", "preview_url https://p.scdn.co/mp3-preview/a519caf188516bc5... \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.3408... \n", "speechiness 0.0548 \n", "tempo 137.949 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/4nklmaiY4gfQ... \n", "track_number 7 \n", "type audio_features \n", "uri spotify:track:4nklmaiY4gfQI3SB1sLGsd \n", "valence 0.254 \n", "\n", " 140 \\\n", "_id 11qDTSr3Dj4TkPnBcIOqEJ \n", "acousticness 0.00281 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 6400dnyeDyD2mIFHfkwHXN \n", "analysis_url https://api.spotify.com/v1/audio-analysis/11qD... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle vegetable \n", "danceability 0.384 \n", "disc_number 1 \n", "duration_ms 192667 \n", "energy 0.717 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE9300109'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/11... \n", "href https://api.spotify.com/v1/tracks/11qDTSr3Dj4T... \n", "id 11qDTSr3Dj4TkPnBcIOqEJ \n", "ignore NaN \n", "instrumentalness 0.569 \n", "key 6 \n", "liveness 0.187 \n", "loudness -8.868 \n", "lyrical_density 0.711071 \n", "lyrics i never wanted anything but this i worked hard... \n", "mode 1 \n", "name Vegetable \n", "nnrc_sentiment {'anger': 0.5, 'trust': 0.125, 'sadness': 0.25... \n", "nrc_sentiment {'anger': 4, 'trust': 1, 'fear': 3, 'negative'... \n", "original_lyrics \\n\\n[Verse 1]\\nI never wanted anything but thi... \n", "popularity 42 \n", "preview_url https://p.scdn.co/mp3-preview/22dd1bf01746cb6d... \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.1167... \n", "speechiness 0.0339 \n", "tempo 105.852 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/11qDTSr3Dj4T... \n", "track_number 8 \n", "type audio_features \n", "uri spotify:track:11qDTSr3Dj4TkPnBcIOqEJ \n", "valence 0.42 \n", "\n", " 141 \\\n", "_id 4D6ZExVvYLZxhcAvifX5px \n", "acousticness 0.000849 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 6400dnyeDyD2mIFHfkwHXN \n", "analysis_url https://api.spotify.com/v1/audio-analysis/4D6Z... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle prove yourself \n", "danceability 0.25 \n", "disc_number 1 \n", "duration_ms 145373 \n", "energy 0.62 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE9200115'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/4D... \n", "href https://api.spotify.com/v1/tracks/4D6ZExVvYLZx... \n", "id 4D6ZExVvYLZxhcAvifX5px \n", "ignore NaN \n", "instrumentalness 0.0848 \n", "key 0 \n", "liveness 0.175 \n", "loudness -10.915 \n", "lyrical_density 0.749795 \n", "lyrics i can't afford to breathe in this time nowhere... \n", "mode 1 \n", "name Prove Yourself \n", "nnrc_sentiment {'anger': 0.0625, 'sadness': 0.0625, 'surprise... \n", "nrc_sentiment {'anger': 1, 'fear': 2, 'surprise': 1, 'negati... \n", "original_lyrics \\n\\n[Verse 1]\\nI can't afford to breathe in th... \n", "popularity 42 \n", "preview_url https://p.scdn.co/mp3-preview/6d62fc6cd2849212... \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.1849... \n", "speechiness 0.0611 \n", "tempo 114.098 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/4D6ZExVvYLZx... \n", "track_number 9 \n", "type audio_features \n", "uri spotify:track:4D6ZExVvYLZxhcAvifX5px \n", "valence 0.319 \n", "\n", " 142 \\\n", "_id 48IEDejXX5LH8TAC3VIGpc \n", "acousticness 0.00968 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 6400dnyeDyD2mIFHfkwHXN \n", "analysis_url https://api.spotify.com/v1/audio-analysis/48IE... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle i cant \n", "danceability 0.284 \n", "disc_number 1 \n", "duration_ms 253093 \n", "energy 0.825 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE9300110'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/48... \n", "href https://api.spotify.com/v1/tracks/48IEDejXX5LH... \n", "id 48IEDejXX5LH8TAC3VIGpc \n", "ignore NaN \n", "instrumentalness 0.3 \n", "key 7 \n", "liveness 0.118 \n", "loudness -10.256 \n", "lyrical_density 0.56501 \n", "lyrics please forget the words that i just blurted ou... \n", "mode 1 \n", "name I Can't \n", "nnrc_sentiment {'anger': 0.4, 'fear': 0.2, 'negative': 1.0, '... \n", "nrc_sentiment {'anger': 2, 'fear': 1, 'negative': 5, 'trust'... \n", "original_lyrics \\n\\n[Verse 1]\\nPlease forget the words that I ... \n", "popularity 41 \n", "preview_url https://p.scdn.co/mp3-preview/516d9e9499a86318... \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.1502... \n", "speechiness 0.0595 \n", "tempo 106.108 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/48IEDejXX5LH... \n", "track_number 10 \n", "type audio_features \n", "uri spotify:track:48IEDejXX5LH8TAC3VIGpc \n", "valence 0.276 \n", "\n", " 143 \\\n", "_id 2B5P22cfUadACK7jLQegU6 \n", "acousticness 0.000135 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 6400dnyeDyD2mIFHfkwHXN \n", "analysis_url https://api.spotify.com/v1/audio-analysis/2B5P... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle lurgee \n", "danceability 0.42 \n", "disc_number 1 \n", "duration_ms 187867 \n", "energy 0.548 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE9200116'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/2B... \n", "href https://api.spotify.com/v1/tracks/2B5P22cfUadA... \n", "id 2B5P22cfUadACK7jLQegU6 \n", "ignore NaN \n", "instrumentalness 0.399 \n", "key 0 \n", "liveness 0.111 \n", "loudness -12.298 \n", "lyrical_density 0.399219 \n", "lyrics i feel better i feel better now you've gone i ... \n", "mode 1 \n", "name Lurgee \n", "nnrc_sentiment {'negative': 1.0} \n", "nrc_sentiment {'negative': 1} \n", "original_lyrics \\n\\n[Verse 1]\\nI feel better\\nI feel better no... \n", "popularity 41 \n", "preview_url https://p.scdn.co/mp3-preview/ae0de4e9b90a15a7... \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.2629... \n", "speechiness 0.0268 \n", "tempo 101.9 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/2B5P22cfUadA... \n", "track_number 11 \n", "type audio_features \n", "uri spotify:track:2B5P22cfUadACK7jLQegU6 \n", "valence 0.408 \n", "\n", " 144 \\\n", "_id 6qttbImnJ5wuA8AtDKEy18 \n", "acousticness 0.000465 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 6400dnyeDyD2mIFHfkwHXN \n", "analysis_url https://api.spotify.com/v1/audio-analysis/6qtt... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle blow out \n", "danceability 0.284 \n", "disc_number 1 \n", "duration_ms 282067 \n", "energy 0.719 \n", "explicit False \n", "external_ids {'isrc': 'GBAYE9300111'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/6q... \n", "href https://api.spotify.com/v1/tracks/6qttbImnJ5wu... \n", "id 6qttbImnJ5wuA8AtDKEy18 \n", "ignore NaN \n", "instrumentalness 0.382 \n", "key 11 \n", "liveness 0.24 \n", "loudness -10.739 \n", "lyrical_density 0.340345 \n", "lyrics in my mind and nailed into my heels all the ti... \n", "mode 0 \n", "name Blow Out \n", "nnrc_sentiment {'negative': 1.0, 'anger': 0.625, 'sadness': 0... \n", "nrc_sentiment {'negative': 8, 'anger': 5, 'sadness': 3, 'fea... \n", "original_lyrics \\n\\n[Verse 1]\\nIn my mind\\nAnd nailed into my ... \n", "popularity 44 \n", "preview_url https://p.scdn.co/mp3-preview/69a5564e6733d6d2... \n", "sentiment {'label': 'neg', 'probability': {'pos': 0.3796... \n", "speechiness 0.0506 \n", "tempo 141.539 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/6qttbImnJ5wu... \n", "track_number 12 \n", "type audio_features \n", "uri spotify:track:6qttbImnJ5wuA8AtDKEy18 \n", "valence 0.289 \n", "\n", " 145 \n", "_id 0eECFDnWy0RdjMmJ8NOeAL \n", "acousticness 0.00101 \n", "album {'external_urls': {'spotify': 'https://open.sp... \n", "album_id 1DBkJIEoeHrTX4WCBQGcCi \n", "analysis_url https://api.spotify.com/v1/audio-analysis/0eEC... \n", "artist_id 4Z8W4fKeB5YxbusRsdQVPb \n", "artist_name Radiohead \n", "artists [{'external_urls': {'spotify': 'https://open.s... \n", "available_markets [AD, AR, AT, AU, BE, BG, BO, BR, CA, CH, CL, C... \n", "ctitle feral \n", "danceability 0.49 \n", "disc_number 1 \n", "duration_ms 192743 \n", "energy 0.777 \n", "explicit False \n", "external_ids {'isrc': 'GBU4B1100006'} \n", "external_urls {'spotify': 'https://open.spotify.com/track/0e... \n", "href https://api.spotify.com/v1/tracks/0eECFDnWy0Rd... \n", "id 0eECFDnWy0RdjMmJ8NOeAL \n", "ignore NaN \n", "instrumentalness 0.898 \n", "key 7 \n", "liveness 0.0896 \n", "loudness -11.521 \n", "lyrical_density 0.0933886 \n", "lyrics you are not mine and i am not yours and that's... \n", "mode 1 \n", "name Feral \n", "nnrc_sentiment {} \n", "nrc_sentiment {} \n", "original_lyrics \\n\\n[Verse]\\nYou are not mine\\nAnd I am not yo... \n", "popularity 45 \n", "preview_url https://p.scdn.co/mp3-preview/9dc0af2fa010c41d... \n", "sentiment {'label': 'pos', 'probability': {'pos': 0.5347... \n", "speechiness 0.0974 \n", "tempo 135.991 \n", "time_signature 4 \n", "track_href https://api.spotify.com/v1/tracks/0eECFDnWy0Rd... \n", "track_number 4 \n", "type audio_features \n", "uri spotify:track:0eECFDnWy0RdjMmJ8NOeAL \n", "valence 0.729 \n", "\n", "[42 rows x 146 columns]" ] }, "execution_count": 20, "metadata": {}, "output_type": "execute_result" } ], "source": [ "radiohead_tracks = pd.DataFrame(list(tracks.find({'artist_id': radiohead_id})))\n", "radiohead_tracks.T" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "How happy are the Beatles and Stones tracks?" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 21, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD8CAYAAABn919SAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAADo1JREFUeJzt3X2MHIV5x/HvExwK5RJM4vSEDO0RhUS1OLWEEyKK1N5B\nUlGoAKkoApHWlqxaSfoSKa5at1GlvkrwB0nbCKm1CsKtkhwUtbUFQRElvqJGgdQuhONFFEOd1q5j\nNwVbPUrTnPL0jx0Sc+DbOd/trO/x9yOdPDM7O/PM453fzc7OzkVmIkla/d4y7AIkSSvDQJekIgx0\nSSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSpiTZcrW7duXY6NjQHwyiuvcM4553S5+lOOPbAH\nYA/AHsDiPdi7d++3M/Nd/ZbRaaCPjY2xZ88eAGZmZpicnOxy9acce2APwB6APYDFexAR32yzDE+5\nSFIRBrokFWGgS1IRBrokFWGgS1IRBrokFWGgS1IRBrokFWGgS1IRnX5TVNIbzR48xqZtD3S+3v23\nXtv5OjVYHqFLUhEGuiQVYaBLUhGeQ5d02hgbwmcV0N3nFR6hS1IRBrokFWGgS1IRBrokFeGHopI6\nt/DDya3j80P5clU1HqFLUhEGuiQVYaBLUhEGuiQVYaBLUhGtAz0izoiIxyPi/mb8ooh4LCL2RcQ9\nEXHm4MqUJPWzlCP0TwLPHjd+G/DZzHwP8DKweSULkyQtTatAj4gLgGuBv2jGA7gSuK+ZZQdwwyAK\nlCS10/YI/Y+B3wC+14y/EziamfPN+AFg/QrXJklagsjMxWeI+Dngmsz8RERMAr8ObAIebU63EBEX\nAg9m5iVv8vwtwBaA0dHRy6anpwGYm5tjZGRk5bZkFbIH9gDgyEvHOPxq9+sdX39u9yttzB489rrx\n0bMZSg+60qbXi+0LU1NTezNzot8y2nz1/4PAdRFxDXAW8HbgT4C1EbGmOUq/ADj4Zk/OzO3AdoCJ\niYmcnJwEYGZmhteGT1f2wB4AfO7zO7l9tvu7cOy/ZbLzdb5m4df8t47PD6UHXWnT65XYF/qecsnM\n38rMCzJzDLgJ+Epm3gLsBm5sZtsI7FxWJZKkZVnOdei/CXwqIvbRO6d+58qUJEk6GUt6j5OZM8BM\nM/wicPnKlyRJOhl+U1SSijDQJakIA12SijDQJakIA12SijDQJakIA12SijDQJakIA12SijDQJakI\nA12SijDQJakIA12Siqh7R3lJixpb8EcmtPp5hC5JRRjoklSEgS5JRRjoklSEgS5JRRjoklSEgS5J\nRRjoklSEgS5JRRjoklSEgS5JRRjoklSEgS5JRRjoklSEgS5JRRjoklSEgS5JRRjoklSEgS5JRRjo\nklSEgS5JRRjoklSEgS5JRRjoklRE30CPiLMi4usR8Y2IeDoifq+ZflFEPBYR+yLinog4c/DlSpJO\npM0R+neAKzPzJ4CfBK6OiCuA24DPZuZ7gJeBzYMrU5LUT99Az565ZvStzU8CVwL3NdN3ADcMpEJJ\nUiutzqFHxBkR8QRwBHgIeAE4mpnzzSwHgPWDKVGS1EZkZvuZI9YCfwv8DnB3c7qFiLgQeDAzL3mT\n52wBtgCMjo5eNj09DcDc3BwjIyPL3oDVzB7YA4AjLx3j8KvDrmK4Rs+mdA/G15/bd57F9oWpqam9\nmTnRbxlrllJUZh6NiN3AB4C1EbGmOUq/ADh4gudsB7YDTExM5OTkJAAzMzO8Nny6sgf2AOBzn9/J\n7bNL2hXL2To+X7oH+2+Z7DvPSuwLba5yeVdzZE5EnA18GHgW2A3c2My2Edi5rEokScvS5lfi+cCO\niDiD3i+AezPz/oh4BpiOiD8EHgfuHGCdkqQ++gZ6Zj4JXPom018ELh9EUZKkpfObopJUhIEuSUUY\n6JJUhIEuSUUY6JJUhIEuSUUY6JJUhIEuSUUY6JJUhIEuSUUY6JJUhIEuSUUY6JJUhIEuSUUY6JJU\nhIEuSUUY6JJUhIEuSUUY6JJUhIEuSUUY6JJUhIEuSUUY6JJUxJphF6BTz9i2Bzpb19bxeTYdt779\nt17b2bqP1+U2L7R1fGirVjEeoUtSEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBVhoEtS\nEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBXRN9Aj4sKI2B0Rz0TE0xHxyWb6OyLioYh4vvn3vMGXK0k6\nkTZH6PPA1szcAFwB/HJEbAC2AQ9n5sXAw824JGlI+gZ6Zh7KzH9uhv8beBZYD1wP7Ghm2wHcMKgi\nJUn9LekcekSMAZcCjwGjmXmoeehbwOiKViZJWpLIzHYzRowA/wD8UWb+TUQczcy1xz3+cma+4Tx6\nRGwBtgCMjo5eNj09DcDc3BwjIyMrsAmr16nag9mDxzpb1+jZcPjVH4yPrz+3s3Ufr8ttXmhhD05H\n1XvQ5nW9WB5MTU3tzcyJfstoFegR8VbgfuDLmfmZZtpzwGRmHoqI84GZzHzfYsuZmJjIPXv2ADAz\nM8Pk5GTfdVd2qvag678pevvsD/607en5N0Vf34PTUfUetHldL5YHEdEq0Ntc5RLAncCzr4V5Yxew\nsRneCOzstyxJ0uC0+ZX4QeAXgNmIeKKZ9tvArcC9EbEZ+CbwkcGUKElqo2+gZ+Y/AnGCh69a2XJO\nPYN8K751fJ5Niyx/WKcfJK1OflNUkoow0CWpCANdkoow0CWpiLoXfmpVGub14NJq5xG6JBVhoEtS\nEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBVhoEtSEQa6\nJBVhoEtSEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBVh\noEtSEQa6JBVhoEtSEQa6JBVhoEtSEQa6JBXRN9Aj4q6IOBIRTx037R0R8VBEPN/8e95gy5Qk9dPm\nCP1u4OoF07YBD2fmxcDDzbgkaYj6BnpmPgK8tGDy9cCOZngHcMMK1yVJWqKTPYc+mpmHmuFvAaMr\nVI8k6SRFZvafKWIMuD8zL2nGj2bm2uMefzkz3/Q8ekRsAbYAjI6OXjY9PQ3A3NwcIyMjy61/4GYP\nHhvYskfPhsOvnvjx8fXnDmzdixnkNi/UrwenA3tQvwdt9uXFMnFqampvZk70W8aapZcGwOGIOD8z\nD0XE+cCRE82YmduB7QATExM5OTkJwMzMDK8Nn8o2bXtgYMveOj7P7bMn/i/Yf8vkwNa9mEFu80L9\nenA6sAf1e9BmX16JTDzZUy67gI3N8EZg57KqkCQtW5vLFr8IfA14X0QciIjNwK3AhyPieeBDzbgk\naYj6vsfJzJtP8NBVK1yLJGkZ/KaoJBVhoEtSEQa6JBVhoEtSEXUv/CxgrMPrwSWtfh6hS1IRBrok\nFWGgS1IRBrokFWGgS1IRBrokFWGgS1IRBrokFWGgS1IRBrokFWGgS1IRBrokFWGgS1IRBrokFWGg\nS1IRBrokFWGgS1IRBrokFWGgS1IRBrokFWGgS1IRBrokFWGgS1IRa4ZdQFtj2x4YdgmSdErzCF2S\nijDQJakIA12SijDQJakIA12SijDQJakIA12SijDQJakIA12SilhWoEfE1RHxXETsi4htK1WUJGnp\nTjrQI+IM4A7gZ4ENwM0RsWGlCpMkLc1yjtAvB/Zl5ouZ+X/ANHD9ypQlSVqq5QT6euDfjxs/0EyT\nJA3BwO+2GBFbgC3N6FxEPNcMrwO+Pej1n8p+zR7YA+wB1O9B3NZqtsV68GNtFrCcQD8IXHjc+AXN\ntNfJzO3A9oXTI2JPZk4sY/2rnj2wB2APwB7AyvRgOadc/gm4OCIuiogzgZuAXcspRpJ08k76CD0z\n5yPiV4AvA2cAd2Xm0ytWmSRpSZZ1Dj0zvwR86SSf/obTMKche2APwB6APYAV6EFk5koUIkkaMr/6\nL0lFDDzQ+90eICJ+KCLuaR5/LCLGBl1Tl1ps/6ci4pmIeDIiHo6IVpcnrSZtbxERET8fERkR5a52\naNODiPhI81p4OiK+0HWNg9ZiX/jRiNgdEY83+8M1w6hzkCLirog4EhFPneDxiIg/bXr0ZES8f0kr\nyMyB/dD7sPQF4N3AmcA3gA0L5vkE8GfN8E3APYOsqcuflts/BfxwM/zxStvftgfNfG8DHgEeBSaG\nXfcQXgcXA48D5zXjPzLsuofQg+3Ax5vhDcD+Ydc9gD78FPB+4KkTPH4N8CAQwBXAY0tZ/qCP0Nvc\nHuB6YEczfB9wVUTEgOvqSt/tz8zdmfk/zeij9K7nr6TtLSL+ALgN+N8ui+tImx78EnBHZr4MkJlH\nOq5x0Nr0IIG3N8PnAv/RYX2dyMxHgJcWmeV64C+z51FgbUSc33b5gw70NrcH+P48mTkPHAPeOeC6\nurLU2yNspvfbuZK+PWjeVl6YmQ90WViH2rwO3gu8NyK+GhGPRsTVnVXXjTY9+F3goxFxgN7Vc7/a\nTWmnlGXdUmXgX/1XOxHxUWAC+Olh19KliHgL8Blg05BLGbY19E67TNJ7l/ZIRIxn5tGhVtWtm4G7\nM/P2iPgA8FcRcUlmfm/Yha0Wgz5Cb3N7gO/PExFr6L3V+q8B19WVVrdHiIgPAZ8GrsvM73RUW1f6\n9eBtwCXATETsp3fecFexD0bbvA4OALsy87uZ+a/Av9AL+Cra9GAzcC9AZn4NOIve/U1OJ60y40QG\nHehtbg+wC9jYDN8IfCWbTwcK6Lv9EXEp8Of0wrzaeVPo04PMPJaZ6zJzLDPH6H2OcF1m7hlOuQPR\nZj/4O3pH50TEOnqnYF7sssgBa9ODfwOuAoiIH6cX6P/ZaZXDtwv4xeZqlyuAY5l5qPWzO/hU9xp6\nRxsvAJ9upv0+vZ0Wev9pfw3sA74OvHvYn0R3vP1/DxwGnmh+dg275q57sGDeGYpd5dLydRD0Tj09\nA8wCNw275iH0YAPwVXpXwDwB/Mywax5AD74IHAK+S+9d2WbgY8DHjnsd3NH0aHap+4LfFJWkIvym\nqCQVYaBLUhEGuiQVYaBLUhEGuiQVYaBLUhEGuiQVYaBLUhH/D12zKnn6W6zlAAAAAElFTkSuQmCC\n", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "beatles_tracks['valence'].hist()" ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 22, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD8CAYAAABn919SAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAADutJREFUeJzt3X+s3fVdx/Hne1Tkx2UtA72Sgl4WmEpojOOGsBDnvWMx\nSA2QSAgL09Y0NtsiI1Ij1f0xo1lS/mATExJtxrSauQtDIo0MFRlX4mLRFnCXH26rrDAqA6ZQvYiO\nZm//OF9I6dp7vj33/Oh9n+cjafr9nvP98X73nPvq93zO9/u9kZlIkla+d4y6AElSfxjoklSEgS5J\nRRjoklSEgS5JRRjoklSEgS5JRRjoklSEgS5JRawa5s7OPPPMnJqa6mnd1157jVNPPbW/Ba0Q49r7\nuPYN9j6OvS/V9549e76TmT/UbRtDDfSpqSl2797d07rz8/PMzMz0t6AVYlx7H9e+wd7Hsfel+o6I\nZ9tswyEXSSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSpiqFeKSt1Mbb3vrekt\n6w6y8ZD5Qdq3bf1Q9iMNkkfoklSEgS5JRRjoklSEgS5JRRjoklSEgS5JRRjoklSEgS5JRRjoklSE\ngS5JRRjoklSEgS5JRbQK9Ij49Yh4MiKeiIgvRMRJEXFuRDwSEXsj4s6IOHHQxUqSjq5roEfEWuDj\nwHRmXgicAFwH3AJ8JjPPA14BNg2yUEnS0toOuawCTo6IVcApwAvAB4C7m+d3AFf3vzxJUluRmd0X\nirgR+BTwOvC3wI3ArubonIg4B7i/OYI/fN3NwGaAycnJi+bm5noqdHFxkYmJiZ7WXenGqfeF/Qfe\nmp48GV58fTj7Xbd29XB21NI4veaHG9fel+p7dnZ2T2ZOd9tG119wERGnA1cB5wKvAl8ELm9bZGZu\nB7YDTE9P58zMTNtV32Z+fp5e113pxqn3jYf9gotbF4bzO1j2XT8zlP20NU6v+eHGtfd+9N1myOWD\nwDcz8+XMfAO4B7gUWNMMwQCcDexfViWSpGVpE+jPAZdExCkREcBlwFPAQ8A1zTIbgHsHU6IkqY2u\ngZ6Zj9D58vNRYKFZZztwM3BTROwFzgDuGGCdkqQuWg1QZuYngU8e9vAzwMV9r0iS1BOvFJWkIgx0\nSSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIoZzKztJRzV1yB0m37Rl3cG33XlyEPZt\nWz/Q7Wv4PEKXpCIMdEkqwkCXpCIMdEkqwkCXpCIMdEkqwkCXpCIMdEkqwkCXpCIMdEkqwkCXpCK8\nl4vEke+nIq00HqFLUhEGuiQVYaBLUhEGuiQVYaBLUhEGuiQVYaBLUhEGuiQVYaBLUhEGuiQVYaBL\nUhEGuiQVYaBLUhEGuiQVYaBLUhEGuiQV0SrQI2JNRNwdEf8aEU9HxPsi4l0R8UBEfKP5+/RBFytJ\nOrq2R+i3AX+dmT8B/BTwNLAVeDAzzwcebOYlSSPSNdAjYjXwfuAOgMz8bma+ClwF7GgW2wFcPagi\nJUndtTlCPxd4GfjjiHgsIj4bEacCk5n5QrPMt4HJQRUpSeouMnPpBSKmgV3ApZn5SETcBvwXcENm\nrjlkuVcy8/vG0SNiM7AZYHJy8qK5ubmeCl1cXGRiYqKndVe6cep9Yf+Bt6YnT4YXXx9hMSM0jN7X\nrV092B30aJze74daqu/Z2dk9mTndbRttAv1HgF2ZOdXM/wyd8fLzgJnMfCEizgLmM/PHl9rW9PR0\n7t69u1tNRzQ/P8/MzExP665049T71Nb73presu4gty6sGmE1ozOM3vdtWz/Q7fdqnN7vh1qq74ho\nFehdh1wy89vAtyLizbC+DHgK2AlsaB7bANzbomZJ0oC0PQS4Afh8RJwIPAP8Cp3/DO6KiE3As8C1\ngylRktRGq0DPzMeBIx3uX9bfciRJvfJKUUkqwkCXpCLG8xQCLenQM01U1yhf5+P1DJuVziN0SSrC\nQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJek\nIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSpi1agLkDR+\nprbed9Tntqw7yMYlnl+OfdvWD2S7xwuP0CWpCANdkoow0CWpCANdkoow0CWpCANdkoow0CWpCANd\nkoow0CWpCANdkopoHegRcUJEPBYRf9XMnxsRj0TE3oi4MyJOHFyZkqRujuUI/Ubg6UPmbwE+k5nn\nAa8Am/pZmCTp2LQK9Ig4G1gPfLaZD+ADwN3NIjuAqwdRoCSpnbZH6L8P/CbwvWb+DODVzDzYzD8P\nrO1zbZKkYxCZufQCEb8AXJGZH4uIGeA3gI3Arma4hYg4B7g/My88wvqbgc0Ak5OTF83NzfVU6OLi\nIhMTEz2tu9INu/eF/QeGtq+lTJ4ML74+6ipGw94Hs+11a1cPZsN9sNTP+ezs7J7MnO62jTb3Q78U\nuDIirgBOAt4J3AasiYhVzVH62cD+I62cmduB7QDT09M5MzPTYpffb35+nl7XXemG3fug7kV9rLas\nO8itC+N5y357H0zv+66fGch2+6EfP+ddh1wy87cy8+zMnAKuA76cmdcDDwHXNIttAO5dViWSpGVZ\nznnoNwM3RcReOmPqd/SnJElSL47pc01mzgPzzfQzwMX9L0mS1AuvFJWkIgx0SSrCQJekIgx0SSrC\nQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJek\nIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0SSrCQJekIgx0\nSSpi1agL0NFNbb0PgC3rDrKxmZbUu6kR/Rzt27Z+KPvxCF2SijDQJakIA12SijDQJakIA12SijDQ\nJakIA12SijDQJamIroEeEedExEMR8VREPBkRNzaPvysiHoiIbzR/nz74ciVJR9PmStGDwJbMfDQi\nTgP2RMQDwEbgwczcFhFbga3AzYMrdTRGdWWZJB2rrkfomflCZj7aTP838DSwFrgK2NEstgO4elBF\nSpK6i8xsv3DEFPAwcCHwXGauaR4P4JU35w9bZzOwGWBycvKiubm5ngpdXFxkYmKip3WXY2H/gaHv\n83CTJ8OLr4+6iuEb177B3qv1vm7t6q7LLJVxs7OzezJzuts2Wgd6REwAfw98KjPviYhXDw3wiHgl\nM5ccR5+ens7du3e32t/h5ufnmZmZ6Wnd5Tgehly2rDvIrQvjdx+1ce0b7L1a721uzrVUxkVEq0Bv\ndZZLRPwA8BfA5zPznubhFyPirOb5s4CX2mxLkjQYbc5yCeAO4OnM/PQhT+0ENjTTG4B7+1+eJKmt\nNp9rLgV+CViIiMebx34b2AbcFRGbgGeBawdToiSpja6Bnpn/AMRRnr6sv+VIknrllaKSVISBLklF\nGOiSVISBLklFGOiSVISBLklFGOiSVISBLklFGOiSVISBLklFGOiSVISBLklFGOiSVISBLklFGOiS\nVISBLklFGOiSVISBLklFGOiSVISBLklFGOiSVISBLklFGOiSVISBLklFGOiSVISBLklFGOiSVISB\nLklFGOiSVISBLklFrBp1AW0t7D/Axq33jboMSTpueYQuSUUY6JJUhIEuSUUY6JJUhIEuSUUY6JJU\nhIEuSUUsK9Aj4vKI+FpE7I2Irf0qSpJ07HoO9Ig4Abgd+HngAuBDEXFBvwqTJB2b5RyhXwzszcxn\nMvO7wBxwVX/KkiQdq+UE+lrgW4fMP988JkkagYHfyyUiNgObm9nFiPhaj5s6E/hOf6paWT4+pr2P\na99g7xTrPW5ptdhSff9Ymw0sJ9D3A+ccMn9289jbZOZ2YPsy9gNAROzOzOnlbmclGtfex7VvsPdx\n7L0ffS9nyOWfgfMj4tyIOBG4Dti5nGIkSb3r+Qg9Mw9GxK8BfwOcAHwuM5/sW2WSpGOyrDH0zPwS\n8KU+1dLNsodtVrBx7X1c+wZ7H0fLH5rOzH4UIkkaMS/9l6QijrtA73Y7gYj4wYi4s3n+kYiYGn6V\n/dei75si4qmI+GpEPBgRrU5jWgna3kIiIn4xIjIiypwB0ab3iLi2ee2fjIg/H3aNg9LiPf+jEfFQ\nRDzWvO+vGEWd/RYRn4uIlyLiiaM8HxHxB82/y1cj4r2tN56Zx80fOl+u/hvwbuBE4F+ACw5b5mPA\nHzbT1wF3jrruIfU9C5zSTH+0Qt9te2+WOw14GNgFTI+67iG+7ucDjwGnN/M/POq6h9j7duCjzfQF\nwL5R192n3t8PvBd44ijPXwHcDwRwCfBI220fb0fobW4ncBWwo5m+G7gsImKINQ5C174z86HM/J9m\ndhed8/4raHsLid8DbgH+d5jFDVib3n8VuD0zXwHIzJeGXOOgtOk9gXc206uBfx9ifQOTmQ8D/7nE\nIlcBf5odu4A1EXFWm20fb4He5nYCby2TmQeBA8AZQ6lucI71Ngqb6PwPXkHX3puPnOdk5n3DLGwI\n2rzu7wHeExFfiYhdEXH50KobrDa9/w7w4Yh4ns7ZdDcMp7SR6/m2KgO/9F/9FREfBqaBnx11LcMQ\nEe8APg1sHHEpo7KKzrDLDJ1PZQ9HxLrMfHWkVQ3Hh4A/ycxbI+J9wJ9FxIWZ+b1RF3a8Ot6O0Nvc\nTuCtZSJiFZ2PYv8xlOoGp9VtFCLig8AngCsz8/+GVNugdev9NOBCYD4i9tEZU9xZ5IvRNq/788DO\nzHwjM78JfJ1OwK90bXrfBNwFkJn/CJxE534n1bXKgyM53gK9ze0EdgIbmulrgC9n803CCta174j4\naeCP6IR5lXFU6NJ7Zh7IzDMzcyozp+h8f3BlZu4eTbl91eb9/pd0js6JiDPpDME8M8wiB6RN788B\nlwFExE/SCfSXh1rlaOwEfrk52+US4EBmvtBqzVF/43uUb3i/Tucb8E80j/0unR9i6LyoXwT2Av8E\nvHvUNQ+p778DXgQeb/7sHHXNw+r9sGXnKXKWS8vXPegMOT0FLADXjbrmIfZ+AfAVOmfAPA783Khr\n7lPfXwBeAN6g8wlsE/AR4COHvOa3N/8uC8fyfvdKUUkq4ngbcpEk9chAl6QiDHRJKsJAl6QiDHRJ\nKsJAl6QiDHRJKsJAl6Qi/h9fny9m92IivAAAAABJRU5ErkJggg==\n", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "stones_tracks['valence'].hist()" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 23, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD8CAYAAABn919SAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAEWtJREFUeJzt3X+M5Hddx/Hnmx7I2S3XQmFyOSoLWsCzC8VbEUNidvmV\ns420BELaAOmF4iJSJHH/8AIaq0g81KMxkURP2/Q0wlIrhNoWSK23NCUU3IOj22sDtGXVnvXOQnuy\ntaKLb//Y78Fy3Ha+MzvfmW8/fT6SyX2/3/nMfl/33bnXfec73/lOZCaSpCe+p4w6gCRpMCx0SSqE\nhS5JhbDQJakQFrokFcJCl6RCWOiSVAgLXZIKYaFLUiE2DXNlZ599do6PjwPw6KOPcvrppw9z9V21\nMRO0M5eZ6mtjrjZmgnbmakOmgwcPPpSZz+46MDOHdtuxY0eecODAgWybNmbKbGcuM9XXxlxtzJTZ\nzlxtyAQsZI2O9ZCLJBXCQpekQljoklQIC12SCmGhS1IhLHRJKoSFLkmFsNAlqRAWuiQVYqgf/d+I\n8d03Nb6O2YkVdp1iPUt7Lmx83ZK0Ue6hS1IhLHRJKoSFLkmFsNAlqRAWuiQVwkKXpEJY6JJUCAtd\nkgrRtdAj4ukR8aWI+GpEHI6I362WPz8ivhgR90bExyPiac3HlSStp84e+neBV2XmS4HzgZ0R8Qrg\nQ8BVmflTwMPA5c3FlCR107XQq+8oXa5mn1rdEngVcH21fD9wcSMJJUm11DqGHhGnRcQh4BhwC3Af\n8EhmrlRDHgC2NRNRklRHZGb9wRFnAp8Efhu4tjrcQkScA3w6M887xWNmgBmATqezY25uDoDl5WXG\nxsZqr3vxyPHaY/vV2QxHH/vR5RPbtjS+7sfT67YaBjPV18ZcbcwE7czVhkzT09MHM3Oy27ierraY\nmY9ExAHgF4AzI2JTtZf+XODIOo/ZB+wDmJyczKmpKQDm5+c5MV3Hqa6COGizEyvsXfzRTbL0lqnG\n1/14et1Ww2Cm+tqYq42ZoJ252phpPXXOcnl2tWdORGwGXgvcAxwA3lQNuwz4VFMhJUnd1dlD3wrs\nj4jTWP0P4LrMvDEi7gbmIuL3ga8AVzeYU5LURddCz8w7gZedYvn9wMubCCVJ6p2fFJWkQljoklQI\nC12SCmGhS1IhLHRJKoSFLkmFsNAlqRAWuiQVwkKXpEJY6JJUCAtdkgphoUtSISx0SSqEhS5JhbDQ\nJakQFrokFcJCl6RCWOiSVAgLXZIKYaFLUiEsdEkqxKZRB3giGN9900jWu7TnwpGsV9ITk3voklSI\nroUeEedExIGIuDsiDkfEe6vlV0bEkYg4VN0uaD6uJGk9dQ65rACzmfnliDgDOBgRt1T3XZWZf9xc\nPElSXV0LPTMfBB6spr8TEfcA25oOJknqTU/H0CNiHHgZ8MVq0RURcWdEXBMRZw04mySpB5GZ9QZG\njAGfAz6YmZ+IiA7wEJDAB4Ctmfn2UzxuBpgB6HQ6O+bm5gBYXl5mbGysdtDFI8drj+1XZzMcfazx\n1dQ2sW0L0Pu2GgYz1dfGXG3MBO3M1YZM09PTBzNzstu4WoUeEU8FbgQ+m5kfPsX948CNmXne4/2c\nycnJXFhYAGB+fp6pqamu6z5hGKcOzk6ssHexPWdynjhtsddtNQxmqq+NudqYCdqZqw2ZIqJWodc5\nyyWAq4F71pZ5RGxdM+wNwF39BJUkDUad3dFXAm8DFiPiULXsfcClEXE+q4dcloB3NpJQklRLnbNc\nbgfiFHfdPPg4kqR++UlRSSqEhS5JhbDQJakQFrokFcJCl6RCWOiSVAgLXZIKYaFLUiEsdEkqhIUu\nSYWw0CWpEBa6JBXCQpekQljoklQIC12SCmGhS1IhLHRJKoSFLkmFsNAlqRAWuiQVwkKXpEJsGnUA\nrW98900AzE6ssKuaboumMi3tuXDgP1N6snAPXZIKYaFLUiG6FnpEnBMRByLi7og4HBHvrZY/MyJu\niYhvVH+e1XxcSdJ66uyhrwCzmbkdeAXw7ojYDuwGbs3Mc4Fbq3lJ0oh0LfTMfDAzv1xNfwe4B9gG\nXATsr4btBy5uKqQkqbvIzPqDI8aB24DzgH/JzDOr5QE8fGL+pMfMADMAnU5nx9zcHADLy8uMjY3V\nXvfikeO1x/arsxmOPtb4anrWxlxNZZrYtqXvx/b6nBqWNuZqYyZoZ642ZJqenj6YmZPdxtUu9IgY\nAz4HfDAzPxERj6wt8Ih4ODMf9zj65ORkLiwsADA/P8/U1FStdcMPTuFr0uzECnsX23cmZxtzNZVp\nI6ct9vqcGpY25mpjJmhnrjZkiohahV7rLJeIeCrwd8DfZOYnqsVHI2Jrdf9W4Fi/YSVJG1fnLJcA\nrgbuycwPr7nrBuCyavoy4FODjydJqqvOa+ZXAm8DFiPiULXsfcAe4LqIuBz4Z+DNzUSUJNXRtdAz\n83Yg1rn71YONI0nql58UlaRCWOiSVAgLXZIKYaFLUiEsdEkqhIUuSYWw0CWpEBa6JBXCQpekQljo\nklQIC12SCmGhS1IhLHRJKoSFLkmFsNAlqRAWuiQVwkKXpEJY6JJUCAtdkgphoUtSISx0SSqEhS5J\nhbDQJakQXQs9Iq6JiGMRcdeaZVdGxJGIOFTdLmg2piSpmzp76NcCO0+x/KrMPL+63TzYWJKkXnUt\n9My8Dfj2ELJIkjZgI8fQr4iIO6tDMmcNLJEkqS+Rmd0HRYwDN2bmedV8B3gISOADwNbMfPs6j50B\nZgA6nc6Oubk5AJaXlxkbG6sddPHI8dpj+9XZDEcfa3w1PWtjrqYyTWzb0vdje31ODUsbc7UxE7Qz\nVxsyTU9PH8zMyW7j+ir0uvedbHJyMhcWFgCYn59namqq67pPGN99U+2x/ZqdWGHv4qbG19OrNuZq\nKtPSngv7fmyvz6lhaWOuNmaCduZqQ6aIqFXofR1yiYita2bfANy13lhJ0nB03cWKiI8BU8DZEfEA\n8DvAVEScz+ohlyXgnQ1mlCTV0LXQM/PSUyy+uoEskqQN8JOiklQIC12SCmGhS1IhLHRJKoSFLkmF\nsNAlqRAWuiQVwkKXpEJY6JJUCAtdkgphoUtSISx0SSqEhS5JhbDQJakQ7foaHD3pbeSbqWYnVtjV\n5+M38k1JT1TD+Baw9TwZt/cwuIcuSYWw0CWpEBa6JBXCQpekQljoklQIC12SCmGhS1IhLHRJKkTX\nQo+IayLiWETctWbZMyPiloj4RvXnWc3GlCR1U2cP/Vpg50nLdgO3Zua5wK3VvCRphLoWembeBnz7\npMUXAfur6f3AxQPOJUnqUb/H0DuZ+WA1/e9AZ0B5JEl9iszsPihiHLgxM8+r5h/JzDPX3P9wZp7y\nOHpEzAAzAJ1OZ8fc3BwAy8vLjI2N1Q66eOR47bH96myGo481vpqetTFXaZkmtm0ZbJg1en2uD8Py\n8jLfPP69ka1/ve3d1m016kzT09MHM3Oy27h+r7Z4NCK2ZuaDEbEVOLbewMzcB+wDmJyczKmpKQDm\n5+c5MV1Hv1fR68XsxAp7F9t3Aco25iot09JbpgYbZo1en+vDMD8/z97bHx3Z+tfb3m3dVm3LtJ5+\nD7ncAFxWTV8GfGowcSRJ/apz2uLHgC8AL4qIByLicmAP8NqI+AbwmmpekjRCXV+fZual69z16gFn\nkSRtgJ8UlaRCWOiSVAgLXZIKYaFLUiEsdEkqhIUuSYWw0CWpEBa6JBXCQpekQljoklQIC12SCmGh\nS1IhLHRJKoSFLkmFsNAlqRDt+g4x6UlofAhfr3iy2YkVRvnPf72/8+zESqNfN7m058LGfnYbuIcu\nSYWw0CWpEBa6JBXCQpekQljoklQIC12SCmGhS1IhLHRJKsSGPlkQEUvAd4DvASuZOTmIUJKk3g3i\no2LTmfnQAH6OJGkDPOQiSYWIzOz/wRHfBB4GEvjzzNx3ijEzwAxAp9PZMTc3B8Dy8jJjY2O117V4\n5HjfOevqbIajjzW+mp61MZeZ6mtjrjZmguZzTWzb0vNjeu2qJkxPTx+sc0h7o4W+LTOPRMRzgFuA\n92TmbeuNn5yczIWFBQDm5+eZmpqqva5hXMBodmKFvYvtu15ZG3OZqb425mpjJmg+Vz8X5+q1q5oQ\nEbUKfUOHXDLzSPXnMeCTwMs38vMkSf3ru9Aj4vSIOOPENPA64K5BBZMk9WYjr206wCcj4sTP+Whm\nfmYgqSRJPeu70DPzfuClA8wiSdoAT1uUpEJY6JJUCAtdkgphoUtSISx0SSqEhS5JhbDQJakQ7buY\ngyQ1pJ9rQs1OrLBrANeS6uc6Mr1yD12SCmGhS1IhLHRJKoSFLkmFsNAlqRAWuiQVwkKXpEJY6JJU\nCAtdkgphoUtSISx0SSqEhS5JhbDQJakQFrokFcJCl6RCbKjQI2JnRHwtIu6NiN2DCiVJ6l3fhR4R\npwEfAX4J2A5cGhHbBxVMktSbjeyhvxy4NzPvz8z/AeaAiwYTS5LUq40U+jbgX9fMP1AtkySNQGRm\nfw+MeBOwMzPfUc2/Dfj5zLzipHEzwEw1+yLga9X02cBDfa28OW3MBO3MZab62pirjZmgnbnakOl5\nmfnsboM28iXRR4Bz1sw/t1r2QzJzH7Dv5OURsZCZkxtY/8C1MRO0M5eZ6mtjrjZmgnbmamOm9Wzk\nkMs/AedGxPMj4mnAJcANg4klSepV33vombkSEVcAnwVOA67JzMMDSyZJ6slGDrmQmTcDN/f58B85\nDNMCbcwE7cxlpvramKuNmaCdudqY6ZT6flNUktQufvRfkgrReKF3uzxARPxYRHy8uv+LETHegky/\nGBFfjoiV6vTMxtXI9BsRcXdE3BkRt0bE81qS61cjYjEiDkXE7cP4tHDdS05ExBsjIiNiKGco1NhW\nuyLiP6ptdSgi3jHqTNWYN1fPrcMR8dFRZ4qIq9Zso69HxCNNZ6qZ6yci4kBEfKX6d3jBMHL1JDMb\nu7H6Zul9wAuApwFfBbafNObXgD+rpi8BPt6CTOPAS4C/At7UZJ4eMk0DP15Nv6vp7dRDrmesmX49\n8JlRZ6rGnQHcBtwBTLZkW+0C/rTpLD1mOhf4CnBWNf+cUWc6afx7WD3hog3bah/wrmp6O7A0rN9l\n3VvTe+h1Lg9wEbC/mr4eeHVExCgzZeZSZt4J/F+DOXrNdCAz/6uavYPV8/7bkOs/18yeDjT9pkzd\nS058APgQ8N8N5+k11zDVyfQrwEcy82GAzDzWgkxrXQp8rOFMdXMl8Ixqegvwb0PI1ZOmC73O5QG+\nPyYzV4DjwLNGnGnYes10OfDpRhOtqpUrIt4dEfcBfwj8+qgzRcTPAudk5k0NZ+kpV+WN1cv16yPi\nnFPcP+xMLwReGBGfj4g7ImJnCzIBUB1WfD7wjw1nqpvrSuCtEfEAq2f3vWcIuXrim6JPMBHxVmAS\n+KNRZzkhMz+SmT8J/CbwW6PMEhFPAT4MzI4yxzr+HhjPzJcAt/CDV6ajtInVwy5TrO4N/0VEnDnS\nRD9wCXB9Zn5v1EEqlwLXZuZzgQuAv66eb63RdJg6lwf4/piI2MTqS5lvjTjTsNXKFBGvAd4PvD4z\nv9uWXGvMARc3mqh7pjOA84D5iFgCXgHcMIQ3Rrtuq8z81prf218CO0adidU90Rsy838z85vA11kt\n+FFmOuEShnO4Berluhy4DiAzvwA8ndXrvLRHw280bALuZ/Vl04k3Gn7mpDHv5offFL1u1JnWjL2W\n4bwpWmc7vYzVN23ObTpPj7nOXTP9y8DCqDOdNH6e4bwpWmdbbV0z/QbgjhZk2gnsr6bPZvWww7NG\n/fsDXgwsUX1WpiW/v08Du6rpn2b1GPpQ8tX+ewxhQ13A6v/69wHvr5b9Hqt7mbD6v9zfAvcCXwJe\n0IJMP8fqnsujrL5aONyCTP8AHAUOVbcbhvIE6Z7rT4DDVaYDj1euw8p00tihFHrNbfUH1bb6arWt\nXtyCTMHqIaq7gUXgklFnquavBPYM4/fWw7baDny++v0dAl43zHx1bn5SVJIK0aoD+pKk/lnoklQI\nC12SCmGhS1IhLHRJKoSFLkmFsNAlqRAWuiQV4v8Bxcg1f/kQdZwAAAAASUVORK5CYII=\n", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "radiohead_tracks['valence'].hist()" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 24, "metadata": {}, "output_type": "execute_result" }, { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXQAAAD8CAYAAABn919SAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAEEZJREFUeJzt3X2MZXddx/H3l10rdGb7AKXjpu2yJTxIU5dIJwiZZJ2h\nxNSq2yY2pATYYlZ3gBSrlUiVPzAaE0gUxEDiTii6msq0VGIXBBVLJ6sbd7XbB0pbgbXA0Lq0Rfo0\nC1oKX/+4x2Z3urv33Dv3njPzu+9Xspl77j0P3+/cmc/+5jzdyEwkSWvf89ouQJI0GAa6JBXCQJek\nQhjoklQIA12SCmGgS1IhDHRJKoSBLkmFMNAlqRDrm9zYWWedlZs3b+5r2SNHjjA2NjbYgtaAUe0b\nRrf3Ue0bRrf3bn0fPHjwO5n54m7raTTQN2/ezO23397XsgsLC0xPTw+2oDVgVPuG0e19VPuG0e29\nW98R8c0663GXiyQVwkCXpEIY6JJUCANdkgphoEtSIQx0SSqEgS5JhTDQJakQBrokFaLRK0Wlk5qd\nPXZ6auq5zw3Lrl3NbEcaIkfoklQIA12SCmGgS1IhDHRJKoSBLkmFMNAlqRAGuiQVwkCXpEIY6JJU\nCANdkgphoEtSIQx0SSpErUCPiN+MiHsj4ssR8cmIeH5EnB8RByLiUETcGBGnDLtYSdKJdQ30iDgH\n+HVgMjMvBNYBVwIfBD6cmS8DHgN2DLNQSdLJ1d3lsh54QUSsB04FDgNvAG6uXt8NXD748iRJdUVm\ndp8p4hrgD4HvA/8IXAPsr0bnRMR5wOerEfzyZXcCOwEmJiYump+f76vQpaUlxsfH+1p2LRupvhcX\nj5lcGhtj/MiRZra9aVMz26lhpN7zZUa19259z8zMHMzMyW7r6foBFxFxJnAZcD7wOPAp4JK6hWbm\nHDAHMDk5mdPT03UXPcbCwgL9LruWjVTfyz7MYmFqiul9+5rZ9vbtzWynhpF6z5cZ1d4H1XedXS5v\nBL6emY9m5g+ATwNTwBnVLhiAc4GHVlyNJKlvdQJ9EXhdRJwaEQFcDNwH3AZcUc1zFXDLcEqUJNXR\nNdAz8wCdg593APdUy8wB7wWujYhDwIuA64dYpySpi1ofEp2Z7wfev+zpB4DXDrwiSVJfvFJUkgph\noEtSIQx0SSqEgS5JhTDQJakQBrokFcJAl6RCGOiSVAgDXZIKUetKUUlDsuwOkwBMTR3/+UHatWu4\n61crHKFLUiEMdEkqhIEuSYUw0CWpEAa6JBXCQJekQhjoklQIA12SCmGgS1IhDHRJKoSBLkmF8F4u\nEgz/3ilSAxyhS1IhDHRJKoSBLkmFMNAlqRAGuiQVwkCXpEIY6JJUCANdkgphoEtSIQx0SSqEgS5J\nhTDQJakQBrokFcJAl6RCGOiSVAgDXZIKUSvQI+KMiLg5Iv4jIu6PiNdHxAsj4gsR8bXq65nDLlaS\ndGJ1R+gfAf4+M38SeDVwP3AdcGtmvhy4tZqWJLWka6BHxOnAVuB6gMx8OjMfBy4Ddlez7QYuH1aR\nkqTu6ozQzwceBf48Iu6MiI9HxBgwkZmHq3m+DUwMq0hJUneRmSefIWIS2A9MZeaBiPgI8CTw7sw8\n46j5HsvM5+xHj4idwE6AiYmJi+bn5/sqdGlpifHx8b6WXctGqu/FxWMml8bGGD9ypKVi2tNI35s2\nDXf9fRqpn/ejdOt7ZmbmYGZOdlvP+hrbehB4MDMPVNM309lf/nBEbMzMwxGxEXjkeAtn5hwwBzA5\nOZnT09M1NvlcCwsL9LvsWjZSfc/OHjO5MDXF9L59LRXTnkb63r59uOvv00j9vB9lUH133eWSmd8G\nvhURr6yeuhi4D9gDXFU9dxVwy4qrkST1rc4IHeDdwA0RcQrwAPArdP4zuCkidgDfBN40nBIlSXXU\nCvTMvAs43v6biwdbjiSpX14pKkmFMNAlqRB196FrlCw720QFavM93rWrvW0XzhG6JBXCQJekQhjo\nklQIA12SCmGgS1IhDHRJKoSBLkmFMNAlqRAGuiQVwkCXpEIY6JJUCANdkgphoEtSIQx0SSqEgS5J\nhTDQJakQBrokFcJAl6RCGOiSVAgDXZIKYaBLUiEMdEkqhIEuSYUw0CWpEAa6JBVifdsFSBoxs7Mn\nfm1q6uSvr8SuXcNZ7yriCF2SCmGgS1IhDHRJKoSBLkmF8KCotMosPQV79za/3a1bm9+mBssRuiQV\nwhG6pJEyrLMiT6apMyYdoUtSIQx0SSqEu1wktWb5wd+lLcM7IHxDC7tamlZ7hB4R6yLizoj4bDV9\nfkQciIhDEXFjRJwyvDIlSd30ssvlGuD+o6Y/CHw4M18GPAbsGGRhkqTe1Ar0iDgX+AXg49V0AG8A\nbq5m2Q1cPowCJUn11B2h/wnw28CPqukXAY9n5jPV9IPAOQOuTZLUg8jMk88Q8YvApZn5roiYBt4D\nvB3YX+1uISLOAz6fmRceZ/mdwE6AiYmJi+bn5/sqdGlpifHx8b6WXcta6XtxsdntncDS2BjjR460\nXUbjnnjBGOseab7v8Q2Nb5Klp46d/uHZw+v9uxs2DWW9dWzqsuluv+czMzMHM3Oy23bqnOUyBWyL\niEuB5wOnAR8BzoiI9dUo/VzgoeMtnJlzwBzA5ORkTk9P19jkcy0sLNDvsmtZK323ceXFcSxMTTG9\nb1/bZTTus1umOO2jzffdxqX/y89oefLq4fX+ma3bh7LeOrZ32fSgfs+77nLJzN/JzHMzczNwJfDF\nzHwLcBtwRTXbVcAtK65GktS3lVxY9F7g2og4RGef+vWDKUmS1I+eLizKzAVgoXr8APDawZckSeqH\nl/5LUiEMdEkqhIEuSYUw0CWpEN5tURLQzsfeabAcoUtSIQx0SSqEgS5JhTDQJakQBrokFcJAl6RC\nGOiSVAgDXZIKYaBLUiGKu1J09jPNfNrOrl/a1ch2JKkuR+iSVAgDXZIKYaBLUiEMdEkqhIEuSYUw\n0CWpEAa6JBXCQJekQhjoklQIA12SCmGgS1IhDHRJKoSBLkmFKO5ui01p4q6O3tFRUi8coUtSIRyh\nr2azszA11fkqaUXesred36Mbtjb3l7YjdEkqhIEuSYVwl4v6snfv8LextOXY7WzdOvxtLtdEn8+x\npYVtqgiO0CWpEAa6JBXCQJekQhjoklQIA12SCtE10CPivIi4LSLui4h7I+Ka6vkXRsQXIuJr1dcz\nh1+uJOlE6py2+AzwW5l5R0RsAA5GxBeAtwO3ZuYHIuI64DrgvcMrtSX/3MZ5ax2zp8PUui3Mnt5e\nDSdyeLK3+d9zewvnHEojpusIPTMPZ+Yd1eOngPuBc4DLgN3VbLuBy4dVpCSpu8jM+jNHbAb2AhcC\ni5l5RvV8AI/9//SyZXYCOwEmJiYump+f76vQpaUlxsfHu863+MRiX+s/8YafGuz6ejT2grM58v1H\nWq3heJ5+urf5f+J7G3rexg/PHmPdI0eenR7vfRUr1sbbv7zvUVJi79/dsIlNm04+T7d8m5mZOZiZ\nXf8urn2laESMA38D/EZmPtnJ8I7MzIg47v8MmTkHzAFMTk7m9PR03U0eY2FhgTrLDvy2tne3u7tj\n6tVXs+/uj7Zaw/EcPtzb/P3scnny6ilO++i+Z6dH5UrR5X2PkhJ7/8zW7WzffvJ56uZbN7XOcomI\nH6MT5jdk5qerpx+OiI3V6xuB1TeMlKQR0nWEXu1OuR64PzM/dNRLe4CrgA9UX28ZSoVrSK+j1jqe\nftXJ17tx4+C3KWltqrPLZQp4G3BPRNxVPfe7dIL8pojYAXwTeNNwSpQk1dE10DPzX4A4wcsXD7Yc\n6cRaufOhtIZ4pagkFcJAl6RCGOiSVAgDXZIKYaBLUiEMdEkqhIEuSYUw0CWpEAa6JBXCQJekQhjo\nklQIA12SCmGgS1Ihan9ikbQSfzTZ+60St526hbkelivpg6j7+X71o6TvmRyhS1IxDHRJKoSBLkmF\nMNAlqRAGuiQVwkCXpEIY6JJUCANdkgphoEtSIbxSdI07fLjtCiStFo7QJakQjtClHg37PivbTt0y\n1PUfrYl7xni/mOY4QpekQhjoklQIA12SCmGgS1Ih1s5B0cVFmJ3tPt/pzXwwgFafpj4UQlqtHKFL\nUiEMdEkqhIEuSYUw0CWpEGvnoGiPvMeJtDr0crB626lbmOvj4LZXo3Y4QpekQhjoklSIFQV6RFwS\nEV+JiEMRcd2gipIk9a7vQI+IdcDHgJ8HLgDeHBEXDKowSVJvVjJCfy1wKDMfyMyngXngssGUJUnq\n1UoC/RzgW0dNP1g9J0lqQWRmfwtGXAFckpm/Wk2/DfiZzLx62Xw7gZ3V5CuBr/RZ61nAd/pcdi0b\n1b5hdHsf1b5hdHvv1vdLMvPF3VaykvPQHwLOO2r63Oq5Y2TmHDC3gu0AEBG3Z+bkStez1oxq3zC6\nvY9q3zC6vQ+q75Xscvl34OURcX5EnAJcCexZaUGSpP70PULPzGci4mrgH4B1wCcy896BVSZJ6smK\nLv3PzM8BnxtQLd2seLfNGjWqfcPo9j6qfcPo9j6Qvvs+KCpJWl289F+SCrHqAr3b7QQi4scj4sbq\n9QMRsbn5KgevRt/XRsR9EfGliLg1Il7SRp3DUPcWEhHxyxGREVHEWRB1+o6IN1Xv+70R8ddN1zgs\nNX7eN0XEbRFxZ/Uzf2kbdQ5SRHwiIh6JiC+f4PWIiD+tvidfiojX9LyRzFw1/+gcXP1P4KXAKcDd\nwAXL5nkX8GfV4yuBG9uuu6G+Z4BTq8fvLKHvur1X820A9gL7gcm2627oPX85cCdwZjV9dtt1N9j7\nHPDO6vEFwDfarnsAfW8FXgN8+QSvXwp8HgjgdcCBXrex2kbodW4ncBmwu3p8M3BxRESDNQ5D174z\n87bM/F41uZ/Oef8lqHsLiT8APgj8T5PFDVGdvn8N+FhmPgaQmY80XOOw1Ok9gdOqx6cD/9VgfUOR\nmXuB755klsuAv8yO/cAZEbGxl22stkCvczuBZ+fJzGeAJ4AXNVLd8PR6G4UddP4nL0HX3qs/Pc/L\nzL9rsrAhq/OevwJ4RUTsi4j9EXFJY9UNV53efw94a0Q8SOdMunc3U1qrVnw7lWI/sahUEfFWYBL4\n2bZraUJEPA/4EPD2lktpw3o6u12m6fxFtjcifiozH2+1qma8GfiLzPzjiHg98FcRcWFm/qjtwlaz\n1TZCr3M7gWfniYj1dP4c++9GqhueWrdRiIg3Au8DtmXm/zZU27B1630DcCGwEBHfoLNvcU8BB0br\nvOcPAnsy8weZ+XXgq3QCfq2r0/sO4CaAzPxX4Pl07ndSslo5cDKrLdDr3E5gD3BV9fgK4ItZHVFY\nw7r2HRE/DeyiE+al7EuFLr1n5hOZeVZmbs7MzXSOH2zLzNvbKXdg6vys/y2d0TkRcRadXTAPNFnk\nkNTpfRG4GCAiXkUn0B9ttMrm7QG2V2e7vA54IjN7+3Tkto/8nuBI71fpHAV/X/Xc79P5JYbOG/sp\n4BDwb8BL2665ob7/CXgYuKv6t6ftmpvqfdm8CxRwlkvN9zzo7G66D7gHuLLtmhvs/QJgH50zYO4C\nfq7tmgfQ8yeBw8AP6Pz1tQN4B/COo97vj1Xfk3v6+Tn3SlFJKsRq2+UiSeqTgS5JhTDQJakQBrok\nFcJAl6RCGOiSVAgDXZIKYaBLUiH+D+B9dHQ5ISmDAAAAAElFTkSuQmCC\n", "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "beatles_tracks['valence'].hist(alpha=0.6, color='blue')\n", "stones_tracks['valence'].hist(alpha=0.6, color='red')\n", "radiohead_tracks['valence'].hist(alpha=0.6, color='green')" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "275" ] }, "execution_count": 31, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tracks.find({'artist_id': stones_id, 'valence': {'$exists': True}}).count()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Lyrics search\n", "Now to find the lyrics for each track. \n", "\n", "We start by searching for the Genius ID for the artists.\n", "\n", "Note that Genius doesn't like Python-generated requests to its API, so we set the header to pretend to be a command-line `curl` request.\n", "\n", "* [Top](#top)" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [], "source": [ "def genius_artist_search(artist_name, per_page=20):\n", " query = urllib.parse.urlencode({'q': artist_name,\n", " 'per_page': str(per_page)\n", " })\n", " headers = {'Accept': 'application/json',\n", " 'Authorization': 'Bearer ' + config['genius']['token'],\n", " 'User-Agent': 'curl/7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b) (ipv6 enabled)'}\n", " request = urllib.request.Request('https://api.genius.com/search?{}'.format(query), \n", " headers=headers,\n", " method='GET')\n", " with urllib.request.urlopen(request) as f:\n", " response = json.loads(f.read().decode('utf-8'))\n", " return response" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "586" ] }, "execution_count": 26, "metadata": {}, "output_type": "execute_result" } ], "source": [ "response = genius_artist_search('the beatles')\n", "beatles_genius_id = [hit['result']['primary_artist']['id'] for hit in response['response']['hits']][0]\n", "beatles_genius_id" ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "774" ] }, "execution_count": 27, "metadata": {}, "output_type": "execute_result" } ], "source": [ "response = genius_artist_search('rolling stones')\n", "stones_genius_id = [hit['result']['primary_artist']['id'] for hit in response['response']['hits']][0]\n", "stones_genius_id" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "604" ] }, "execution_count": 28, "metadata": {}, "output_type": "execute_result" } ], "source": [ "response = genius_artist_search('radiohead')\n", "radiohead_genius_id = [hit['result']['primary_artist']['id'] for hit in response['response']['hits']][0]\n", "radiohead_genius_id" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "We can now get the song information for each track for each artist. Note that Genius keeps lots of things to do with artists, including sleeve notes and the like. We're just after the lyrics." ] }, { "cell_type": "code", "execution_count": 42, "metadata": {}, "outputs": [], "source": [ "def genius_song_search(artist_id):\n", " songs = pd.DataFrame()\n", " page = 1\n", " while page:\n", " query = urllib.parse.urlencode({'page': page, 'per_page': 20})\n", " headers = {'Accept': 'application/json',\n", " 'Authorization': 'Bearer ' + config['genius']['token'],\n", " 'User-Agent': 'curl/7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b) (ipv6 enabled)'}\n", " request = urllib.request.Request('https://api.genius.com/artists/{id}/songs?{query}'.format(id=artist_id,\n", " query=query), \n", " headers=headers,\n", " method='GET')\n", " with urllib.request.urlopen(request) as f:\n", " response = json.loads(f.read().decode('utf-8'))\n", " page = response['response']['next_page']\n", " for song in response['response']['songs']:\n", " if song['path'].endswith('lyrics'):\n", " song['_id'] = song['id']\n", " genius_tracks.replace_one({'_id': song['id']}, song, upsert=True)" ] }, { "cell_type": "code", "execution_count": 43, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1071" ] }, "execution_count": 43, "metadata": {}, "output_type": "execute_result" } ], "source": [ "genius_song_search(beatles_genius_id)\n", "genius_tracks.find().count()" ] }, { "cell_type": "code", "execution_count": 44, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1071" ] }, "execution_count": 44, "metadata": {}, "output_type": "execute_result" } ], "source": [ "genius_song_search(stones_genius_id)\n", "genius_tracks.find().count()" ] }, { "cell_type": "code", "execution_count": 44, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "1071" ] }, "execution_count": 44, "metadata": {}, "output_type": "execute_result" } ], "source": [ "genius_song_search(radiohead_genius_id)\n", "genius_tracks.find().count()" ] }, { "cell_type": "code", "execution_count": 45, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'_id': 1497768,\n", " 'annotation_count': 1,\n", " 'api_path': '/songs/1497768',\n", " 'full_title': 'All Together on the Wireless Machine by\\xa0The\\xa0Beatles',\n", " 'header_image_thumbnail_url': 'https://images.genius.com/ad1f59e8a03be4eb521e88015d15d6e8.200x200x1.jpg',\n", " 'header_image_url': 'https://images.genius.com/ad1f59e8a03be4eb521e88015d15d6e8.200x200x1.jpg',\n", " 'id': 1497768,\n", " 'lyrics_owner_id': 1549345,\n", " 'path': '/The-beatles-all-together-on-the-wireless-machine-lyrics',\n", " 'primary_artist': {'api_path': '/artists/586',\n", " 'header_image_url': 'https://images.genius.com/b82dbb78926a812abfa10886ac84c1a8.1000x523x1.jpg',\n", " 'id': 586,\n", " 'image_url': 'https://images.genius.com/ad1f59e8a03be4eb521e88015d15d6e8.200x200x1.jpg',\n", " 'is_meme_verified': False,\n", " 'is_verified': False,\n", " 'name': 'The Beatles',\n", " 'url': 'https://genius.com/artists/The-beatles'},\n", " 'pyongs_count': None,\n", " 'song_art_image_thumbnail_url': 'https://images.genius.com/ad1f59e8a03be4eb521e88015d15d6e8.200x200x1.jpg',\n", " 'stats': {'hot': False, 'unreviewed_annotations': 0},\n", " 'title': 'All Together on the Wireless Machine',\n", " 'url': 'https://genius.com/The-beatles-all-together-on-the-wireless-machine-lyrics'}" ] }, "execution_count": 45, "metadata": {}, "output_type": "execute_result" } ], "source": [ "genius_tracks.find_one()" ] }, { "cell_type": "code", "execution_count": 46, "metadata": { "scrolled": false }, "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", "
0123456789...1061106210631064106510661067106810691070
_id149776821031512353312353711772221028413363941079151308579123808...31048331326931304323893451245984311907310293310289106069310543
annotation_count1154611611...111411411615
api_path/songs/1497768/songs/210315/songs/123533/songs/123537/songs/117722/songs/210284/songs/1336394/songs/107915/songs/1308579/songs/123808.../songs/310483/songs/313269/songs/313043/songs/2389345/songs/1245984/songs/311907/songs/310293/songs/310289/songs/106069/songs/310543
ctitleNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
full_titleAll Together on the Wireless Machine by The Be...A Little Rhyme by The Beatles (Ft. John & Rodn...And I Love Her by The BeatlesAny Time at All by The BeatlesA Taste of Honey by The BeatlesBeatle Greetings by The Beatles (Ft. George Ha...Can You Take Me Back by The BeatlesCarry That Weight by The BeatlesDown in Eastern Australia by The BeatlesEverybody's Trying to Be My Baby by The Beatles...You Can't Catch Me by The Rolling StonesYou Don't Have To Mean It by The Rolling StonesYou Got Me Rocking by The Rolling StonesYou Got the Silver by The Rolling Stones (Ft. ...Don't Look Back by The Rolling StonesEach and every day of the year by The Rolling ...I'm A King Bee by The Rolling StonesLittle By Little by The Rolling StonesBrown Sugar by The Rolling StonesCitadel by The Rolling Stones
header_image_thumbnail_urlhttps://images.genius.com/ad1f59e8a03be4eb521e...https://s3.amazonaws.com/rapgenius/110537_cda_...https://images.genius.com/68c11c7f5b6b66194d77...https://images.genius.com/68c11c7f5b6b66194d77...https://s3.amazonaws.com/rapgenius/1360709432_...https://s3.amazonaws.com/rapgenius/110537_cda_...https://images.genius.com/ad1f59e8a03be4eb521e...https://images.genius.com/560d707ac51a528c952d...https://images.genius.com/ad1f59e8a03be4eb521e...https://images.genius.com/4268a08d2b36372eb6e8......https://images.genius.com/9c0263f14c39b6df59e5...https://images.genius.com/eb7fd9257058b77179cb...https://images.genius.com/a8ed1f93846da84943a7...https://images.rapgenius.com/ac969979ccb91a0d2...https://images.genius.com/23bbf05f7ee8286a8905...https://images.genius.com/6c322c96140487d56076...https://images.genius.com/076d49bcc219432b68b4...https://images.genius.com/076d49bcc219432b68b4...https://images.genius.com/5b7d4f11893ff2fdeba7...https://images.genius.com/31323212a74c2a8d99eb...
header_image_urlhttps://images.genius.com/ad1f59e8a03be4eb521e...https://s3.amazonaws.com/rapgenius/110537_cda_...https://images.genius.com/68c11c7f5b6b66194d77...https://images.genius.com/68c11c7f5b6b66194d77...https://s3.amazonaws.com/rapgenius/1360709432_...https://s3.amazonaws.com/rapgenius/110537_cda_...https://images.genius.com/ad1f59e8a03be4eb521e...https://images.genius.com/560d707ac51a528c952d...https://images.genius.com/ad1f59e8a03be4eb521e...https://images.genius.com/4268a08d2b36372eb6e8......https://images.genius.com/9c0263f14c39b6df59e5...https://images.genius.com/eb7fd9257058b77179cb...https://images.genius.com/a8ed1f93846da84943a7...https://images.rapgenius.com/ac969979ccb91a0d2...https://images.genius.com/23bbf05f7ee8286a8905...https://images.genius.com/6c322c96140487d56076...https://images.genius.com/076d49bcc219432b68b4...https://images.genius.com/076d49bcc219432b68b4...https://images.genius.com/5b7d4f11893ff2fdeba7...https://images.genius.com/31323212a74c2a8d99eb...
id149776821031512353312353711772221028413363941079151308579123808...31048331326931304323893451245984311907310293310289106069310543
lyricsNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
lyrics_owner_id15493452509624687146871707992509621549345116340154934522533...3543833546083543821217557154934535438535438335438316354608
original_lyricsNaNNaNNaNNaNNaNNaNNaNNaNNaNNaN...NaNNaNNaNNaNNaNNaNNaNNaNNaNNaN
path/The-beatles-all-together-on-the-wireless-mach.../The-beatles-a-little-rhyme-lyrics/The-beatles-and-i-love-her-lyrics/The-beatles-any-time-at-all-lyrics/The-beatles-a-taste-of-honey-lyrics/The-beatles-beatle-greetings-lyrics/The-beatles-can-you-take-me-back-lyrics/The-beatles-carry-that-weight-lyrics/The-beatles-down-in-eastern-australia-lyrics/The-beatles-everybodys-trying-to-be-my-baby-l....../The-rolling-stones-you-cant-catch-me-lyrics/The-rolling-stones-you-dont-have-to-mean-it-l.../The-rolling-stones-you-got-me-rocking-lyrics/The-rolling-stones-you-got-the-silver-lyrics/The-rolling-stones-dont-look-back-lyrics/The-rolling-stones-each-and-every-day-of-the-.../The-rolling-stones-im-a-king-bee-lyrics/The-rolling-stones-little-by-little-lyrics/The-rolling-stones-brown-sugar-lyrics/The-rolling-stones-citadel-lyrics
primary_artist{'id': 586, 'image_url': 'https://images.geniu...{'id': 586, 'image_url': 'https://images.geniu...{'id': 586, 'image_url': 'https://images.geniu...{'id': 586, 'image_url': 'https://images.geniu...{'id': 586, 'image_url': 'https://images.geniu...{'id': 586, 'image_url': 'https://images.geniu...{'id': 586, 'image_url': 'https://images.geniu...{'id': 586, 'image_url': 'https://images.geniu...{'id': 586, 'image_url': 'https://images.geniu...{'id': 586, 'image_url': 'https://images.geniu......{'id': 774, 'image_url': 'https://images.geniu...{'id': 774, 'image_url': 'https://images.geniu...{'id': 774, 'image_url': 'https://images.geniu...{'id': 774, 'image_url': 'https://images.geniu...{'id': 774, 'image_url': 'https://images.geniu...{'id': 774, 'image_url': 'https://images.geniu...{'id': 774, 'image_url': 'https://images.geniu...{'id': 774, 'image_url': 'https://images.geniu...{'id': 774, 'image_url': 'https://images.geniu...{'id': 774, 'image_url': 'https://images.geniu...
pyongs_countNaNNaN152NaNNaNNaN1NaNNaN...NaNNaNNaNNaNNaNNaNNaNNaN7NaN
song_art_image_thumbnail_urlhttps://images.genius.com/ad1f59e8a03be4eb521e...https://s3.amazonaws.com/rapgenius/110537_cda_...https://images.genius.com/68c11c7f5b6b66194d77...https://images.genius.com/68c11c7f5b6b66194d77...https://s3.amazonaws.com/rapgenius/1360709432_...https://s3.amazonaws.com/rapgenius/110537_cda_...https://images.genius.com/ad1f59e8a03be4eb521e...https://images.genius.com/560d707ac51a528c952d...https://images.genius.com/ad1f59e8a03be4eb521e...https://images.genius.com/4268a08d2b36372eb6e8......https://images.genius.com/9c0263f14c39b6df59e5...https://images.genius.com/eb7fd9257058b77179cb...https://images.genius.com/a8ed1f93846da84943a7...https://images.rapgenius.com/ac969979ccb91a0d2...https://images.genius.com/23bbf05f7ee8286a8905...https://images.genius.com/6c322c96140487d56076...https://images.genius.com/076d49bcc219432b68b4...https://images.genius.com/076d49bcc219432b68b4...https://images.genius.com/5b7d4f11893ff2fdeba7...https://images.genius.com/31323212a74c2a8d99eb...
stats{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False, 'p...{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False, 'p...{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}...{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False}{'unreviewed_annotations': 0, 'hot': False, 'p...{'unreviewed_annotations': 14, 'hot': False}
titleAll Together on the Wireless MachineA Little RhymeAnd I Love HerAny Time at AllA Taste of HoneyBeatle GreetingsCan You Take Me BackCarry That WeightDown in Eastern AustraliaEverybody's Trying to Be My Baby...You Can't Catch MeYou Don't Have To Mean ItYou Got Me RockingYou Got the SilverDon't Look BackEach and every day of the yearI'm A King BeeLittle By LittleBrown SugarCitadel
urlhttps://genius.com/The-beatles-all-together-on...https://genius.com/The-beatles-a-little-rhyme-...https://genius.com/The-beatles-and-i-love-her-...https://genius.com/The-beatles-any-time-at-all...https://genius.com/The-beatles-a-taste-of-hone...https://genius.com/The-beatles-beatle-greeting...https://genius.com/The-beatles-can-you-take-me...https://genius.com/The-beatles-carry-that-weig...https://genius.com/The-beatles-down-in-eastern...https://genius.com/The-beatles-everybodys-tryi......https://genius.com/The-rolling-stones-you-cant...https://genius.com/The-rolling-stones-you-dont...https://genius.com/The-rolling-stones-you-got-...https://genius.com/The-rolling-stones-you-got-...https://genius.com/The-rolling-stones-dont-loo...https://genius.com/The-rolling-stones-each-and...https://genius.com/The-rolling-stones-im-a-kin...https://genius.com/The-rolling-stones-little-b...https://genius.com/The-rolling-stones-brown-su...https://genius.com/The-rolling-stones-citadel-...
\n", "

18 rows × 1071 columns

\n", "
" ], "text/plain": [ " 0 \\\n", "_id 1497768 \n", "annotation_count 1 \n", "api_path /songs/1497768 \n", "ctitle NaN \n", "full_title All Together on the Wireless Machine by The Be... \n", "header_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n", "header_image_url https://images.genius.com/ad1f59e8a03be4eb521e... \n", "id 1497768 \n", "lyrics NaN \n", "lyrics_owner_id 1549345 \n", "original_lyrics NaN \n", "path /The-beatles-all-together-on-the-wireless-mach... \n", "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title All Together on the Wireless Machine \n", "url https://genius.com/The-beatles-all-together-on... \n", "\n", " 1 \\\n", "_id 210315 \n", "annotation_count 1 \n", "api_path /songs/210315 \n", "ctitle NaN \n", "full_title A Little Rhyme by The Beatles (Ft. John & Rodn... \n", "header_image_thumbnail_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n", "header_image_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n", "id 210315 \n", "lyrics NaN \n", "lyrics_owner_id 250962 \n", "original_lyrics NaN \n", "path /The-beatles-a-little-rhyme-lyrics \n", "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title A Little Rhyme \n", "url https://genius.com/The-beatles-a-little-rhyme-... \n", "\n", " 2 \\\n", "_id 123533 \n", "annotation_count 5 \n", "api_path /songs/123533 \n", "ctitle NaN \n", "full_title And I Love Her by The Beatles \n", "header_image_thumbnail_url https://images.genius.com/68c11c7f5b6b66194d77... \n", "header_image_url https://images.genius.com/68c11c7f5b6b66194d77... \n", "id 123533 \n", "lyrics NaN \n", "lyrics_owner_id 46871 \n", "original_lyrics NaN \n", "path /The-beatles-and-i-love-her-lyrics \n", "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n", "pyongs_count 15 \n", "song_art_image_thumbnail_url https://images.genius.com/68c11c7f5b6b66194d77... \n", "stats {'unreviewed_annotations': 0, 'hot': False, 'p... \n", "title And I Love Her \n", "url https://genius.com/The-beatles-and-i-love-her-... \n", "\n", " 3 \\\n", "_id 123537 \n", "annotation_count 4 \n", "api_path /songs/123537 \n", "ctitle NaN \n", "full_title Any Time at All by The Beatles \n", "header_image_thumbnail_url https://images.genius.com/68c11c7f5b6b66194d77... \n", "header_image_url https://images.genius.com/68c11c7f5b6b66194d77... \n", "id 123537 \n", "lyrics NaN \n", "lyrics_owner_id 46871 \n", "original_lyrics NaN \n", "path /The-beatles-any-time-at-all-lyrics \n", "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n", "pyongs_count 2 \n", "song_art_image_thumbnail_url https://images.genius.com/68c11c7f5b6b66194d77... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title Any Time at All \n", "url https://genius.com/The-beatles-any-time-at-all... \n", "\n", " 4 \\\n", "_id 117722 \n", "annotation_count 6 \n", "api_path /songs/117722 \n", "ctitle NaN \n", "full_title A Taste of Honey by The Beatles \n", "header_image_thumbnail_url https://s3.amazonaws.com/rapgenius/1360709432_... \n", "header_image_url https://s3.amazonaws.com/rapgenius/1360709432_... \n", "id 117722 \n", "lyrics NaN \n", "lyrics_owner_id 70799 \n", "original_lyrics NaN \n", "path /The-beatles-a-taste-of-honey-lyrics \n", "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://s3.amazonaws.com/rapgenius/1360709432_... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title A Taste of Honey \n", "url https://genius.com/The-beatles-a-taste-of-hone... \n", "\n", " 5 \\\n", "_id 210284 \n", "annotation_count 1 \n", "api_path /songs/210284 \n", "ctitle NaN \n", "full_title Beatle Greetings by The Beatles (Ft. George Ha... \n", "header_image_thumbnail_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n", "header_image_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n", "id 210284 \n", "lyrics NaN \n", "lyrics_owner_id 250962 \n", "original_lyrics NaN \n", "path /The-beatles-beatle-greetings-lyrics \n", "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://s3.amazonaws.com/rapgenius/110537_cda_... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title Beatle Greetings \n", "url https://genius.com/The-beatles-beatle-greeting... \n", "\n", " 6 \\\n", "_id 1336394 \n", "annotation_count 1 \n", "api_path /songs/1336394 \n", "ctitle NaN \n", "full_title Can You Take Me Back by The Beatles \n", "header_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n", "header_image_url https://images.genius.com/ad1f59e8a03be4eb521e... \n", "id 1336394 \n", "lyrics NaN \n", "lyrics_owner_id 1549345 \n", "original_lyrics NaN \n", "path /The-beatles-can-you-take-me-back-lyrics \n", "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title Can You Take Me Back \n", "url https://genius.com/The-beatles-can-you-take-me... \n", "\n", " 7 \\\n", "_id 107915 \n", "annotation_count 6 \n", "api_path /songs/107915 \n", "ctitle NaN \n", "full_title Carry That Weight by The Beatles \n", "header_image_thumbnail_url https://images.genius.com/560d707ac51a528c952d... \n", "header_image_url https://images.genius.com/560d707ac51a528c952d... \n", "id 107915 \n", "lyrics NaN \n", "lyrics_owner_id 116340 \n", "original_lyrics NaN \n", "path /The-beatles-carry-that-weight-lyrics \n", "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n", "pyongs_count 1 \n", "song_art_image_thumbnail_url https://images.genius.com/560d707ac51a528c952d... \n", "stats {'unreviewed_annotations': 0, 'hot': False, 'p... \n", "title Carry That Weight \n", "url https://genius.com/The-beatles-carry-that-weig... \n", "\n", " 8 \\\n", "_id 1308579 \n", "annotation_count 1 \n", "api_path /songs/1308579 \n", "ctitle NaN \n", "full_title Down in Eastern Australia by The Beatles \n", "header_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n", "header_image_url https://images.genius.com/ad1f59e8a03be4eb521e... \n", "id 1308579 \n", "lyrics NaN \n", "lyrics_owner_id 1549345 \n", "original_lyrics NaN \n", "path /The-beatles-down-in-eastern-australia-lyrics \n", "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/ad1f59e8a03be4eb521e... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title Down in Eastern Australia \n", "url https://genius.com/The-beatles-down-in-eastern... \n", "\n", " 9 \\\n", "_id 123808 \n", "annotation_count 1 \n", "api_path /songs/123808 \n", "ctitle NaN \n", "full_title Everybody's Trying to Be My Baby by The Beatles \n", "header_image_thumbnail_url https://images.genius.com/4268a08d2b36372eb6e8... \n", "header_image_url https://images.genius.com/4268a08d2b36372eb6e8... \n", "id 123808 \n", "lyrics NaN \n", "lyrics_owner_id 22533 \n", "original_lyrics NaN \n", "path /The-beatles-everybodys-trying-to-be-my-baby-l... \n", "primary_artist {'id': 586, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/4268a08d2b36372eb6e8... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title Everybody's Trying to Be My Baby \n", "url https://genius.com/The-beatles-everybodys-tryi... \n", "\n", " ... \\\n", "_id ... \n", "annotation_count ... \n", "api_path ... \n", "ctitle ... \n", "full_title ... \n", "header_image_thumbnail_url ... \n", "header_image_url ... \n", "id ... \n", "lyrics ... \n", "lyrics_owner_id ... \n", "original_lyrics ... \n", "path ... \n", "primary_artist ... \n", "pyongs_count ... \n", "song_art_image_thumbnail_url ... \n", "stats ... \n", "title ... \n", "url ... \n", "\n", " 1061 \\\n", "_id 310483 \n", "annotation_count 1 \n", "api_path /songs/310483 \n", "ctitle NaN \n", "full_title You Can't Catch Me by The Rolling Stones \n", "header_image_thumbnail_url https://images.genius.com/9c0263f14c39b6df59e5... \n", "header_image_url https://images.genius.com/9c0263f14c39b6df59e5... \n", "id 310483 \n", "lyrics NaN \n", "lyrics_owner_id 354383 \n", "original_lyrics NaN \n", "path /The-rolling-stones-you-cant-catch-me-lyrics \n", "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/9c0263f14c39b6df59e5... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title You Can't Catch Me \n", "url https://genius.com/The-rolling-stones-you-cant... \n", "\n", " 1062 \\\n", "_id 313269 \n", "annotation_count 1 \n", "api_path /songs/313269 \n", "ctitle NaN \n", "full_title You Don't Have To Mean It by The Rolling Stones \n", "header_image_thumbnail_url https://images.genius.com/eb7fd9257058b77179cb... \n", "header_image_url https://images.genius.com/eb7fd9257058b77179cb... \n", "id 313269 \n", "lyrics NaN \n", "lyrics_owner_id 354608 \n", "original_lyrics NaN \n", "path /The-rolling-stones-you-dont-have-to-mean-it-l... \n", "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/eb7fd9257058b77179cb... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title You Don't Have To Mean It \n", "url https://genius.com/The-rolling-stones-you-dont... \n", "\n", " 1063 \\\n", "_id 313043 \n", "annotation_count 1 \n", "api_path /songs/313043 \n", "ctitle NaN \n", "full_title You Got Me Rocking by The Rolling Stones \n", "header_image_thumbnail_url https://images.genius.com/a8ed1f93846da84943a7... \n", "header_image_url https://images.genius.com/a8ed1f93846da84943a7... \n", "id 313043 \n", "lyrics NaN \n", "lyrics_owner_id 354382 \n", "original_lyrics NaN \n", "path /The-rolling-stones-you-got-me-rocking-lyrics \n", "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/a8ed1f93846da84943a7... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title You Got Me Rocking \n", "url https://genius.com/The-rolling-stones-you-got-... \n", "\n", " 1064 \\\n", "_id 2389345 \n", "annotation_count 4 \n", "api_path /songs/2389345 \n", "ctitle NaN \n", "full_title You Got the Silver by The Rolling Stones (Ft. ... \n", "header_image_thumbnail_url https://images.rapgenius.com/ac969979ccb91a0d2... \n", "header_image_url https://images.rapgenius.com/ac969979ccb91a0d2... \n", "id 2389345 \n", "lyrics NaN \n", "lyrics_owner_id 1217557 \n", "original_lyrics NaN \n", "path /The-rolling-stones-you-got-the-silver-lyrics \n", "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.rapgenius.com/ac969979ccb91a0d2... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title You Got the Silver \n", "url https://genius.com/The-rolling-stones-you-got-... \n", "\n", " 1065 \\\n", "_id 1245984 \n", "annotation_count 1 \n", "api_path /songs/1245984 \n", "ctitle NaN \n", "full_title Don't Look Back by The Rolling Stones \n", "header_image_thumbnail_url https://images.genius.com/23bbf05f7ee8286a8905... \n", "header_image_url https://images.genius.com/23bbf05f7ee8286a8905... \n", "id 1245984 \n", "lyrics NaN \n", "lyrics_owner_id 1549345 \n", "original_lyrics NaN \n", "path /The-rolling-stones-dont-look-back-lyrics \n", "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/23bbf05f7ee8286a8905... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title Don't Look Back \n", "url https://genius.com/The-rolling-stones-dont-loo... \n", "\n", " 1066 \\\n", "_id 311907 \n", "annotation_count 1 \n", "api_path /songs/311907 \n", "ctitle NaN \n", "full_title Each and every day of the year by The Rolling ... \n", "header_image_thumbnail_url https://images.genius.com/6c322c96140487d56076... \n", "header_image_url https://images.genius.com/6c322c96140487d56076... \n", "id 311907 \n", "lyrics NaN \n", "lyrics_owner_id 354385 \n", "original_lyrics NaN \n", "path /The-rolling-stones-each-and-every-day-of-the-... \n", "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/6c322c96140487d56076... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title Each and every day of the year \n", "url https://genius.com/The-rolling-stones-each-and... \n", "\n", " 1067 \\\n", "_id 310293 \n", "annotation_count 4 \n", "api_path /songs/310293 \n", "ctitle NaN \n", "full_title I'm A King Bee by The Rolling Stones \n", "header_image_thumbnail_url https://images.genius.com/076d49bcc219432b68b4... \n", "header_image_url https://images.genius.com/076d49bcc219432b68b4... \n", "id 310293 \n", "lyrics NaN \n", "lyrics_owner_id 354383 \n", "original_lyrics NaN \n", "path /The-rolling-stones-im-a-king-bee-lyrics \n", "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/076d49bcc219432b68b4... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title I'm A King Bee \n", "url https://genius.com/The-rolling-stones-im-a-kin... \n", "\n", " 1068 \\\n", "_id 310289 \n", "annotation_count 1 \n", "api_path /songs/310289 \n", "ctitle NaN \n", "full_title Little By Little by The Rolling Stones \n", "header_image_thumbnail_url https://images.genius.com/076d49bcc219432b68b4... \n", "header_image_url https://images.genius.com/076d49bcc219432b68b4... \n", "id 310289 \n", "lyrics NaN \n", "lyrics_owner_id 354383 \n", "original_lyrics NaN \n", "path /The-rolling-stones-little-by-little-lyrics \n", "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/076d49bcc219432b68b4... \n", "stats {'unreviewed_annotations': 0, 'hot': False} \n", "title Little By Little \n", "url https://genius.com/The-rolling-stones-little-b... \n", "\n", " 1069 \\\n", "_id 106069 \n", "annotation_count 16 \n", "api_path /songs/106069 \n", "ctitle NaN \n", "full_title Brown Sugar by The Rolling Stones \n", "header_image_thumbnail_url https://images.genius.com/5b7d4f11893ff2fdeba7... \n", "header_image_url https://images.genius.com/5b7d4f11893ff2fdeba7... \n", "id 106069 \n", "lyrics NaN \n", "lyrics_owner_id 16 \n", "original_lyrics NaN \n", "path /The-rolling-stones-brown-sugar-lyrics \n", "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n", "pyongs_count 7 \n", "song_art_image_thumbnail_url https://images.genius.com/5b7d4f11893ff2fdeba7... \n", "stats {'unreviewed_annotations': 0, 'hot': False, 'p... \n", "title Brown Sugar \n", "url https://genius.com/The-rolling-stones-brown-su... \n", "\n", " 1070 \n", "_id 310543 \n", "annotation_count 15 \n", "api_path /songs/310543 \n", "ctitle NaN \n", "full_title Citadel by The Rolling Stones \n", "header_image_thumbnail_url https://images.genius.com/31323212a74c2a8d99eb... \n", "header_image_url https://images.genius.com/31323212a74c2a8d99eb... \n", "id 310543 \n", "lyrics NaN \n", "lyrics_owner_id 354608 \n", "original_lyrics NaN \n", "path /The-rolling-stones-citadel-lyrics \n", "primary_artist {'id': 774, 'image_url': 'https://images.geniu... \n", "pyongs_count NaN \n", "song_art_image_thumbnail_url https://images.genius.com/31323212a74c2a8d99eb... \n", "stats {'unreviewed_annotations': 14, 'hot': False} \n", "title Citadel \n", "url https://genius.com/The-rolling-stones-citadel-... \n", "\n", "[18 rows x 1071 columns]" ] }, "execution_count": 46, "metadata": {}, "output_type": "execute_result" } ], "source": [ "gsongs = pd.DataFrame(list(genius_tracks.find()))\n", "gsongs.T" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now we can get the lyrics for each song. We tidy it up as we go, to strip out formatting and the like.\n", "\n", "Note the use of [Beautiful Soup](https://www.crummy.com/software/BeautifulSoup/bs4/doc/) to strip out the HTML from the lyrics." ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [], "source": [ "def genius_lyrics(song_url):\n", " headers = {'Accept': 'application/json',\n", " 'Authorization': 'Bearer ' + config['genius']['token'],\n", " 'User-Agent': 'curl/7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b) (ipv6 enabled)'}\n", " request = urllib.request.Request(song_url, headers=headers, method='GET')\n", " html_doc = urllib.request.urlopen(request)\n", " soup = BeautifulSoup(html_doc, 'html.parser')\n", "# lyrics = soup.find('lyrics').get_text()\n", " if soup.find('div', class_='lyrics'):\n", " lyrics = soup.find('div', class_='lyrics').get_text()\n", " else:\n", " lyrics = ''\n", " return sanitise_lyrics(lyrics)" ] }, { "cell_type": "code", "execution_count": 31, "metadata": {}, "outputs": [], "source": [ "def sanitise_lyrics(lyrics):\n", " l2 = re.sub('\\[[^\\]]*\\]', '', lyrics)\n", " l3 = re.sub('\\[|\\]', '', l2)\n", " l4 = re.sub('(\\s)+', ' ', l3)\n", " l5 = re.sub('[,.!?;:]', '', l4)\n", " return l5.strip().lower(), lyrics" ] }, { "cell_type": "code", "execution_count": 32, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(\"oh ain't she sweet well see her walking down that street yes i ask you very confidentially ain't she sweet oh ain't she nice well look her over once or twice yes i ask you very confidentially ain't she nice just cast an eye in her direction oh me oh my ain't that perfection oh i repeat well don't you think that's kind of neat yes i ask you very confidentially ain't she sweet oh ain't she sweet well see her walking down that street yes i ask you very confidentially ain't she sweet oh ain't she nice well look her over once or twice yes i ask you very confidentially ain't she nice just cast an eye in her direction oh me oh my ain't that perfection oh i repeat well don't you think that's kind of neat yes i ask you very confidentially ain't she sweet oh ain't she sweet well see her walking down that street well i ask you very confidentially ain't she sweet well i ask you very confidentially ain't she sweet\",\n", " \"\\n\\n[Chorus 1]\\nOh ain't she sweet\\nWell see her walking down that street\\nYes I ask you very confidentially\\nAin't she sweet?\\n\\n[Chorus 2]\\nOh ain't she nice\\nWell look her over once or twice\\nYes I ask you very confidentially\\nAin't she nice?\\n\\n[Chorus 3]\\nJust cast an eye\\nIn her direction\\nOh me oh my\\nAin't that perfection?\\n\\n[Chorus 4]\\nOh I repeat\\nWell don't you think that's kind of neat?\\nYes I ask you very confidentially\\nAin't she sweet?\\n\\n[Chorus 1]\\nOh ain't she sweet\\nWell see her walking down that street\\nYes I ask you very confidentially\\nAin't she sweet?\\n\\n[Chorus 2]\\nOh ain't she nice\\nWell look her over once or twice\\nYes I ask you very confidentially\\nAin't she nice?\\n\\n[Chorus 3]\\nJust cast an eye\\nIn her direction\\nOh me oh my\\nAin't that perfection?\\n\\n[Chorus 4]\\nOh I repeat\\nWell don't you think that's kind of neat?\\nYes I ask you very confidentially\\nAin't she sweet?\\n\\n[Chorus 1]\\nOh ain't she sweet\\nWell see her walking down that street\\nWell I ask you very confidentially\\nAin't she sweet?\\nWell I ask you very confidentially\\nAin't she sweet?\\n\\n\")" ] }, "execution_count": 32, "metadata": {}, "output_type": "execute_result" } ], "source": [ "assl = genius_lyrics('https://genius.com/The-beatles-aint-she-sweet-lyrics')\n", "assl" ] }, { "cell_type": "code", "execution_count": 54, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "{'_id': 1497768,\n", " 'lyrics': 'when i was sitting on my piano one day a magical thought came my way to write a number for the bbc kenny everett mccartney all together on the wireless machine kenny everett mccartney all together on the wireless machine kenny everett mccartney all together on the wireless machine',\n", " 'original_lyrics': '\\n\\nWhen I was sitting on my piano one day\\nA magical thought came my way\\nTo write a number for the BBC\\nKenny Everett McCartney\\nAll together on the wireless machine\\nKenny Everett McCartney\\nAll together on the wireless machine\\nKenny Everett McCartney\\nAll together on the wireless machine\\n\\n',\n", " 'title': 'All Together on the Wireless Machine'}" ] }, "execution_count": 54, "metadata": {}, "output_type": "execute_result" } ], "source": [ "for gsong in genius_tracks.find():\n", " if 'lyrics' not in gsong:\n", " lyrics, original_lyrics = genius_lyrics(gsong['url'])\n", " genius_tracks.update_one({'_id': gsong['_id']}, \n", " {'$set': {'lyrics': lyrics, 'original_lyrics': original_lyrics}})\n", "genius_tracks.find_one({}, ['title', 'lyrics', 'original_lyrics'])" ] }, { "cell_type": "code", "execution_count": 55, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'original_lyrics_text'" ] }, "execution_count": 55, "metadata": {}, "output_type": "execute_result" } ], "source": [ "genius_tracks.create_index([('original_lyrics', pymongo.TEXT)])" ] }, { "cell_type": "code", "execution_count": 56, "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "[\"\\n\\nClaudine's back in jail again\\nClaudine's back in jail (again)\\nClaudine's back in jail again\\nClaudine\\n\\nClaudine's back in jail again\\nClaudine's back in jail (again)\\nShe only does it at weekends\\nClaudine\\nOh, Claudine\\n\\nNow only Spider knows for sure\\nBut he ain't talkin' about it any more\\nIs he, Claudine?\\n\\nThere's blood in the chalet\\nAnd blood in the snow\\n(She)Washed her hands of the whole damn show\\nThe best thing you could do, Claudine\\n\\nShot him once right through the head\\nShot him twice right through the chest\\nThe judge says (ruled) it was an accident\\nClaudine\\nAccidents will happen\\n(In the best homes)\\n\\nAnd Claudine's back in jail again\\nClaudine's back in jail again\\nClaudine's back in jail again\\nClaudine\\n\\n(Claudine's back in jail again\\nClaudine's back in jail again\\nClaudine's back in jail again\\n\\nClaudine) (additional chorus)\\nI'll tell you something\\nNow Claudine's back in jail again\\nClaudine's back in jail again\\nClaudine's back in jail again\\nClaudine\\n\\nTell you one more\\n\\nClaudine's back in jail again\\nClaudine's back in jail again\\nClaudine's back in jail again\\nHuh Claudine?\\n\\nOh Claudine...\\n\\nOooo ...\\nWhat about the children, baby?\\nPoor, poor children\\n\\nNow I threaten my wife with a gun\\nI always leave the safety on\\nI recommend it\\nClaudine\\n\\nNow she pistol whipped me once or twice\\nBut she never tried to take my life\\n(What do you think about that)\\nClaudine\\n\\nThe prettiest girl I ever seen\\nI saw you on the movie screen\\nHope you don't try to make a sacrifice of me\\nClaudine\\n(Don't get trigger happy with me)\\nDon't wave a gun at me\\n(Claudine)\\n\\nI said Claudine's back in jail again\\nClaudine's back in jail again\\nClaudine's back in jail again\\nClaudine\\n\\nI said Claudine's back in jail again\\nClaudine's back in jail again\\nShe only does it at weekends\\nClaudine\\n\\nKeith, will you put that weapon down?\\n\\nOh Claudine\\n\\nOh Claudine\\n\\n\",\n", " \"\\n\\n[Verse 1]\\nI'm not talking about the kind of clothes she wears\\nLook at that stupid girl\\nI'm not talking about the way she combs her hair\\nLook at that stupid girl\\n\\nThe way she powders her nose\\nHer vanity shows and it shows\\nShe's the worst thing in this world\\nWell, look at that stupid girl\\n\\n[Verse 2]\\nI'm not talking about the way she digs for gold\\nLook at that stupid girl\\nWell, I'm talking about the way she grabs and holds\\nLook at that stupid girl\\n\\nThe way she talks about someone else\\nThat she don't even know herself\\nShe's the sickest thing in this world\\nWell, look at that stupid girl\\n\\n[Chorus]\\nWell, I'm sick and tired and I really have my doubts\\nI've tried and tried, but it never really works out\\n\\n[Verse 3]\\nLike a lady-in-waiting to a virgin queen\\nLook at that stupid girl\\nShe bitches about things that she's never seen\\nLook at that stupid girl\\n\\nIt doesn't matter if she dyes her hair\\nOr the color of the shoes she wears\\nShe's the worst thing in this world\\nWell, look at that stupid girl\\n\\n[Guitar Break]\\n\\n[Verse 4]\\nLike a lady-in-waiting to a virgin queen\\nLook at that stupid girl\\nShe bitches about things that she's never seen\\nLook at that stupid girl\\n\\nAnd she purrs like a pussycat\\nThen she turns around and hisses back\\nShe's the sickest thing in this world\\nLook at that stupid girl\\n\\n\",\n", " \"\\n\\n[Verse 1]\\nWent out walking through the wood the other day\\nAnd the world was a carpet laid before me\\nThe buds were bursting and the air smelled sweet and strange\\nAnd it seemed about a hundred years ago\\nMary and I, we would sit upon a gate\\nJust gazing at some dragon in the sky\\nWhat tender days, we had no secrets hid away\\nWell, it seemed about a hundred years ago\\nNow all my friends are wearing worried smiles\\nLiving out a dream of what they was\\nDon't you think it's sometimes wise not to grow up?\\nWend out walking through the wood the other day\\nCan't you see the furrows in my forehead?\\nWhat tender days, we had no secrets hid away\\nNow it seems about a hundred years ago\\nNow if you see me drinking bad red wine\\nDon't worry 'bout this man that you love\\nDon't you think it's sometimes wise not to grow up?\\n\\n[Chorus]\\nYou're going to kiss and say good-bye, yeah, I warn you[x2]\\nYou're going to kiss and say good-bye, oh Lord, I warn you\\n\\n[Verse 2]\\nAnd please excuse me while I hide away\\nCall me lazy bones\\nIsn’t got no time to waste away\\nLazy bones has not got no time to waste away\\nDon't you think it's just about time to hide away? Yeah, yeah!\\n\\n\",\n", " \"\\n\\n[Instrument break]\\n\\n[Verse 1]\\nI don't like you\\nBut I love you\\nSeems that I'm always\\nThinking of you\\nOh, oh, oh\\nYou treat me badly\\nI love you madly\\nYou've really got a hold on me\\nYou've really got a hold on me, baby\\n\\n[Verse 2]\\nI don't want you\\nBut I need you\\nDon't want to kiss you\\nBut I need to\\nOh, oh, oh\\nYou do me wrong now\\nMy love is strong now\\nYou've really got a hold on me\\nYou've really got a hold on me, baby\\n\\n[Chorus]\\nI love you and all I want you to do\\nIs just hold me, hold me, hold me, hold me\\nTighter\\nTighter\\n\\n[Verse 3]\\nI want to leave you\\nDon't want to stay here\\nDon't want to spend\\nAnother day here\\nOh, oh, oh, I want to split now\\nI just can quit now\\nYou've really got a hold on me\\nYou've really got a hold on me, baby\\n\\nI love you and all I want you to do\\nIs just hold me, hold me, hold me, hold me\\n\\n[Outro]\\nYou've really got a hold on me\\nYou've really got a hold on me\\n\\n\",\n", " \"\\n\\n[Verse 1]\\nThe best things in life are free\\nBut you can keep them for the birds and bees\\nNow give me money\\nThat's what I want\\nThat's what I want, yeah\\nThat's what I want\\n\\nYour loving gives me a thrill\\nBut your loving don't pay my bills\\nNow give me money\\nThat's what I want\\nThat's what I want, yeah\\nThat's what I want\\n\\n[Chorus] [x2]\\nMoney don't get everything it's true\\nWhat it don't get, I can't use\\nNow give me money\\nThat's what I want\\nThat's what I want, yeah\\nThat's what I want, wah\\n\\n[Verse 2]\\nWell now give me money\\nA lot of money\\nWow, yeah, I want to be free\\nOh I want money\\nThat's what I want\\nThat's what I want, well\\nNow give me money\\nA lot of money\\nWow, yeah, you need money\\nNow, give me money\\nThat's what I want, yeah\\nThat's what I want\\n\\n\",\n", " '\\n\\n[Intro]\\nI say hey, Mona\\nOh, Mona\\nI say yeah, yeah, yeah, yeah, Mona\\nOh, Mona\\n\\n[Chorus][x2]\\nI tell you Mona what I want to do\\nI will build a house next door to you\\nCan I see you sometimes?\\nWe can blow kisses through the blinds\\nYeah can I out come out on the front\\nAnd listen to my heart go bumped bump\\nI need you baby that is no lie\\nWithout your love I would surely die\\nI say hey, Mona\\nOh, Mona\\nI say yeah, yeah, yeah, yeah, Mona\\nOh, Mona\\nI say hey, hey Mona\\nOh, Mona\\nI say yeah, yeah, yeah, yeah, Mona\\nOh, Mona\\n\\n',\n", " \"\\n\\n[Verse 1]\\nNow, if you want to hear some boogie like I am going to play\\nIt is just an old piano and a knockout bass\\nThe drummer's man's a cat, they call Charlie McCoy\\nYou know, remember that rubber legged boy?\\nMama, cooking chicken fried and bacon grease\\nCome on along boys, it is just down the road apiece\\n\\n[Chorus][x2]\\nWell there is a place you really get your kicks\\nIt is open every night about twelve to six\\nNow if you want to hear some boogie you can get your fill\\nAnd shove and sting like an old steam drill\\nCome on along you can lose your lead\\nDown the road, down the road, down the road apiece\\n\\n\",\n", " \"\\n\\n[Verse 1]\\nSun turnin' 'round with graceful motion\\nWe're setting off with soft explosion\\nBound for a star with fiery oceans\\nIt's so very lonely, you're a hundred light years from home\\nFreezing red deserts turn to dark\\nEnergy here in every part\\nIt's so very lonely, you're six hundred light years from home\\n\\n[Chorus]\\nIt's so very lonely, you're a thousand light years from home\\nIt's so very lonely, you're a thousand light years from home\\n\\n[Verse 2]\\nBell flight fourteen you now can land\\nSee you on Aldebaran, safe on the green desert sand\\nIt's so very lonely, you're two thousand light years from home\\nIt's so very lonely, you're two thousand light years from home\\n\\n\",\n", " '\\n\\n[Intro]\\nWell if you ever plan to motor west\\nJust take my way that is the highway that is the best\\n\\n[Verse]\\nGet your kicks on Route 66\\nWell it winds from Chicago to L.A\\nMore than 2000 miles all the way\\nGet your kicks on Route 66\\n\\n[Chorus][x2]\\nWell goes from St. Louie down to Missouri\\nOklahoma city looks oh so pretty\\nYou will see Amarillo and Gallup, New Mexico\\nFlagstaff, Arizona do not forget Winona\\nKingman, Barstow, San Bernardino\\nWould you get hip to this kindly tip\\nAnd go take that California trip\\nGet your kicks on Route 66\\n\\n',\n", " \"\\n\\nWell, they tell me of a pie up in the sky\\nWaiting for me when I die\\nBut between the day you're born and when you die\\nYou know, they never seem to hear even your cry\\n\\nChorus:\\nSo as sure as the sun will shine\\nI'm gonna get my share now what is mine\\nAnd then the harder they come\\nThe harder they fall\\nOne and all\\nThe harder they come\\nThe harder they fall\\nOne and all\\n\\nAnd the oppressors are trying to track me down\\nThey're trying to drive me underground\\nAnd they think that they have got the battle won\\nI say, forgive them Lord, they know not what they've done\\n\\nAnd I keep on fighting for the things I want\\nThough I know that when you're dead you can't\\nBut I'd rather be a free man in my grave\\nThan living as a puppet or a slave\\n\\n\"]" ] }, "execution_count": 56, "metadata": {}, "output_type": "execute_result" } ], "source": [ "[t['original_lyrics'] for t in genius_tracks.find({'$text': {'$search': 'chorus'}}, limit=10)]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Matching datasets\n", "Now it's time to match up the datasets. First, we simplify the titles of the tracks, to sidestep differences in punctuation, capitalisation, and the like.\n", "\n", "* [Top](#top)" ] }, { "cell_type": "code", "execution_count": 57, "metadata": {}, "outputs": [], "source": [ "def canonical_name(text):\n", " t1 = re.sub(' - .*', '', text) # Strip the \" - Remastered 2015\" suffix\n", " t2 = re.sub('[^\\w\\s]', '', t1) # strip all characters except letters, numbers, and whitespace\n", " t3 = re.sub('\\s+', ' ', t2) # collapse whitespace\n", " return t3.lower() # convert to lowercase and return" ] }, { "cell_type": "code", "execution_count": 58, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'a hard days night'" ] }, "execution_count": 58, "metadata": {}, "output_type": "execute_result" } ], "source": [ "canonical_name(\"A Hard Day's Night - Live / Remastered\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Add the simplified title to each track in the Spotify and Genius collections." ] }, { "cell_type": "code", "execution_count": 59, "metadata": {}, "outputs": [], "source": [ "for t in tracks.find():\n", " tracks.update_one({'_id': t['_id']}, {'$set': {'ctitle': canonical_name(t['name'])}})\n", "for t in genius_tracks.find():\n", " genius_tracks.update_one({'_id': t['_id']}, {'$set': {'ctitle': canonical_name(t['title'])}})" ] }, { "cell_type": "code", "execution_count": 60, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[('you cant always get what you want',\n", " ['You Can’t Always Get What You Want - Live',\n", " \"You Can't Always Get What You Want - Live Licks Tour - 2009 Re-Mastered Digital Version\",\n", " \"You Can't Always Get What You Want - Live / Remastered 2009\",\n", " 'You Can’t Always Get What You Want - Live']),\n", " ('next time you see me',\n", " ['Next Time You See Me - Live', 'Next Time You See Me - Live']),\n", " ('fixing a hole',\n", " ['Fixing A Hole - Remastered',\n", " 'Fixing A Hole - Remix',\n", " 'Fixing A Hole - Speech And Take 3']),\n", " ('harlem shuffle', ['Harlem Shuffle', 'Harlem Shuffle - Remastered']),\n", " ('back to zero', ['Back To Zero', 'Back To Zero - Remastered']),\n", " ('sgt peppers lonely hearts club band',\n", " [\"Sgt. Pepper's Lonely Hearts Club Band - Remastered\",\n", " \"Sgt. Pepper's Lonely Hearts Club Band - Reprise / Remastered\",\n", " \"Sgt. Pepper's Lonely Hearts Club Band - Remix\",\n", " \"Sgt. Pepper's Lonely Hearts Club Band - Take 9 And Speech\"]),\n", " ('im free',\n", " [\"I'm Free - Live At The Beacon Theatre, New York / 2006\",\n", " \"I'm Free - Live / Remastered 2009\"]),\n", " ('lies', ['Lies - Remastered', 'Lies - Remastered']),\n", " ('happy',\n", " ['Happy - Live',\n", " 'Happy - Live',\n", " 'Happy - Live Licks Tour - 2009 Re-Mastered Digital Version']),\n", " ('get back', ['Get Back - Remastered 2015', 'Get Back - Remastered']),\n", " ('gimme shelter',\n", " ['Gimme Shelter - Live',\n", " 'Gimme Shelter - Live',\n", " 'Gimme Shelter - Live',\n", " 'Gimme Shelter - Live',\n", " 'Gimme Shelter - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 'Gimme Shelter - Live']),\n", " ('i want to hold your hand',\n", " ['I Want To Hold Your Hand - Live / Bonus Track',\n", " 'I Want To Hold Your Hand - Remastered 2015']),\n", " ('roll over beethoven',\n", " ['Roll Over Beethoven - Saturday Club / 1963',\n", " 'Roll Over Beethoven - Live / Remastered',\n", " 'Roll Over Beethoven - Remastered']),\n", " ('cant be seen',\n", " [\"Can't Be Seen - Live / Remastered 2009\", \"Can't Be Seen - Remastered\"]),\n", " ('midnight rambler',\n", " ['Midnight Rambler - Live',\n", " 'Midnight Rambler - Live',\n", " 'Midnight Rambler - Live',\n", " 'Midnight Rambler - Live',\n", " 'Midnight Rambler - Live',\n", " 'Midnight Rambler - Live']),\n", " ('dirty work', ['Dirty Work', 'Dirty Work - Remastered']),\n", " ('all you need is love',\n", " ['All You Need Is Love - Remastered 2015',\n", " 'All You Need Is Love - Remastered',\n", " 'All You Need Is Love - Remastered 2009']),\n", " ('not fade away',\n", " ['Not Fade Away - Live',\n", " 'Not Fade Away - Live',\n", " 'Not Fade Away - Live',\n", " 'Not Fade Away - Live / Remastered 2009']),\n", " ('slipping away',\n", " ['Slipping Away - Live',\n", " 'Slipping Away - Live',\n", " 'Slipping Away - Live',\n", " 'Slipping Away - Live / Remastered 2009',\n", " 'Slipping Away - Remastered']),\n", " ('faraway eyes',\n", " ['Faraway Eyes - Live',\n", " 'Faraway Eyes - Live',\n", " 'Faraway Eyes - Live',\n", " 'Faraway Eyes - Live At The Beacon Theatre, New York / 2006']),\n", " ('angie',\n", " ['Angie - Live',\n", " 'Angie - Live',\n", " 'Angie - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 'Angie - Live / Remastered 2009',\n", " 'Angie - Live']),\n", " ('come together',\n", " ['Come Together - Remastered 2015', 'Come Together - Remastered']),\n", " ('cant buy me love',\n", " [\"Can't Buy Me Love - Live / Remastered\",\n", " \"Can't Buy Me Love - Remastered 2015\",\n", " \"Can't Buy Me Love - Remastered\"]),\n", " ('brown sugar',\n", " ['Brown Sugar - Live',\n", " 'Brown Sugar - Live',\n", " 'Brown Sugar - Live',\n", " 'Brown Sugar - Live',\n", " 'Brown Sugar - Live',\n", " 'Brown Sugar - Live',\n", " 'Brown Sugar - Live',\n", " 'Brown Sugar - Live At The Beacon Theatre, New York / 2006',\n", " 'Brown Sugar - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 'Brown Sugar - Live / Remastered 2009',\n", " 'Brown Sugar - Live']),\n", " ('baby please dont go',\n", " [\"Baby Please Don't Go - Live / Instrumental\",\n", " \"Baby Please Don't Go - Live\",\n", " \"Baby Please Don't Go - Live\"]),\n", " ('sgt peppers lonely hearts club band reprise',\n", " [\"Sgt. Pepper's Lonely Hearts Club Band (Reprise) - Speech And Take 8\",\n", " \"Sgt. Pepper's Lonely Hearts Club Band (Reprise) - Remix\"]),\n", " ('the long and winding road',\n", " ['The Long And Winding Road - Remastered 2015',\n", " 'The Long And Winding Road - Remastered']),\n", " ('when im sixtyfour',\n", " [\"When I'm Sixty-Four - Take 2\", \"When I'm Sixty-Four - Remix\"]),\n", " ('some girls',\n", " ['Some Girls - Remastered',\n", " 'Some Girls - Live At The Beacon Theatre, New York / 2006',\n", " 'Some Girls - Remastered']),\n", " ('connection',\n", " ['Connection - Live',\n", " 'Connection - Live',\n", " 'Connection - Live',\n", " 'Connection - Live At The Beacon Theatre, New York / 2006']),\n", " ('shattered',\n", " ['Shattered - Live',\n", " 'Shattered - Live',\n", " 'Shattered - Remastered',\n", " 'Shattered - Remastered',\n", " 'Shattered - Live At The Beacon Theatre, New York / 2006',\n", " 'Shattered - Live / Remastered 2009']),\n", " ('the worst', ['The Worst - Live', 'The Worst - Remastered']),\n", " ('little red rooster',\n", " ['Little Red Rooster - Live / Remastered 2009',\n", " 'Little Red Rooster - Live In Ireland / 1965']),\n", " ('sad sad sad',\n", " ['Sad Sad Sad - Live / Remastered 2009', 'Sad Sad Sad - Remastered']),\n", " ('the spider and the fly',\n", " ['The Spider And The Fly - Yeah Yeah / 1965',\n", " 'The Spider And The Fly - Live',\n", " 'The Spider And The Fly - Live / Remastered 2009']),\n", " ('a day in the life',\n", " ['A Day In The Life - Take 1 With Hums',\n", " 'A Day In The Life - Remastered',\n", " 'A Day In The Life - Remix']),\n", " ('you got me rockin',\n", " ['You Got Me Rockin’ - Live', 'You Got Me Rockin’ - Live']),\n", " ('things we said today',\n", " ['Things We Said Today - Live / Remastered',\n", " 'Things We Said Today - Remastered']),\n", " ('being for the benefit of mr kite',\n", " ['Being For The Benefit Of Mr. Kite! - Remastered',\n", " 'Being For The Benefit Of Mr. Kite! - Remix',\n", " 'Being For The Benefit Of Mr. Kite! - Take 4']),\n", " ('had it with you', ['Had It With You', 'Had It With You - Remastered']),\n", " ('time is on my side',\n", " ['Time Is On My Side - Live / Remastered 2009',\n", " 'Time Is On My Side - Live In Ireland / 1965']),\n", " ('tumbling dice',\n", " ['Tumbling Dice - Live',\n", " 'Tumbling Dice - Live',\n", " 'Tumbling Dice - Live',\n", " 'Tumbling Dice - Live',\n", " 'Tumbling Dice - Live At The Beacon Theatre, New York / 2006',\n", " 'Tumbling Dice - Live']),\n", " ('yellow submarine',\n", " ['Yellow Submarine - Remastered 2015',\n", " 'Yellow Submarine - Remastered',\n", " 'Yellow Submarine - Remastered']),\n", " ('beast of burden',\n", " ['Beast Of Burden - Live',\n", " 'Beast Of Burden - Live',\n", " 'Beast Of Burden - Live',\n", " 'Beast Of Burden - Remastered',\n", " 'Beast Of Burden - Remastered',\n", " 'Beast Of Burden - Live Licks Tour - 2009 Re-Mastered Digital Version']),\n", " ('lovely rita',\n", " ['Lovely Rita - Speech And Take 9',\n", " 'Lovely Rita - Remastered',\n", " 'Lovely Rita - Remix']),\n", " ('neighbours',\n", " ['Neighbours - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 'Neighbours - Remastered']),\n", " ('dead flowers',\n", " ['Dead Flowers - Live',\n", " 'Dead Flowers - Live',\n", " 'Dead Flowers - Live',\n", " 'Dead Flowers - Live',\n", " 'Dead Flowers - Live',\n", " 'Dead Flowers - Live',\n", " 'Dead Flowers - Live / Remastered 2009']),\n", " ('paint it black',\n", " ['Paint It Black - Live At The Beacon Theatre, New York / 2006',\n", " 'Paint It Black - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 'Paint It Black - Live / Remastered 2009',\n", " 'Paint It Black - Live']),\n", " ('respectable',\n", " ['Respectable - Live',\n", " 'Respectable - Live',\n", " 'Respectable - Remastered',\n", " 'Respectable - Remastered']),\n", " ('just my imagination',\n", " ['Just My Imagination - Live',\n", " 'Just My Imagination - Live At The Beacon Theatre, New York / 2006']),\n", " ('tell me why', ['Tell Me Why', 'Tell Me Why - Remastered']),\n", " ('little by little',\n", " ['Little By Little - The Joe Loss Pop Show / 1964', 'Little By Little']),\n", " ('got my mojo workin',\n", " [\"Got My Mojo Workin' - Live\", \"Got My Mojo Workin' - Live\"]),\n", " ('little ta',\n", " ['Little T&A - Live At The Beacon Theatre, New York / 2006',\n", " 'Little T&A - Remastered']),\n", " ('far away eyes',\n", " ['Far Away Eyes - Live',\n", " 'Far Away Eyes - Remastered',\n", " 'Far Away Eyes - Remastered']),\n", " ('rock and a hard place',\n", " ['Rock And A Hard Place - Live / Remastered 2009',\n", " 'Rock And A Hard Place - Remastered']),\n", " ('long distance call',\n", " ['Long Distance Call - Live', 'Long Distance Call - Live']),\n", " ('start me up',\n", " ['Start Me Up - Live',\n", " 'Start Me Up - Live',\n", " 'Start Me Up - Live',\n", " 'Start Me Up - Live At The Beacon Theatre, New York / 2006',\n", " 'Start Me Up - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 'Start Me Up - Live / Remastered 2009',\n", " 'Start Me Up - Live / Remastered 2009',\n", " 'Start Me Up - Remastered',\n", " 'Start Me Up - Live']),\n", " ('let it bleed',\n", " ['Let It Bleed - Live',\n", " 'Let It Bleed - Live',\n", " 'Let It Bleed - Live / Remastered 2009']),\n", " ('fight', ['Fight', 'Fight - Remastered']),\n", " ('route 66',\n", " ['Route 66 - Blues In Rhythm / 1964', 'Route 66 - Live In Ireland / 1965']),\n", " ('one hit to the body',\n", " ['One Hit (To The Body)', 'One Hit (To The Body) - Remastered']),\n", " ('let me go',\n", " ['Let Me Go - Live / Remastered 2009', 'Let Me Go - Remastered']),\n", " ('just my imagination running away with me',\n", " ['Just My Imagination (Running Away With Me) - Remastered',\n", " 'Just My Imagination (Running Away With Me) - Live / Remastered 2009',\n", " 'Just My Imagination (Running Away With Me) - Remastered']),\n", " ('down in the bottom',\n", " ['Down In The Bottom - Live', 'Down In The Bottom - Live']),\n", " ('you got the silver',\n", " ['You Got The Silver - Live At The Beacon Theatre, New York / 2006',\n", " 'You Got The Silver - Live']),\n", " ('i cant get no satisfaction',\n", " [\"(I Can't Get No) Satisfaction - Saturday Club / 1965\",\n", " \"(I Can't Get No) Satisfaction - Live At The Beacon Theatre, New York / 2006\",\n", " \"(I Can't Get No) Satisfaction - Live Licks Tour / Remastered 2009\",\n", " \"(I Can't Get No) Satisfaction - Live / Remastered 2009\",\n", " \"(I Can't Get No) Satisfaction - Live / Remastered 2009\",\n", " \"(I Can't Get No) Satisfaction - Live\"]),\n", " ('sleep tonight', ['Sleep Tonight', 'Sleep Tonight - Remastered']),\n", " ('she loves you',\n", " ['She Loves You - Live / Remastered', 'She Loves You - Mono / Remastered']),\n", " ('clouds in my heart',\n", " ['Clouds In My Heart - Live', 'Clouds In My Heart - Live']),\n", " ('love me do',\n", " ['Love Me Do - Mono / Remastered', 'Love Me Do - Remastered 2009']),\n", " ('its all over now',\n", " [\"It's All Over Now - The Joe Loss Pop Show / 1964\",\n", " \"It's All Over Now - Live\"]),\n", " ('miss you',\n", " ['Miss You - Live',\n", " 'Miss You - Live',\n", " 'Miss You - Live',\n", " 'Miss You - Live',\n", " 'Miss You - Remastered',\n", " 'Miss You - Live',\n", " 'Miss You - Live / Remastered 2009',\n", " 'Miss You - Remastered',\n", " 'Miss You - Live']),\n", " ('mannish boy', ['Mannish Boy - Live', 'Mannish Boy - Live']),\n", " ('its only rock n roll but i like it',\n", " [\"It's Only Rock N Roll (But I Like It) - Live\",\n", " \"It's Only Rock 'n' Roll (But I Like It) - Live Licks Tour - 2009 Re-Mastered Digital Version\",\n", " \"It's Only Rock 'N Roll (But I Like It) - Live\"]),\n", " ('when the whip comes down',\n", " ['When The Whip Comes Down - Live',\n", " 'When The Whip Comes Down - Live',\n", " 'When The Whip Comes Down - Remastered',\n", " 'When The Whip Comes Down - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 'When The Whip Comes Down - Remastered']),\n", " ('monkey man',\n", " ['Monkey Man - Live',\n", " 'Monkey Man - Live Licks Tour - 2009 Re-Mastered Digital Version']),\n", " ('eight days a week',\n", " ['Eight Days A Week - Remastered 2015', 'Eight Days A Week - Remastered']),\n", " ('wild horses',\n", " ['Wild Horses - Live',\n", " 'Wild Horses - Live',\n", " 'Wild Horses - Live',\n", " 'Wild Horses - Live / Remastered 2009']),\n", " ('shes leaving home',\n", " [\"She's Leaving Home - Remastered\",\n", " \"She's Leaving Home - Remix\",\n", " \"She's Leaving Home - Take 1 / Instrumental\"]),\n", " ('everybody needs somebody to love',\n", " ['Everybody Needs Somebody To Love - Top Gear / 1965',\n", " 'Everybody Needs Somebody To Love - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 'Everybody Needs Somebody To Love - Live In Ireland / 1965']),\n", " ('one eyed woman', ['One Eyed Woman - Live', 'One Eyed Woman - Live']),\n", " ('rip this joint',\n", " ['Rip This Joint - Live',\n", " 'Rip This Joint - Live',\n", " 'Rip This Joint - Live',\n", " 'Rip This Joint - Live',\n", " 'Rip This Joint - Live',\n", " 'Rip This Joint - Live']),\n", " ('winning ugly', ['Winning Ugly', 'Winning Ugly - Remastered']),\n", " ('yesterday', ['Yesterday - Remastered 2015', 'Yesterday - Remastered']),\n", " ('street fighting man',\n", " ['Street Fighting Man - Live',\n", " 'Street Fighting Man - Live',\n", " 'Street Fighting Man - Live',\n", " 'Street Fighting Man - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 'Street Fighting Man - Live / Remastered 2009',\n", " 'Street Fighting Man - Live']),\n", " ('a hard days night',\n", " [\"A Hard Day's Night - Live / Remastered\",\n", " \"A Hard Day's Night - Remastered 2015\",\n", " \"A Hard Day's Night - Remastered\"]),\n", " ('within you without you',\n", " ['Within You Without You - Take 1 / Indian Instruments',\n", " 'Within You Without You - Remastered',\n", " 'Within You Without You - Remix']),\n", " ('all down the line',\n", " ['All Down The Line - Live',\n", " 'All Down The Line - Live',\n", " 'All Down The Line - Live',\n", " 'All Down The Line - Live',\n", " 'All Down The Line - Live',\n", " 'All Down The Line - Live At The Beacon Theatre, New York / 2006',\n", " 'All Down The Line - Live']),\n", " ('good morning good morning',\n", " ['Good Morning Good Morning - Take 8',\n", " 'Good Morning Good Morning - Remastered',\n", " 'Good Morning Good Morning - Remix']),\n", " ('you dont have to mean it',\n", " [\"You Don't Have To Mean It - Live Licks Tour - 2009 Re-Mastered Digital Version\",\n", " \"You Don't Have To Mean It - Remastered\"]),\n", " ('love in vain',\n", " ['Love In Vain - Live',\n", " 'Love In Vain - Live',\n", " 'Love In Vain - Live',\n", " 'Love In Vain - Live / Remastered 2009']),\n", " ('you dont have to go',\n", " [\"You Don't Have To Go - Live\", \"You Don't Have To Go - Live\"]),\n", " ('boys', ['Boys - Live / Remastered', 'Boys - Remastered 2009']),\n", " ('bitch', ['Bitch - Live', 'Bitch - Live']),\n", " ('the last time',\n", " ['The Last Time - Top Gear / 1965',\n", " 'The Last Time - Live In Ireland / 1965']),\n", " ('honky tonk women',\n", " ['Honky Tonk Women - Live',\n", " 'Honky Tonk Women - Live',\n", " 'Honky Tonk Women - Live',\n", " 'Honky Tonk Women - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 'Honky Tonk Women - Live',\n", " 'Honky Tonk Women - Live']),\n", " ('twist and shout',\n", " ['Twist And Shout - Live / Remastered',\n", " 'Twist And Shout - Remastered 2009']),\n", " ('hoochie coochie man',\n", " ['Hoochie Coochie Man - Live', 'Hoochie Coochie Man - Live']),\n", " ('introduction', ['Introduction - Live', 'Introduction - Live']),\n", " ('champagne and reefer',\n", " ['Champagne And Reefer - Live', 'Champagne And Reefer - Live']),\n", " ('i go wild',\n", " ['I Go Wild - Live',\n", " 'I Go Wild - Live',\n", " 'I Go Wild - Live',\n", " 'I Go Wild - Remastered',\n", " 'I Go Wild - Live']),\n", " ('help',\n", " ['Help! - Live / Remastered',\n", " 'Help! - Remastered 2015',\n", " 'Help! - Remastered']),\n", " ('she was hot',\n", " ['She Was Hot - Live At The Beacon Theatre, New York / 2006',\n", " 'She Was Hot - Remastered']),\n", " ('sympathy for the devil',\n", " ['Sympathy For The Devil - Live At Beacon Theatre, New York / 2006',\n", " 'Sympathy For The Devil - Live / Remastered 2009',\n", " 'Sympathy For The Devil - Live']),\n", " ('ticket to ride',\n", " ['Ticket To Ride - Live / Remastered',\n", " 'Ticket To Ride - Remastered 2015',\n", " 'Ticket To Ride - Remastered']),\n", " ('im moving on',\n", " [\"I'm Moving On - The Joe Loss Pop Show / 1964\",\n", " \"I'm Moving On - Live In Ireland / 1965\"]),\n", " ('black limousine',\n", " ['Black Limousine - Live', 'Black Limousine - Remastered']),\n", " ('out of control', ['Out Of Control - Remastered', 'Out Of Control - Live']),\n", " ('dizzy miss lizzy',\n", " ['Dizzy Miss Lizzy - Live / Remastered', 'Dizzy Miss Lizzy - Remastered']),\n", " ('you cant do that',\n", " [\"You Can't Do That - Live / Bonus Track\",\n", " \"You Can't Do That - Remastered\"]),\n", " ('with a little help from my friends',\n", " ['With A Little Help From My Friends - Remastered',\n", " 'With A Little Help From My Friends - Remix',\n", " 'With A Little Help From My Friends - Take 1 / False Start And Take 2 / Instrumental']),\n", " ('babys in black',\n", " [\"Baby's In Black - Live / Bonus Track\", \"Baby's In Black - Remastered\"]),\n", " ('i will', ['I Will - Remastered', 'I Will']),\n", " ('strawberry fields forever',\n", " ['Strawberry Fields Forever - Take 7',\n", " 'Strawberry Fields Forever - Take 26',\n", " 'Strawberry Fields Forever - Stereo Mix 2015',\n", " 'Strawberry Fields Forever - Remastered 2009']),\n", " ('eleanor rigby',\n", " ['Eleanor Rigby - Remastered 2015', 'Eleanor Rigby - Remastered']),\n", " ('jumpin jack flash',\n", " [\"Jumpin' Jack Flash - Live\",\n", " \"Jumpin' Jack Flash - Live\",\n", " 'Jumpin’ Jack Flash - Live',\n", " \"Jumpin' Jack Flash - Live\",\n", " 'Jumpin’ Jack Flash - Live',\n", " 'Jumpin’ Jack Flash - Live',\n", " 'Jumpin’ Jack Flash - Live',\n", " \"Jumpin' Jack Flash - Live / Remastered 2009\",\n", " \"Jumpin' Jack Flash - Live\"]),\n", " ('before they make me run',\n", " ['Before They Make Me Run - Remastered',\n", " 'Before They Make Me Run - Remastered',\n", " 'Before They Make Me Run - Live']),\n", " ('hello goodbye',\n", " ['Hello, Goodbye - Remastered 2015', 'Hello, Goodbye - Remastered 2009']),\n", " ('hold back', ['Hold Back', 'Hold Back - Remastered']),\n", " ('let it be', ['Let It Be - Remastered 2015', 'Let It Be - Remastered']),\n", " ('continental drift',\n", " ['Continental Drift - Live / Remastered 2009',\n", " 'Continental Drift - Remastered']),\n", " ('sweet virginia',\n", " ['Sweet Virginia - Live',\n", " 'Sweet Virginia - Live',\n", " 'Sweet Virginia - Live',\n", " 'Sweet Virginia - Live / Remastered 2009']),\n", " ('rock me baby',\n", " ['Rock Me Baby - Live',\n", " 'Rock Me, Baby - Live Licks Tour - 2009 Re-Mastered Digital Version']),\n", " ('getting better',\n", " ['Getting Better - Remastered',\n", " 'Getting Better - Remix',\n", " 'Getting Better - Take 1 / Instrumental And Speech At The End']),\n", " ('penny lane',\n", " ['Penny Lane - Take 6 / Instrumental',\n", " 'Penny Lane - Stereo Mix 2017',\n", " 'Penny Lane - Remastered 2015',\n", " 'Penny Lane - Remastered 2009']),\n", " ('shine a light',\n", " ['Shine A Light - Live',\n", " 'Shine A Light - Live',\n", " 'Shine A Light - Live',\n", " 'Shine A Light - Live',\n", " 'Shine A Light - Live At The Beacon Theatre, New York / 2006',\n", " 'Shine A Light - Live / Remastered 2009',\n", " 'Shine a Light - Live']),\n", " ('like a rolling stone',\n", " ['Like A Rolling Stone - Live',\n", " 'Like A Rolling Stone - Live',\n", " 'Like A Rolling Stone - Live',\n", " 'Like A Rolling Stone - Live',\n", " 'Like a Rolling Stone - Live',\n", " 'Like A Rolling Stone - Live / Remastered 2009']),\n", " ('lucy in the sky with diamonds',\n", " ['Lucy In The Sky With Diamonds - Remastered',\n", " 'Lucy In The Sky With Diamonds - Remix',\n", " 'Lucy In The Sky With Diamonds - Take 1']),\n", " ('worried about you',\n", " ['Worried About You - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 'Worried About You - Remastered']),\n", " ('cant you hear me knocking',\n", " [\"Can't You Hear Me Knocking - Live\",\n", " \"Can't You Hear Me Knocking - Live Licks Tour - 2009 Re-Mastered Digital Version\"]),\n", " ('live with me',\n", " ['Live With Me - Live',\n", " 'Live With Me - Live',\n", " 'Live With Me - Live At The Beacon Theatre, New York / 2006']),\n", " ('too rude', ['Too Rude', 'Too Rude - Remastered']),\n", " ('i wanna be your man',\n", " ['I Wanna Be Your Man - Saturday Club / 1964',\n", " 'I Wanna Be Your Man - Remastered']),\n", " ('key to the highway',\n", " ['Key To The Highway - Piano Instrumental',\n", " 'Key To The Highway - Piano Instrumental/Remastered 2009']),\n", " ('down the road apiece',\n", " ['Down The Road Apiece - Top Gear / 1965',\n", " 'Down The Road Apiece - Live In Ireland / 1965']),\n", " ('everybodys trying to be my baby',\n", " ['Everybody’s Trying To Be My Baby - Live / Bonus Track',\n", " \"Everybody's Trying To Be My Baby - Remastered\"]),\n", " ('something', ['Something - Remastered 2015', 'Something - Remastered']),\n", " ('all my loving',\n", " ['All My Loving - Live / Remastered', 'All My Loving - Remastered'])]" ] }, "execution_count": 60, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ctitles = set([t['ctitle'] for t in tracks.find()])\n", "\n", "[(ct, [t['name'] for t in tracks.find({'ctitle': ct})]) \n", " for ct in ctitles\n", " if tracks.find({'ctitle': ct}).count() > 1\n", "]" ] }, { "cell_type": "code", "execution_count": 61, "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "[('you cant always get what you want',\n", " [('You Can’t Always Get What You Want - Live', 0.409),\n", " (\"You Can't Always Get What You Want - Live / Remastered 2009\", 0.419)]),\n", " ('fixing a hole',\n", " [('Fixing A Hole - Remastered', 0.0783),\n", " ('Fixing A Hole - Remix', 0.0678),\n", " ('Fixing A Hole - Speech And Take 3', 0.0437)]),\n", " ('harlem shuffle',\n", " [('Harlem Shuffle', 0.224), ('Harlem Shuffle - Remastered', 0.319)]),\n", " ('back to zero',\n", " [('Back To Zero', 0.064), ('Back To Zero - Remastered', 0.0767)]),\n", " ('lies', [('Lies - Remastered', 0.524), ('Lies - Remastered', 0.472)]),\n", " ('get back',\n", " [('Get Back - Remastered 2015', 0.0959), ('Get Back - Remastered', 0.61)]),\n", " ('roll over beethoven',\n", " [('Roll Over Beethoven - Saturday Club / 1963', 0.316),\n", " ('Roll Over Beethoven - Live / Remastered', 0.634),\n", " ('Roll Over Beethoven - Remastered', 0.0952)]),\n", " ('dirty work', [('Dirty Work', 0.0878), ('Dirty Work - Remastered', 0.0808)]),\n", " ('all you need is love',\n", " [('All You Need Is Love - Remastered 2015', 0.263),\n", " ('All You Need Is Love - Remastered', 0.286),\n", " ('All You Need Is Love - Remastered 2009', 0.155)]),\n", " ('slipping away',\n", " [('Slipping Away - Live / Remastered 2009', 0.106),\n", " ('Slipping Away - Remastered', 0.421)]),\n", " ('come together',\n", " [('Come Together - Remastered 2015', 0.1),\n", " ('Come Together - Remastered', 0.0926)]),\n", " ('cant buy me love',\n", " [(\"Can't Buy Me Love - Remastered 2015\", 0.325),\n", " (\"Can't Buy Me Love - Remastered\", 0.321)]),\n", " ('sgt peppers lonely hearts club band reprise',\n", " [(\"Sgt. Pepper's Lonely Hearts Club Band (Reprise) - Speech And Take 8\",\n", " 0.148),\n", " (\"Sgt. Pepper's Lonely Hearts Club Band (Reprise) - Remix\", 0.463)]),\n", " ('the long and winding road',\n", " [('The Long And Winding Road - Remastered 2015', 0.0718),\n", " ('The Long And Winding Road - Remastered', 0.0559)]),\n", " ('when im sixtyfour',\n", " [(\"When I'm Sixty-Four - Take 2\", 0.0747),\n", " (\"When I'm Sixty-Four - Remix\", 0.142)]),\n", " ('some girls',\n", " [('Some Girls - Remastered', 0.409), ('Some Girls - Remastered', 0.51)]),\n", " ('shattered',\n", " [('Shattered - Remastered', 0.124), ('Shattered - Remastered', 0.122)]),\n", " ('the spider and the fly',\n", " [('The Spider And The Fly - Yeah Yeah / 1965', 0.0691),\n", " ('The Spider And The Fly - Live / Remastered 2009', 0.352)]),\n", " ('being for the benefit of mr kite',\n", " [('Being For The Benefit Of Mr. Kite! - Remastered', 0.0992),\n", " ('Being For The Benefit Of Mr. Kite! - Remix', 0.105),\n", " ('Being For The Benefit Of Mr. Kite! - Take 4', 0.432)]),\n", " ('had it with you',\n", " [('Had It With You', 0.0655), ('Had It With You - Remastered', 0.0744)]),\n", " ('yellow submarine',\n", " [('Yellow Submarine - Remastered 2015', 0.543),\n", " ('Yellow Submarine - Remastered', 0.528),\n", " ('Yellow Submarine - Remastered', 0.438)]),\n", " ('beast of burden',\n", " [('Beast Of Burden - Remastered', 0.0389),\n", " ('Beast Of Burden - Remastered', 0.0382)]),\n", " ('lovely rita',\n", " [('Lovely Rita - Speech And Take 9', 0.384),\n", " ('Lovely Rita - Remastered', 0.118),\n", " ('Lovely Rita - Remix', 0.0946)]),\n", " ('respectable',\n", " [('Respectable - Remastered', 0.0677),\n", " ('Respectable - Remastered', 0.0677)]),\n", " ('tell me why',\n", " [('Tell Me Why', 0.0512), ('Tell Me Why - Remastered', 0.307)]),\n", " ('little by little',\n", " [('Little By Little - The Joe Loss Pop Show / 1964', 0.531),\n", " ('Little By Little', 0.212)]),\n", " ('got my mojo workin',\n", " [(\"Got My Mojo Workin' - Live\", 0.686),\n", " (\"Got My Mojo Workin' - Live\", 0.659)]),\n", " ('far away eyes',\n", " [('Far Away Eyes - Remastered', 0.258),\n", " ('Far Away Eyes - Remastered', 0.232)]),\n", " ('one hit to the body',\n", " [('One Hit (To The Body)', 0.62),\n", " ('One Hit (To The Body) - Remastered', 0.688)]),\n", " ('just my imagination running away with me',\n", " [('Just My Imagination (Running Away With Me) - Remastered', 0.411),\n", " ('Just My Imagination (Running Away With Me) - Remastered', 0.322)]),\n", " ('i cant get no satisfaction',\n", " [(\"(I Can't Get No) Satisfaction - Saturday Club / 1965\", 0.106),\n", " (\"(I Can't Get No) Satisfaction - Live / Remastered 2009\", 0.511),\n", " (\"(I Can't Get No) Satisfaction - Live\", 0.357)]),\n", " ('sleep tonight',\n", " [('Sleep Tonight', 0.273), ('Sleep Tonight - Remastered', 0.297)]),\n", " ('love me do',\n", " [('Love Me Do - Mono / Remastered', 0.154),\n", " ('Love Me Do - Remastered 2009', 0.227)]),\n", " ('miss you',\n", " [('Miss You - Remastered', 0.364),\n", " ('Miss You - Remastered', 0.236),\n", " ('Miss You - Live', 0.646)]),\n", " ('when the whip comes down',\n", " [('When The Whip Comes Down - Remastered', 0.242),\n", " ('When The Whip Comes Down - Remastered', 0.205)]),\n", " ('eight days a week',\n", " [('Eight Days A Week - Remastered 2015', 0.215),\n", " ('Eight Days A Week - Remastered', 0.119)]),\n", " ('shes leaving home',\n", " [(\"She's Leaving Home - Remastered\", 0.106),\n", " (\"She's Leaving Home - Remix\", 0.117),\n", " (\"She's Leaving Home - Take 1 / Instrumental\", 0.125)]),\n", " ('everybody needs somebody to love',\n", " [('Everybody Needs Somebody To Love - Top Gear / 1965', 0.496),\n", " ('Everybody Needs Somebody To Love - Live In Ireland / 1965', 0.296)]),\n", " ('winning ugly',\n", " [('Winning Ugly', 0.693), ('Winning Ugly - Remastered', 0.689)]),\n", " ('yesterday',\n", " [('Yesterday - Remastered 2015', 0.0968),\n", " ('Yesterday - Remastered', 0.0886)]),\n", " ('a hard days night',\n", " [(\"A Hard Day's Night - Remastered 2015\", 0.0983),\n", " (\"A Hard Day's Night - Remastered\", 0.0996)]),\n", " ('within you without you',\n", " [('Within You Without You - Take 1 / Indian Instruments', 0.134),\n", " ('Within You Without You - Remastered', 0.486),\n", " ('Within You Without You - Remix', 0.289)]),\n", " ('all down the line',\n", " [('All Down The Line - Live', 0.39),\n", " ('All Down The Line - Live At The Beacon Theatre, New York / 2006',\n", " 0.466)]),\n", " ('good morning good morning',\n", " [('Good Morning Good Morning - Take 8', 0.158),\n", " ('Good Morning Good Morning - Remix', 0.5)]),\n", " ('love in vain',\n", " [('Love In Vain - Live', 0.62),\n", " ('Love In Vain - Live / Remastered 2009', 0.158)]),\n", " ('twist and shout',\n", " [('Twist And Shout - Live / Remastered', 0.508),\n", " ('Twist And Shout - Remastered 2009', 0.0414)]),\n", " ('introduction',\n", " [('Introduction - Live', 0.389), ('Introduction - Live', 0.45)]),\n", " ('help',\n", " [('Help! - Remastered 2015', 0.0776), ('Help! - Remastered', 0.0994)]),\n", " ('ticket to ride',\n", " [('Ticket To Ride - Live / Remastered', 0.366),\n", " ('Ticket To Ride - Remastered 2015', 0.259),\n", " ('Ticket To Ride - Remastered', 0.233)]),\n", " ('im moving on',\n", " [(\"I'm Moving On - The Joe Loss Pop Show / 1964\", 0.361),\n", " (\"I'm Moving On - Live In Ireland / 1965\", 0.616)]),\n", " ('dizzy miss lizzy',\n", " [('Dizzy Miss Lizzy - Live / Remastered', 0.496),\n", " ('Dizzy Miss Lizzy - Remastered', 0.0962)]),\n", " ('with a little help from my friends',\n", " [('With A Little Help From My Friends - Remastered', 0.389),\n", " ('With A Little Help From My Friends - Remix', 0.22),\n", " ('With A Little Help From My Friends - Take 1 / False Start And Take 2 / Instrumental',\n", " 0.154)]),\n", " ('i will', [('I Will - Remastered', 0.0822), ('I Will', 0.113)]),\n", " ('strawberry fields forever',\n", " [('Strawberry Fields Forever - Take 7', 0.111),\n", " ('Strawberry Fields Forever - Take 26', 0.335),\n", " ('Strawberry Fields Forever - Stereo Mix 2015', 0.0884),\n", " ('Strawberry Fields Forever - Remastered 2009', 0.0713)]),\n", " ('eleanor rigby',\n", " [('Eleanor Rigby - Remastered 2015', 0.359),\n", " ('Eleanor Rigby - Remastered', 0.305)]),\n", " ('before they make me run',\n", " [('Before They Make Me Run - Remastered', 0.0499),\n", " ('Before They Make Me Run - Remastered', 0.0532)]),\n", " ('hello goodbye',\n", " [('Hello, Goodbye - Remastered 2015', 0.525),\n", " ('Hello, Goodbye - Remastered 2009', 0.414)]),\n", " ('hold back', [('Hold Back', 0.343), ('Hold Back - Remastered', 0.368)]),\n", " ('let it be',\n", " [('Let It Be - Remastered 2015', 0.112), ('Let It Be - Remastered', 0.111)]),\n", " ('getting better',\n", " [('Getting Better - Remastered', 0.0712),\n", " ('Getting Better - Remix', 0.0953),\n", " ('Getting Better - Take 1 / Instrumental And Speech At The End', 0.183)]),\n", " ('penny lane',\n", " [('Penny Lane - Take 6 / Instrumental', 0.118),\n", " ('Penny Lane - Stereo Mix 2017', 0.113),\n", " ('Penny Lane - Remastered 2015', 0.16),\n", " ('Penny Lane - Remastered 2009', 0.136)]),\n", " ('lucy in the sky with diamonds',\n", " [('Lucy In The Sky With Diamonds - Remastered', 0.139),\n", " ('Lucy In The Sky With Diamonds - Remix', 0.156),\n", " ('Lucy In The Sky With Diamonds - Take 1', 0.106)]),\n", " ('worried about you',\n", " [('Worried About You - Live Licks Tour - 2009 Re-Mastered Digital Version',\n", " 0.47),\n", " ('Worried About You - Remastered', 0.0865)]),\n", " ('too rude', [('Too Rude', 0.0245), ('Too Rude - Remastered', 0.0231)]),\n", " ('i wanna be your man',\n", " [('I Wanna Be Your Man - Saturday Club / 1964', 0.0925),\n", " ('I Wanna Be Your Man - Remastered', 0.292)]),\n", " ('key to the highway',\n", " [('Key To The Highway - Piano Instrumental', 0.132),\n", " ('Key To The Highway - Piano Instrumental/Remastered 2009', 0.138)]),\n", " ('everybodys trying to be my baby',\n", " [('Everybody’s Trying To Be My Baby - Live / Bonus Track', 0.448),\n", " (\"Everybody's Trying To Be My Baby - Remastered\", 0.134)]),\n", " ('something',\n", " [('Something - Remastered 2015', 0.144), ('Something - Remastered', 0.138)])]" ] }, "execution_count": 61, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ctitles = set([t['ctitle'] for t in tracks.find()])\n", "\n", "[(ct, [(t['name'], t['liveness']) for t in tracks.find({'ctitle': ct, 'liveness': {'$lt': 0.7}})]) \n", " for ct in ctitles\n", " if tracks.find({'ctitle': ct, 'liveness': {'$lt': 0.7}}).count() > 1\n", "]" ] }, { "cell_type": "code", "execution_count": 62, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[('sweet little sixteen',\n", " 'Sweet Little Sixteen - Live',\n", " 'Sweet Little Sixteen'),\n", " ('sweet little sixteen',\n", " 'Sweet Little Sixteen - Live',\n", " 'Sweet Little Sixteen'),\n", " ('roll over beethoven',\n", " 'Roll Over Beethoven - Saturday Club / 1963',\n", " 'Roll Over Beethoven'),\n", " ('roll over beethoven',\n", " 'Roll Over Beethoven - Saturday Club / 1963',\n", " 'Roll Over Beethoven'),\n", " ('memphis tennessee',\n", " 'Memphis, Tennessee - Saturday Club / 1963',\n", " 'Memphis, Tennessee'),\n", " ('memphis tennessee',\n", " 'Memphis, Tennessee - Saturday Club / 1963',\n", " 'Memphis Tennessee'),\n", " ('i wanna be your man',\n", " 'I Wanna Be Your Man - Saturday Club / 1964',\n", " 'I Wanna Be Your Man'),\n", " ('i wanna be your man',\n", " 'I Wanna Be Your Man - Saturday Club / 1964',\n", " 'I Wanna Be Your Man'),\n", " ('carol', 'Carol - Saturday Club / 1964', 'Carol'),\n", " ('carol', 'Carol - Saturday Club / 1964', 'Carol'),\n", " ('little by little',\n", " 'Little By Little - The Joe Loss Pop Show / 1964',\n", " 'Little by Little'),\n", " ('little by little',\n", " 'Little By Little - The Joe Loss Pop Show / 1964',\n", " 'Little By Little'),\n", " ('wild horses', 'Wild Horses - Live', 'Wild Horses'),\n", " ('wild horses', 'Wild Horses - Live', 'Wild Horses'),\n", " ('wild horses', 'Wild Horses - Live', 'Wild Horses'),\n", " ('wild horses', 'Wild Horses - Live', 'Wild Horses'),\n", " ('wild horses', 'Wild Horses - Live', 'Wild Horses'),\n", " ('wild horses', 'Wild Horses - Live', 'Wild Horses'),\n", " ('twist and shout', 'Twist And Shout - Live / Remastered', 'Twist and Shout'),\n", " ('twist and shout',\n", " 'Twist And Shout - Live / Remastered',\n", " 'Twist and shout - reloved version'),\n", " ('twist and shout',\n", " 'Twist And Shout - Live / Remastered',\n", " 'Twist And Shout - Remastered 2009'),\n", " ('roll over beethoven',\n", " 'Roll Over Beethoven - Live / Remastered',\n", " 'Roll Over Beethoven'),\n", " ('roll over beethoven',\n", " 'Roll Over Beethoven - Live / Remastered',\n", " 'Roll Over Beethoven'),\n", " ('she loves you', 'She Loves You - Live / Remastered', 'She Loves You'),\n", " ('she loves you',\n", " 'She Loves You - Live / Remastered',\n", " 'She loves you - reloved version'),\n", " ('i want to hold your hand',\n", " 'I Want To Hold Your Hand - Live / Bonus Track',\n", " 'I Want to Hold Your Hand'),\n", " ('i want to hold your hand',\n", " 'I Want To Hold Your Hand - Live / Bonus Track',\n", " 'I Want to Hold Your Hand'),\n", " ('love me do', 'Love Me Do - Mono / Remastered', 'Love Me Do'),\n", " ('love me do',\n", " 'Love Me Do - Mono / Remastered',\n", " 'Love Me Do - Spankox Liverpool Remix'),\n", " ('she loves you', 'She Loves You - Mono / Remastered', 'She Loves You'),\n", " ('she loves you',\n", " 'She Loves You - Mono / Remastered',\n", " 'She loves you - reloved version'),\n", " ('i want to hold your hand',\n", " 'I Want To Hold Your Hand - Remastered 2015',\n", " 'I Want to Hold Your Hand'),\n", " ('i want to hold your hand',\n", " 'I Want To Hold Your Hand - Remastered 2015',\n", " 'I Want to Hold Your Hand'),\n", " ('yesterday', 'Yesterday - Remastered 2015', 'Yesterday'),\n", " ('yesterday', 'Yesterday - Remastered 2015', 'Yesterday'),\n", " ('i will', 'I Will - Remastered', 'I Will'),\n", " ('i will', 'I Will - Remastered', 'I Will'),\n", " ('youve got to hide your love away',\n", " \"You've Got To Hide Your Love Away - Remastered\",\n", " \"You've Got to Hide Your Love Away\"),\n", " ('youve got to hide your love away',\n", " \"You've Got To Hide Your Love Away - Remastered\",\n", " \"You've Got To Hide Your Love Away - Take 5, Mono\"),\n", " ('yesterday', 'Yesterday - Remastered', 'Yesterday'),\n", " ('yesterday', 'Yesterday - Remastered', 'Yesterday'),\n", " ('little by little', 'Little By Little', 'Little by Little'),\n", " ('little by little', 'Little By Little', 'Little By Little'),\n", " ('roll over beethoven',\n", " 'Roll Over Beethoven - Remastered',\n", " 'Roll Over Beethoven'),\n", " ('roll over beethoven',\n", " 'Roll Over Beethoven - Remastered',\n", " 'Roll Over Beethoven'),\n", " ('i wanna be your man',\n", " 'I Wanna Be Your Man - Remastered',\n", " 'I Wanna Be Your Man'),\n", " ('i wanna be your man',\n", " 'I Wanna Be Your Man - Remastered',\n", " 'I Wanna Be Your Man'),\n", " ('money thats what i want',\n", " \"Money (That's What I Want) - Remastered\",\n", " \"Money (That's What I Want)\"),\n", " ('money thats what i want',\n", " \"Money (That's What I Want) - Remastered\",\n", " \"Money (That's What I Want) - Remastered 2009\"),\n", " ('please please me',\n", " 'Please Please Me - Remastered 2009',\n", " 'Please Please Me'),\n", " ('please please me',\n", " 'Please Please Me - Remastered 2009',\n", " 'Please, Please Me'),\n", " ('love me do', 'Love Me Do - Remastered 2009', 'Love Me Do'),\n", " ('love me do',\n", " 'Love Me Do - Remastered 2009',\n", " 'Love Me Do - Spankox Liverpool Remix'),\n", " ('ps i love you', 'P.S. I Love You - Remastered 2009', 'P.S. I Love You'),\n", " ('ps i love you',\n", " 'P.S. I Love You - Remastered 2009',\n", " 'P.s. i love you - reloved version'),\n", " ('twist and shout', 'Twist And Shout - Remastered 2009', 'Twist and Shout'),\n", " ('twist and shout',\n", " 'Twist And Shout - Remastered 2009',\n", " 'Twist and shout - reloved version'),\n", " ('twist and shout',\n", " 'Twist And Shout - Remastered 2009',\n", " 'Twist And Shout - Remastered 2009'),\n", " ('i will', 'I Will', 'I Will'),\n", " ('i will', 'I Will', 'I Will'),\n", " ('paranoid android', 'Paranoid Android', 'Paranoid Android'),\n", " ('paranoid android', 'Paranoid Android', 'Paranoid Android'),\n", " ('high and dry', 'High And Dry', 'High and Dry'),\n", " ('high and dry', 'High And Dry', 'High And Dry'),\n", " ('wild horses', 'Wild Horses - Live / Remastered 2009', 'Wild Horses'),\n", " ('wild horses', 'Wild Horses - Live / Remastered 2009', 'Wild Horses'),\n", " ('pain in my heart',\n", " 'Pain In My Heart - Live In Ireland / 1965',\n", " 'Pain In My Heart'),\n", " ('pain in my heart',\n", " 'Pain In My Heart - Live In Ireland / 1965',\n", " 'Pain In My Heart - Live In Ireland / 1965')]" ] }, "execution_count": 62, "metadata": {}, "output_type": "execute_result" } ], "source": [ "[(t['ctitle'], t['name'], g['title']) \n", " for t in tracks.find()\n", " for g in genius_tracks.find({'ctitle': t['ctitle']})\n", " if genius_tracks.find({'ctitle': t['ctitle']}).count() > 1]" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Now to see what the differences are. Find the tracks that are in both collections, and tracks that are in only one." ] }, { "cell_type": "code", "execution_count": 63, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(541, 521, 107)" ] }, "execution_count": 63, "metadata": {}, "output_type": "execute_result" } ], "source": [ "in_both = set((g['ctitle'], g['primary_artist']['name'])\n", " for g in genius_tracks.find({}, ['ctitle', 'primary_artist.name']) \n", " if tracks.find({'ctitle': g['ctitle']}).count())\n", "\n", "genius_only = set((g['ctitle'], g['primary_artist']['name']) \n", " for g in genius_tracks.find({}, ['ctitle', 'primary_artist.name']) \n", " if not tracks.find({'ctitle': g['ctitle']}).count())\n", "\n", "spotify_only = set((s['ctitle'], s['artist_name'])\n", " for s in tracks.find({}, ['ctitle', 'artist_name']) \n", " if not genius_tracks.find({'ctitle': s['ctitle']}).count())\n", "\n", "len(in_both), len(genius_only), len(spotify_only)" ] }, { "cell_type": "code", "execution_count": 64, "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "[('if u cant dance', 'Spice Girls'),\n", " ('champagne and reefer', 'The Rolling Stones'),\n", " ('key to the highway', 'The Rolling Stones'),\n", " ('stop', 'Spice Girls'),\n", " ('right back at ya', 'Spice Girls'),\n", " ('you dont have to go', 'Muddy Waters'),\n", " ('let love lead the way', 'Spice Girls'),\n", " ('county jail', 'Muddy Waters'),\n", " ('trouble no more', 'Muddy Waters'),\n", " ('time goes by', 'Spice Girls'),\n", " ('little ta', 'The Rolling Stones'),\n", " ('pepperland', 'George Martin'),\n", " ('you got me rockin', 'The Rolling Stones'),\n", " ('sea of holes', 'George Martin'),\n", " ('next time you see me', 'The Rolling Stones'),\n", " ('something kinda funny', 'Spice Girls'),\n", " ('untitled', 'Radiohead'),\n", " ('if you wanna have some fun', 'Spice Girls'),\n", " ('wasting my time', 'Spice Girls'),\n", " ('packt like sardines in a crushed tin box', 'Radiohead'),\n", " ('do it', 'Spice Girls'),\n", " ('march of the meanies', 'George Martin'),\n", " ('codex illum sphere', 'Radiohead'),\n", " ('spice up your life', 'Spice Girls'),\n", " ('oxygen', 'Spice Girls'),\n", " ('the lady is a vamp', 'Spice Girls'),\n", " ('last time lover', 'Spice Girls'),\n", " ('sweet little angel', 'Muddy Waters'),\n", " ('instrumental 1', 'The Rolling Stones'),\n", " ('long distance call', 'The Rolling Stones'),\n", " ('who do you think you are', 'Spice Girls'),\n", " ('wannabe', 'Spice Girls'),\n", " ('one eyed woman', 'The Rolling Stones'),\n", " ('love thing', 'Spice Girls'),\n", " ('youre gonna miss me when im gone', 'Muddy Waters'),\n", " ('pepperland laid waste', 'George Martin'),\n", " ('outro', 'Jimi Hendrix'),\n", " ('everybody needs somebody to love finale', 'The Rolling Stones'),\n", " ('sea of monsters', 'George Martin'),\n", " ('2 become 1', 'Spice Girls'),\n", " ('just my imagination', 'The Rolling Stones'),\n", " ('say youll be there', 'Spice Girls'),\n", " ('viva forever', 'Spice Girls'),\n", " ('bullet proof i wish i was', 'Radiohead'),\n", " ('holler', 'Spice Girls'),\n", " ('flip flop and fly', 'Muddy Waters'),\n", " ('naked', 'Spice Girls'),\n", " ('denying', 'Spice Girls'),\n", " ('clouds in my heart', 'The Rolling Stones'),\n", " ('when im sixty four', 'The Beatles'),\n", " ('fannie mae', 'The Rolling Stones'),\n", " ('i will los angeles version', 'Radiohead'),\n", " ('little by little shed', 'Radiohead'),\n", " ('hi heel sneakers', 'The Rolling Stones'),\n", " ('i cant turn you loose', 'Bob Clearmountain'),\n", " ('mama', 'Spice Girls'),\n", " ('bloom jamie xx rework', 'Radiohead'),\n", " ('faraway eyes', 'The Rolling Stones'),\n", " ('saturday night divas', 'Spice Girls'),\n", " ('jumping jack flash', 'The Rolling Stones'),\n", " ('got my mojo workin', 'The Rolling Stones'),\n", " ('never give up on the good times', 'Spice Girls'),\n", " ('get down with me', 'Spice Girls'),\n", " ('revolution 1', 'The Beatles'),\n", " ('instrumental 2', 'The Rolling Stones'),\n", " ('weekend love', 'Spice Girls'),\n", " ('country boy', 'Muddy Waters'),\n", " ('move over', 'Spice Girls'),\n", " ('kansas city heyheyheyhey', 'The Beatles'),\n", " ('dollars cents', 'Radiohead'),\n", " ('a punch up at a wedding', 'Radiohead'),\n", " ('too much', 'Spice Girls'),\n", " ('honky tonk woman', 'The Rolling Stones'),\n", " ('sea of time', 'George Martin')]" ] }, "execution_count": 64, "metadata": {}, "output_type": "execute_result" } ], "source": [ "[s for s in spotify_only \n", " if 'rmx' not in s[0]\n", " if 'remix' not in s[0]\n", " if 'live' not in s[0]\n", " if 'intro' not in s[0]\n", "]" ] }, { "cell_type": "code", "execution_count": 65, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[('sha la la la la', 'The Beatles'),\n", " ('susie q', 'The Rolling Stones'),\n", " ('nobodys child', 'The Beatles'),\n", " ('prodigal son', 'The Rolling Stones'),\n", " ('come and get it', 'The Beatles'),\n", " ('surprise surprise', 'The Rolling Stones'),\n", " ('i promise', 'Radiohead'),\n", " ('keep your hands off my baby', 'The Beatles'),\n", " ('four guys', 'James Richards'),\n", " ('so divine aladdin story', 'The Rolling Stones'),\n", " ('punchdrunk lovesick singalong', 'Radiohead'),\n", " ('im talking about you', 'The Beatles'),\n", " ('bebopalula', 'The Beatles'),\n", " ('gangsters maul', 'The Rolling Stones'),\n", " ('the daily mail', 'Radiohead'),\n", " ('plundered my soul', 'The Rolling Stones'),\n", " ('i need you baby mona', 'The Rolling Stones'),\n", " ('clarabella', 'The Beatles'),\n", " ('everyone needs someone to hate', 'On A Friday'),\n", " ('what is that you say', 'Radiohead'),\n", " ('i call your name', 'The Beatles'),\n", " ('congratulations', 'The Rolling Stones'),\n", " ('tell me', 'The Rolling Stones'),\n", " ('gotta get away', 'The Rolling Stones'),\n", " ('empty heart', 'The Rolling Stones'),\n", " ('wake up in the morning', 'The Rolling Stones'),\n", " ('crying waiting hoping', 'The Beatles'),\n", " ('if you cant rock me', 'The Rolling Stones'),\n", " ('money', 'The Rolling Stones'),\n", " ('the harder they come', 'The Rolling Stones'),\n", " ('sympathy for the devil fatboy slim remix', 'The Rolling Stones'),\n", " ('i just dont understand', 'The Beatles'),\n", " ('still a fool', 'The Rolling Stones'),\n", " ('dandelion', 'The Rolling Stones'),\n", " ('good times', 'The Rolling Stones'),\n", " ('lull', 'Radiohead'),\n", " ('searchin', 'The Beatles'),\n", " ('down home girl', 'The Rolling Stones'),\n", " ('lozenge of love', 'Radiohead'),\n", " ('harlem shuffle ny mix', 'The Rolling Stones'),\n", " ('stop breaking down', 'The Rolling Stones'),\n", " ('i froze up', 'Radiohead'),\n", " ('to know her is to love her', 'The Beatles'),\n", " ('drift away', 'The Rolling Stones'),\n", " ('somewhere', 'Ali brustofski'),\n", " ('if i was a dancer dance part 2', 'The Rolling Stones'),\n", " ('youve got a hold on me', 'The Beatles'),\n", " ('the beatles seventh christmas record', 'The Beatles'),\n", " ('how do you do it', 'The Beatles'),\n", " ('mailman bring me no more blues', 'The Beatles'),\n", " ('corinna', 'The Rolling Stones'),\n", " ('the storm', 'The Rolling Stones'),\n", " ('sweet black angel', 'The Rolling Stones'),\n", " ('mothers little helper', 'The Rolling Stones'),\n", " ('dont lie to me', 'The Rolling Stones'),\n", " ('free as a bird', 'The Beatles'),\n", " ('the lantern', 'The Rolling Stones'),\n", " ('molasses', 'Radiohead'),\n", " ('hello little girl', 'The Beatles'),\n", " ('yove got to hide your love away', 'The Beatles'),\n", " ('she said yeah', 'The Rolling Stones'),\n", " ('the fool on the hill demo', 'The Beatles'),\n", " ('million dollar question', 'Radiohead'),\n", " ('19th nervous breakdown', 'The Rolling Stones'),\n", " ('i forgot to remember to forget', 'The Beatles'),\n", " ('stoned', 'The Rolling Stones'),\n", " ('have you seen your mother baby standing in the shadow',\n", " 'The Rolling Stones'),\n", " ('staircase', 'Radiohead'),\n", " ('cant get next to you', 'The Rolling Stones'),\n", " ('a picture of you', 'The Beatles'),\n", " ('let it loose', 'The Rolling Stones'),\n", " ('memphis', 'The Beatles'),\n", " ('rain fall down william remix', 'The Rolling Stones'),\n", " ('riding on a bus', 'The Beatles'),\n", " ('in spite of all the danger', 'The Beatles'),\n", " ('bad to me', 'The Beatles'),\n", " ('eleanor rigbyjulia transition', 'The Beatles'),\n", " ('goin home', 'The Rolling Stones'),\n", " ('anyway you look at it', 'The Rolling Stones'),\n", " ('try a little harder', 'The Rolling Stones'),\n", " ('suzy parker', 'The Beatles'),\n", " ('we want the stones', 'The Rolling Stones'),\n", " ('cry for a shadow', 'The Beatles'),\n", " ('untogether', 'Radiohead'),\n", " ('sweet georgia brown', 'The Beatles'),\n", " ('cocksucker blues', 'The Rolling Stones'),\n", " ('no expectations', 'The Rolling Stones'),\n", " ('give peace a chance', 'The Beatles'),\n", " ('tell me why ep', 'The Beatles'),\n", " ('hand of fate', 'The Rolling Stones'),\n", " ('swanee river', 'The Beatles'),\n", " ('cuttooth', 'Radiohead'),\n", " ('jazz piano song', 'The Beatles'),\n", " ('wonderwall', 'Radiohead'),\n", " ('that girl belongs to yesterday', 'The Rolling Stones'),\n", " ('this boy', 'The Beatles'),\n", " ('country honk', 'The Rolling Stones'),\n", " ('within you without youtomorrow never knows', 'The Beatles'),\n", " ('we love you', 'The Rolling Stones'),\n", " ('diddley daddy', 'The Rolling Stones'),\n", " ('get off of my cloud', 'The Rolling Stones'),\n", " ('sing this all together', 'The Rolling Stones'),\n", " ('stupid car', 'Radiohead'),\n", " ('sure to fall', 'The Beatles'),\n", " ('wish you were here', 'Radiohead'),\n", " ('meet me in the bottom', 'The Rolling Stones'),\n", " ('harry patch in memory of', 'Radiohead'),\n", " ('lets dance', 'The Beatles'),\n", " ('what is it that you say', 'On A Friday'),\n", " ('set fire to that lot', 'The Beatles'),\n", " ('step inside love', 'The Beatles'),\n", " ('what goes on girl', 'The Beatles'),\n", " ('too much monkey business', 'The Beatles'),\n", " ('john lennon vs bill oreilly', 'Nice Peter'),\n", " ('sing this all together see what happens', 'The Rolling Stones'),\n", " ('somebody else', 'Radiohead'),\n", " ('it should be you', 'The Rolling Stones'),\n", " ('downtown suzie', 'The Rolling Stones'),\n", " ('i want none of this', 'Radiohead'),\n", " ('revolution i', 'The Beatles'),\n", " ('100 years ago', 'The Rolling Stones'),\n", " ('bishops robes', 'Radiohead'),\n", " ('whatd i say', 'The Beatles'),\n", " ('on with the show', 'The Rolling Stones'),\n", " ('talkin about you', 'The Rolling Stones'),\n", " ('nothin shakin', 'The Beatles'),\n", " ('road runner', 'The Rolling Stones'),\n", " ('crinsk dee night', 'The Beatles'),\n", " ('dear doctor', 'The Rolling Stones'),\n", " ('ventilator blues', 'The Rolling Stones'),\n", " ('sure to fall in love with you', 'The Beatles'),\n", " ('short and curlies', 'The Rolling Stones'),\n", " ('tell me baby how many times', 'The Rolling Stones'),\n", " ('james bond theme', 'The Beatles'),\n", " ('someone else', 'On A Friday'),\n", " ('spectre', 'Radiohead'),\n", " ('doncha bother me', 'The Rolling Stones'),\n", " ('three cool cats', 'The Beatles'),\n", " ('bright lights big city', 'The Rolling Stones'),\n", " ('blood red wine', 'The Rolling Stones'),\n", " ('if youve got trouble', 'The Beatles'),\n", " ('how can you be sure', 'Radiohead'),\n", " ('little t a', 'The Rolling Stones'),\n", " ('matchbox', 'The Beatles'),\n", " ('ill wind', 'Radiohead'),\n", " ('what to do', 'The Rolling Stones'),\n", " ('kansas city', 'The Beatles'),\n", " ('dance little sister', 'The Rolling Stones'),\n", " ('being for the benefit of mr kitei want you shes so heavyhelter skelter',\n", " 'The Beatles'),\n", " ('da doo ron ron', 'The Rolling Stones'),\n", " ('lewis mistreated', 'Radiohead'),\n", " ('besame mucho', 'The Beatles'),\n", " ('from fluff to you', 'The Beatles'),\n", " ('big ideas', 'Radiohead'),\n", " ('worrywort', 'Radiohead'),\n", " ('criss cross man', 'The Rolling Stones'),\n", " ('heart of stone', 'The Rolling Stones'),\n", " ('who am i', 'The Rolling Stones'),\n", " ('ruby baby', 'The Beatles'),\n", " ('dream baby', 'The Beatles'),\n", " ('little queenie', 'The Rolling Stones'),\n", " ('why', 'The Beatles'),\n", " ('winter', 'The Rolling Stones'),\n", " ('im coming up', 'On A Friday'),\n", " ('i just want to see his face', 'The Rolling Stones'),\n", " ('linda lu', 'The Rolling Stones'),\n", " ('killer cars', 'Radiohead'),\n", " ('ceremony', 'Radiohead'),\n", " ('the beatles third christmas record', 'The Beatles'),\n", " ('all sold out', 'The Rolling Stones'),\n", " ('a moon shaped pool tracklist album cover', 'Radiohead'),\n", " ('casino boogie', 'The Rolling Stones'),\n", " ('yesterdays papers', 'The Rolling Stones'),\n", " ('im gonna sit right down and cry over you', 'The Beatles'),\n", " ('ill get you', 'The Beatles'),\n", " ('ill wear it proudly', 'Radiohead'),\n", " ('im not signifying', 'The Rolling Stones'),\n", " ('flight 505', 'The Rolling Stones'),\n", " ('one more try', 'The Rolling Stones'),\n", " ('shake your hips', 'The Rolling Stones'),\n", " ('turd on the run', 'The Rolling Stones'),\n", " ('luxury', 'The Rolling Stones'),\n", " ('pay your dues', 'The Rolling Stones'),\n", " ('ya ya', 'The Beatles'),\n", " ('banana co', 'Radiohead'),\n", " ('lucille', 'The Beatles'),\n", " ('the sheik of araby', 'The Beatles'),\n", " ('dear wack', 'The Beatles'),\n", " ('andrews blues', 'The Rolling Stones'),\n", " ('gnik nus', 'The Beatles'),\n", " ('beautiful dreamer', 'The Beatles'),\n", " ('ooh my arms speech', 'The Beatles'),\n", " ('these are my twisted words', 'Radiohead'),\n", " ('nothing touches me', 'Radiohead'),\n", " ('sleepy city', 'The Rolling Stones'),\n", " ('ive been loving you too long', 'The Rolling Stones'),\n", " ('good times bad times', 'The Rolling Stones'),\n", " ('john wesley harding', 'The Rolling Stones'),\n", " ('miss you dr dre remix 2002', 'The Rolling Stones'),\n", " ('everything is turning to gold', 'The Rolling Stones'),\n", " ('pass the wine sophia loren', 'The Rolling Stones'),\n", " ('reelin and rockin', 'The Rolling Stones'),\n", " ('just a rumour', 'The Beatles'),\n", " ('highway child', 'The Rolling Stones'),\n", " ('long long while', 'The Rolling Stones'),\n", " ('miss amanda jones', 'The Rolling Stones'),\n", " ('everybody lies through their teeth', 'On A Friday'),\n", " ('burning bush', 'Radiohead'),\n", " ('im down', 'The Beatles'),\n", " ('teddy boy', 'The Beatles'),\n", " ('i aint superstitious', 'The Rolling Stones'),\n", " ('step inside love los paranoias', 'The Beatles'),\n", " ('fog', 'Radiohead'),\n", " ('the singer not the song', 'The Rolling Stones'),\n", " ('soldier of love', 'The Beatles'),\n", " ('backstreet girl', 'The Rolling Stones'),\n", " ('nothing from nothing', 'The Rolling Stones'),\n", " ('shout', 'The Beatles'),\n", " ('melody', 'The Rolling Stones'),\n", " ('just a rumour speech', 'The Beatles'),\n", " ('under the board walk', 'The Rolling Stones'),\n", " ('doom and gloom', 'The Rolling Stones'),\n", " ('whos been sleeping here', 'The Rolling Stones'),\n", " ('cherry oh baby', 'The Rolling Stones'),\n", " ('some other guy', 'The Beatles'),\n", " ('ride on baby', 'The Rolling Stones'),\n", " ('crazy mama', 'The Rolling Stones'),\n", " ('my bonnie', 'Tony Sheridan'),\n", " ('polyethylene parts 1 2', 'Radiohead'),\n", " ('please go home', 'The Rolling Stones'),\n", " ('coke babies', 'Radiohead'),\n", " ('hey negrita', 'The Rolling Stones'),\n", " ('2000 man', 'The Rolling Stones'),\n", " ('shes a rainbow', 'The Rolling Stones'),\n", " ('sittin on a fence', 'The Rolling Stones'),\n", " ('i am waiting', 'The Rolling Stones'),\n", " ('memo from turner', 'The Rolling Stones'),\n", " ('drive my carthe wordwhat youre doing', 'The Beatles'),\n", " ('the under assistant west coast promotion man', 'The Rolling Stones'),\n", " ('ill be on my way', 'The Beatles'),\n", " ('fingerprint file', 'The Rolling Stones'),\n", " ('happy song', 'On A Friday'),\n", " ('dancing with mr d', 'The Rolling Stones'),\n", " ('union city blue', 'Radiohead'),\n", " ('i want to be loved', 'The Rolling Stones'),\n", " ('how i made my millions', 'Radiohead'),\n", " ('words of love ep', 'The Beatles'),\n", " ('pearly', 'Radiohead'),\n", " ('jump on top of me', 'The Rolling Stones'),\n", " ('2000 light years from home', 'The Rolling Stones'),\n", " ('the rocky road to dublin', 'The Chieftains'),\n", " ('kid a tracklist album cover', 'Radiohead'),\n", " ('if you really want to be my friend', 'The Rolling Stones'),\n", " ('climbing up a bloody great hill', 'Radiohead'),\n", " ('glass onion love remix', 'The Beatles'),\n", " ('open pick', 'Radiohead'),\n", " ('it hurts me too', 'The Rolling Stones'),\n", " ('dancing in the light', 'The Rolling Stones'),\n", " ('from us to you', 'The Beatles'),\n", " ('some things just stick in your mind', 'The Rolling Stones'),\n", " ('i dont know why', 'The Rolling Stones'),\n", " ('real love', 'The Beatles'),\n", " ('my girl', 'The Rolling Stones'),\n", " ('packt like sardines in a crushd tin box', 'Radiohead'),\n", " ('stranger in my arms', 'The Beatles'),\n", " ('the hippy hippy shake', 'The Beatles'),\n", " ('september in the rain', 'The Beatles'),\n", " ('look what youve done', 'The Rolling Stones'),\n", " ('sing a song for you', 'Radiohead'),\n", " ('melatonin', 'Radiohead'),\n", " ('not guilty', 'The Beatles'),\n", " ('fanny mae', 'The Rolling Stones'),\n", " ('its not easy', 'The Rolling Stones'),\n", " ('im gonna drive', 'The Rolling Stones'),\n", " ('inside my head', 'Radiohead'),\n", " ('supercollider', 'Radiohead'),\n", " ('hallelujah i love her so', 'The Beatles'),\n", " ('following the river', 'The Rolling Stones'),\n", " ('out of time', 'The Rolling Stones'),\n", " ('bad boy', 'The Beatles'),\n", " ('saints when the saints go marching in', 'The Beatles'),\n", " ('blue suede shoes', 'The Beatles'),\n", " ('come togetherdear prudence', 'The Beatles'),\n", " ('permanent daylight', 'Radiohead'),\n", " ('one and one is two', 'The Beatles'),\n", " ('love', 'The Beatles'),\n", " ('you know my name look up the number', 'The Beatles'),\n", " ('youll be mine', 'The Beatles'),\n", " ('lonesome tears in my eyes', 'The Beatles'),\n", " ('moonlight bay', 'The Beatles'),\n", " ('its for you', 'The Beatles'),\n", " ('parachute woman', 'The Rolling Stones'),\n", " ('wish i never met you', 'The Rolling Stones'),\n", " ('title 5', 'The Rolling Stones'),\n", " ('paint it blacker', 'Plan B'),\n", " ('aint too proud to beg', 'The Rolling Stones'),\n", " ('india rubber', 'Radiohead'),\n", " ('she smiled sweetly', 'The Rolling Stones'),\n", " ('rain', 'The Beatles'),\n", " ('faithless the wonderboy', 'Radiohead'),\n", " ('love these goon shows', 'The Beatles'),\n", " ('dollars and cents', 'Radiohead'),\n", " ('so how come no one loves me', 'The Beatles'),\n", " ('hide your love', 'The Rolling Stones'),\n", " ('talk show host', 'Radiohead'),\n", " ('a little rhyme', 'The Beatles'),\n", " ('rhinestone cowboy', 'Radiohead'),\n", " ('like dreamers do', 'The Beatles'),\n", " ('i dont know why aka dont know why i love you', 'The Rolling Stones'),\n", " ('the honeymoon song', 'The Beatles'),\n", " ('upside down', 'Radiohead'),\n", " ('summertime blues', 'The Rolling Stones'),\n", " ('lift', 'Radiohead'),\n", " ('jiving sister fanny', 'The Rolling Stones'),\n", " ('the amazing sounds of orgy', 'Radiohead'),\n", " ('moonlight', 'The Beatles'),\n", " ('i get a kick out of you', 'The Rolling Stones'),\n", " ('stray cat blues', 'The Rolling Stones'),\n", " ('sinking ship', 'On A Friday'),\n", " ('give it up', 'On A Friday'),\n", " ('my bonnie', 'The Beatles'),\n", " ('con le mie lacrime', 'The Rolling Stones'),\n", " ('slow down', 'The Beatles'),\n", " ('baby whats wrong', 'The Rolling Stones'),\n", " ('dont ever change', 'The Beatles'),\n", " ('cinnamon girl', 'Radiohead'),\n", " ('can you hear the music', 'The Rolling Stones'),\n", " ('were wastin time', 'The Rolling Stones'),\n", " ('if you let me', 'The Rolling Stones'),\n", " ('play with fire', 'The Rolling Stones'),\n", " ('something happened to me yesterday', 'The Rolling Stones'),\n", " ('goodbye girl', 'The Rolling Stones'),\n", " ('memory motel', 'The Rolling Stones'),\n", " ('thats alright mama', 'The Beatles'),\n", " ('palo alto', 'Radiohead'),\n", " ('grown up wrong', 'The Rolling Stones'),\n", " ('hiheel sneakers', 'The Rolling Stones'),\n", " ('ladies and gentlemen the rolling stones', 'The Rolling Stones'),\n", " ('manowar', 'Radiohead'),\n", " ('fortune teller', 'The Rolling Stones'),\n", " ('nobody does it better', 'Radiohead'),\n", " ('bullet proofi wish i was', 'Radiohead'),\n", " ('you know my name', 'The Beatles'),\n", " ('blackbirdyesterday', 'The Beatles'),\n", " ('junk', 'The Beatles'),\n", " ('my obsession', 'The Rolling Stones'),\n", " ('yes i am', 'Radiohead'),\n", " ('because i know you love me so', 'The Beatles'),\n", " ('another beatles christmas record', 'The Beatles'),\n", " ('through the lonely nights', 'The Rolling Stones'),\n", " ('i cant help it', 'The Rolling Stones'),\n", " ('pop is dead', 'Radiohead'),\n", " ('losing my touch', 'The Rolling Stones'),\n", " ('saints', 'The Beatles'),\n", " ('hitch hike', 'The Rolling Stones'),\n", " ('the happy rishikesh song', 'The Beatles'),\n", " ('all together on the wireless machine', 'The Beatles'),\n", " ('dont look back', 'The Rolling Stones'),\n", " ('fancyman blues', 'The Rolling Stones'),\n", " ('cool calm and collected', 'The Rolling Stones'),\n", " ('i think im going mad', 'The Rolling Stones'),\n", " ('have a banana speech', 'The Beatles'),\n", " ('fasttrack', 'Radiohead'),\n", " ('till the next goodbye', 'The Rolling Stones'),\n", " ('the beatles 1968 christmas record', 'The Beatles'),\n", " ('get back aka no pakistanis', 'The Beatles'),\n", " ('ladytron', 'Radiohead'),\n", " ('jingle bells', 'The Beatles'),\n", " ('hey crawdaddy', 'The Rolling Stones'),\n", " ('complicated', 'The Rolling Stones'),\n", " ('wicked child', 'Radiohead'),\n", " ('in another land', 'The Rolling Stones'),\n", " ('coming down again', 'The Rolling Stones'),\n", " ('on the beach', 'Radiohead'),\n", " ('travellin man', 'The Rolling Stones'),\n", " ('reminiscing', 'The Beatles'),\n", " ('id much rather be with the boys', 'The Rolling Stones'),\n", " ('citadel', 'The Rolling Stones'),\n", " ('hound dog', 'The Rolling Stones'),\n", " ('a reminder', 'Radiohead'),\n", " ('the butcher', 'Radiohead'),\n", " ('you can make it if you try', 'The Rolling Stones'),\n", " ('watching rainbows', 'The Beatles'),\n", " ('child of the moon', 'The Rolling Stones'),\n", " ('think', 'The Rolling Stones'),\n", " ('thank you girl', 'The Beatles'),\n", " ('follow me around', 'Radiohead'),\n", " ('sympathy for the devil the neptunes remix', 'The Rolling Stones'),\n", " ('sad day', 'The Rolling Stones'),\n", " ('the trickster', 'Radiohead'),\n", " ('mr b', 'Radiohead'),\n", " ('johnny b goode', 'The Beatles'),\n", " ('you know what to do', 'The Beatles'),\n", " ('honest i do', 'The Rolling Stones'),\n", " ('the thief', 'Radiohead'),\n", " ('blue turns to grey', 'The Rolling Stones'),\n", " ('love of the loved', 'The Beatles'),\n", " ('revolution', 'The Beatles'),\n", " ('shake rattle and roll', 'The Beatles'),\n", " ('ooh my soul', 'The Beatles'),\n", " ('glad all over', 'The Beatles'),\n", " ('what a shame', 'The Rolling Stones'),\n", " ('salt of the earth', 'The Rolling Stones'),\n", " ('keep strong', 'On A Friday'),\n", " ('sour milk sea', 'The Beatles'),\n", " ('doo doo doo doo doo heartbreaker', 'The Rolling Stones'),\n", " ('cut a hole', 'Radiohead'),\n", " ('stupid girl', 'The Rolling Stones'),\n", " ('hot stuff', 'The Rolling Stones'),\n", " ('i got to find my baby', 'The Beatles'),\n", " ('when the saints go marchin in', 'The Beatles'),\n", " ('poison ivy', 'The Rolling Stones'),\n", " ('soul survivor', 'The Rolling Stones'),\n", " ('each and every day of the year', 'The Rolling Stones'),\n", " ('torn and frayed', 'The Rolling Stones'),\n", " ('i got a woman', 'The Beatles'),\n", " ('pantomime everywhere its christmas', 'The Beatles'),\n", " ('if you love me baby', 'The Beatles'),\n", " ('falling in love again', 'The Beatles'),\n", " ('blue moon of kentucky', 'The Beatles'),\n", " ('cook cook blues', 'The Rolling Stones'),\n", " ('big boots', 'Radiohead'),\n", " ('missing links bootleg', 'Plan B'),\n", " ('ooh my arms', 'The Beatles'),\n", " ('eds scary song', 'Radiohead'),\n", " ('crushed pearl', 'The Rolling Stones'),\n", " ('you never wash up after yourself', 'Radiohead'),\n", " ('transatlantic drawl', 'Radiohead'),\n", " ('thatll be the day', 'The Beatles'),\n", " ('fool to cry', 'The Rolling Stones'),\n", " ('stand by me', 'The Beatles'),\n", " ('family', 'The Rolling Stones'),\n", " ('lady jane', 'The Rolling Stones'),\n", " ('commonwealth', 'The Beatles'),\n", " ('dont stop', 'The Rolling Stones'),\n", " ('hear me lord harrison', 'The Beatles'),\n", " ('im going down', 'The Rolling Stones'),\n", " ('walking through the sleepy city', 'The Rolling Stones'),\n", " ('set fire to that lot speech', 'The Beatles'),\n", " ('sgt peppers lonely hearts club band band documentary multimedia',\n", " 'The Beatles'),\n", " ('looking tired', 'The Rolling Stones'),\n", " ('nothin shakin but the leaves on the trees', 'The Beatles'),\n", " ('dont let me down', 'The Beatles'),\n", " ('that means a lot', 'The Beatles'),\n", " ('beatle greetings', 'The Beatles'),\n", " ('time waits for no one', 'The Rolling Stones'),\n", " ('bitches talkin', 'Frank Ocean'),\n", " ('a shot of rhythm and blues', 'The Beatles'),\n", " ('komm gib mir deine hand', 'The Beatles'),\n", " ('here comes the sunthe inner light transition', 'The Beatles'),\n", " ('across the universe wildlife version', 'The Beatles'),\n", " ('one more shot', 'The Rolling Stones'),\n", " ('final show', 'Beatles Candlestick Park Setlist'),\n", " ('mantua', 'Radiohead'),\n", " ('something with blue jay way transition', 'The Beatles'),\n", " ('petrol gang', 'The Rolling Stones'),\n", " ('dance', 'The Rolling Stones'),\n", " ('keys to your love', 'The Rolling Stones'),\n", " ('india', 'The Beatles'),\n", " ('have a banana', 'The Beatles'),\n", " ('we are wasting time', 'The Rolling Stones'),\n", " ('3', 'The Rolling Stones'),\n", " ('down in eastern australia', 'The Beatles'),\n", " ('yes it is', 'The Beatles'),\n", " ('tell me youre coming back', 'The Rolling Stones'),\n", " ('the inner light', 'The Beatles'),\n", " ('whats the new mary jane', 'The Beatles'),\n", " ('can i get a witness', 'The Rolling Stones'),\n", " ('no reply demo', 'The Beatles'),\n", " ('gomper', 'The Rolling Stones'),\n", " ('pedro the fisherman', 'The Beatles'),\n", " ('lend me your comb', 'The Beatles'),\n", " ('old brown shoe', 'The Beatles'),\n", " ('stealing my heart', 'The Rolling Stones'),\n", " ('young blood', 'The Beatles'),\n", " ('all things must pass', 'The Beatles'),\n", " ('you cant catch me', 'The Rolling Stones'),\n", " ('1822', 'The Beatles'),\n", " ('child of nature', 'The Beatles'),\n", " ('egyptian song', 'Radiohead'),\n", " ('aint she sweet', 'The Beatles'),\n", " ('ready teddy', 'The Beatles'),\n", " ('the beatles christmas record', 'The Beatles'),\n", " ('to be a brilliant light', 'On A Friday'),\n", " ('good time women', 'The Rolling Stones'),\n", " ('jigsaw puzzle', 'The Rolling Stones'),\n", " ('a punchup at a wedding', 'Radiohead'),\n", " ('the new generation', 'Radiohead'),\n", " ('i want to know', 'On A Friday'),\n", " ('meeting in the aisle', 'Radiohead'),\n", " ('jerusalem', 'On A Friday'),\n", " ('phillipa chicken', 'Radiohead'),\n", " ('maquiladora', 'Radiohead'),\n", " ('silver train', 'The Rolling Stones'),\n", " ('christmas time is here again', 'The Beatles'),\n", " ('stuck out all alone', 'The Rolling Stones'),\n", " ('sie liebt dich', 'The Beatles'),\n", " ('leave my kitten alone', 'The Beatles'),\n", " ('heavys pizza', 'Dallas Smart'),\n", " ('whos driving your plane', 'The Rolling Stones')]" ] }, "execution_count": 65, "metadata": {}, "output_type": "execute_result" } ], "source": [ "[g for g in genius_only\n", " if 'take' not in g[0]\n", " if 'medley' not in g[0]\n", " if 'intro' not in g[0]\n", " if 'live' not in g[0]\n", "]" ] }, { "cell_type": "code", "execution_count": 66, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[('revolution i', 'The Beatles'), ('revolution', 'The Beatles')]" ] }, "execution_count": 66, "metadata": {}, "output_type": "execute_result" } ], "source": [ "[t for t in genius_only if 'revolution' in t[0]]" ] }, { "cell_type": "code", "execution_count": 67, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[('revolution 1', 'The Beatles')]" ] }, "execution_count": 67, "metadata": {}, "output_type": "execute_result" } ], "source": [ "[t for t in spotify_only if 'revolution' in t[0]]" ] }, { "cell_type": "code", "execution_count": 68, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "([], [('jumping jack flash', 'The Rolling Stones')])" ] }, "execution_count": 68, "metadata": {}, "output_type": "execute_result" } ], "source": [ "([t for t in in_both if 'jack flash' in t], [t for t in spotify_only if 'jack flash' in t[0]])" ] }, { "cell_type": "code", "execution_count": 69, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "you cant always get what you want [('you cant always get what you want', 'The Rolling Stones'), ('you cant always get what you want', 'The Rolling Stones'), ('you cant always get what you want', 'The Rolling Stones'), ('you cant always get what you want', 'The Rolling Stones')] [('you cant always get what you want', 'The Rolling Stones')]\n", "next time you see me [('next time you see me', 'The Rolling Stones'), ('next time you see me', 'The Rolling Stones')] []\n", "fixing a hole [('fixing a hole', 'The Beatles'), ('fixing a hole', 'The Beatles'), ('fixing a hole', 'The Beatles')] [('fixing a hole', 'The Beatles')]\n", "who do you think you are [('who do you think you are', 'Spice Girls')] []\n", "harlem shuffle [('harlem shuffle', 'The Rolling Stones'), ('harlem shuffle', 'The Rolling Stones')] [('harlem shuffle', 'The Rolling Stones')]\n", "back to zero [('back to zero', 'The Rolling Stones'), ('back to zero', 'The Rolling Stones')] [('back to zero', 'The Rolling Stones')]\n", "sgt peppers lonely hearts club band [('sgt peppers lonely hearts club band', 'The Beatles'), ('sgt peppers lonely hearts club band', 'The Beatles'), ('sgt peppers lonely hearts club band', 'The Beatles'), ('sgt peppers lonely hearts club band', 'The Beatles')] [('sgt peppers lonely hearts club band', 'The Beatles')]\n", "im free [('im free', 'The Rolling Stones'), ('im free', 'The Rolling Stones')] [('im free', 'The Rolling Stones')]\n", "i will los angeles version [('i will los angeles version', 'Radiohead')] []\n", "oxygen [('oxygen', 'Spice Girls')] []\n", "lies [('lies', 'The Rolling Stones'), ('lies', 'The Rolling Stones')] [('lies', 'The Rolling Stones')]\n", "happy [('happy', 'The Rolling Stones'), ('happy', 'The Rolling Stones'), ('happy', 'The Rolling Stones')] [('happy', 'The Rolling Stones')]\n", "memphis tennessee [('memphis tennessee', 'The Rolling Stones')] [('memphis tennessee', 'The Beatles'), ('memphis tennessee', 'The Rolling Stones')]\n", "get back [('get back', 'Billy Preston'), ('get back', 'The Beatles')] [('get back', 'The Beatles')]\n", "little by little shed [('little by little shed', 'Radiohead')] []\n", "gimme shelter [('gimme shelter', 'The Rolling Stones'), ('gimme shelter', 'The Rolling Stones'), ('gimme shelter', 'The Rolling Stones'), ('gimme shelter', 'The Rolling Stones'), ('gimme shelter', 'The Rolling Stones'), ('gimme shelter', 'The Rolling Stones')] [('gimme shelter', 'The Rolling Stones')]\n", "flip flop and fly [('flip flop and fly', 'Muddy Waters')] []\n", "money thats what i want [('money thats what i want', 'The Beatles')] [('money thats what i want', 'The Beatles'), ('money thats what i want', 'The Beatles')]\n", "i want to hold your hand [('i want to hold your hand', 'The Beatles'), ('i want to hold your hand', 'The Beatles')] [('i want to hold your hand', 'The Beatles'), ('i want to hold your hand', 'Ali brustofski')]\n", "roll over beethoven [('roll over beethoven', 'The Rolling Stones'), ('roll over beethoven', 'The Beatles'), ('roll over beethoven', 'The Beatles')] [('roll over beethoven', 'The Beatles'), ('roll over beethoven', 'The Rolling Stones')]\n", "2 2 5 live at earls court [('2 2 5 live at earls court', 'Radiohead')] []\n", "good evening mrs magpie modeselektor rmx [('good evening mrs magpie modeselektor rmx', 'Radiohead')] []\n", "the national anthem live in france [('the national anthem live in france', 'Radiohead')] []\n", "cant be seen [('cant be seen', 'The Rolling Stones'), ('cant be seen', 'The Rolling Stones')] [('cant be seen', 'The Rolling Stones')]\n", "idioteque live in oxford [('idioteque live in oxford', 'Radiohead')] []\n", "pepperland laid waste [('pepperland laid waste', 'George Martin')] []\n", "midnight rambler [('midnight rambler', 'The Rolling Stones'), ('midnight rambler', 'The Rolling Stones'), ('midnight rambler', 'The Rolling Stones'), ('midnight rambler', 'The Rolling Stones'), ('midnight rambler', 'The Rolling Stones'), ('midnight rambler', 'The Rolling Stones')] [('midnight rambler', 'The Rolling Stones')]\n", "like spinning plates live [('like spinning plates live', 'Radiohead')] []\n", "separator four tet rmx [('separator four tet rmx', 'Radiohead')] []\n", "dirty work [('dirty work', 'The Rolling Stones'), ('dirty work', 'The Rolling Stones')] [('dirty work', 'The Rolling Stones')]\n", "all you need is love [('all you need is love', 'The Beatles'), ('all you need is love', 'The Beatles'), ('all you need is love', 'The Beatles')] [('all you need is love', 'The Beatles')]\n", "get down with me [('get down with me', 'Spice Girls')] []\n", "revolution 1 [('revolution 1', 'The Beatles')] []\n", "not fade away [('not fade away', 'The Rolling Stones'), ('not fade away', 'The Rolling Stones'), ('not fade away', 'The Rolling Stones'), ('not fade away', 'The Rolling Stones')] [('not fade away', 'The Rolling Stones')]\n", "martin scorsese intro [('martin scorsese intro', 'The Rolling Stones')] []\n", "slipping away [('slipping away', 'The Rolling Stones'), ('slipping away', 'The Rolling Stones'), ('slipping away', 'The Rolling Stones'), ('slipping away', 'The Rolling Stones'), ('slipping away', 'The Rolling Stones')] [('slipping away', 'The Rolling Stones')]\n", "faraway eyes [('faraway eyes', 'The Rolling Stones'), ('faraway eyes', 'The Rolling Stones'), ('faraway eyes', 'The Rolling Stones'), ('faraway eyes', 'The Rolling Stones')] []\n", "march of the meanies [('march of the meanies', 'George Martin')] []\n", "angie [('angie', 'The Rolling Stones'), ('angie', 'The Rolling Stones'), ('angie', 'The Rolling Stones'), ('angie', 'The Rolling Stones'), ('angie', 'The Rolling Stones')] [('angie', 'The Rolling Stones')]\n", "stop [('stop', 'Spice Girls')] []\n", "too much [('too much', 'Spice Girls')] []\n", "dollars cents [('dollars cents', 'Radiohead')] []\n", "come together [('come together', 'The Beatles'), ('come together', 'The Beatles')] [('come together', 'The Beatles')]\n", "cant buy me love [('cant buy me love', 'The Beatles'), ('cant buy me love', 'The Beatles'), ('cant buy me love', 'The Beatles')] [('cant buy me love', 'The Beatles')]\n", "naked [('naked', 'Spice Girls')] []\n", "brown sugar [('brown sugar', 'The Rolling Stones'), ('brown sugar', 'Bob Clearmountain'), ('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones'), ('brown sugar', 'The Rolling Stones')] [('brown sugar', 'The Rolling Stones')]\n", "baby please dont go [('baby please dont go', 'The Rolling Stones'), ('baby please dont go', 'The Rolling Stones'), ('baby please dont go', 'The Rolling Stones')] [('baby please dont go', 'The Rolling Stones')]\n", "sgt peppers lonely hearts club band reprise [('sgt peppers lonely hearts club band reprise', 'The Beatles'), ('sgt peppers lonely hearts club band reprise', 'The Beatles')] [('sgt peppers lonely hearts club band reprise', 'The Beatles')]\n", "the long and winding road [('the long and winding road', 'The Beatles'), ('the long and winding road', 'The Beatles')] [('the long and winding road', 'The Beatles')]\n", "when im sixtyfour [('when im sixtyfour', 'The Beatles'), ('when im sixtyfour', 'The Beatles')] [('when im sixtyfour', 'The Beatles')]\n", "charlies intro to little red rooster [('charlies intro to little red rooster', 'The Rolling Stones')] []\n", "high and dry [('high and dry', 'Radiohead')] [('high and dry', 'Radiohead'), ('high and dry', 'The Rolling Stones')]\n", "bloom mark pritchard rmx [('bloom mark pritchard rmx', 'Radiohead')] []\n", "some girls [('some girls', 'The Rolling Stones'), ('some girls', 'The Rolling Stones'), ('some girls', 'The Rolling Stones')] [('some girls', 'The Rolling Stones')]\n", "lotus flower jacques greene rmx [('lotus flower jacques greene rmx', 'Radiohead')] []\n", "connection [('connection', 'The Rolling Stones'), ('connection', 'The Rolling Stones'), ('connection', 'The Rolling Stones'), ('connection', 'The Rolling Stones')] [('connection', 'The Rolling Stones')]\n", "shattered [('shattered', 'The Rolling Stones'), ('shattered', 'The Rolling Stones'), ('shattered', 'The Rolling Stones'), ('shattered', 'The Rolling Stones'), ('shattered', 'The Rolling Stones'), ('shattered', 'The Rolling Stones')] [('shattered', 'The Rolling Stones')]\n", "let love lead the way [('let love lead the way', 'Spice Girls')] []\n", "jumping jack flash [('jumping jack flash', 'The Rolling Stones')] []\n", "the worst [('the worst', 'The Rolling Stones'), ('the worst', 'The Rolling Stones')] [('the worst', 'The Rolling Stones')]\n", "little red rooster [('little red rooster', 'The Rolling Stones'), ('little red rooster', 'The Rolling Stones')] [('little red rooster', 'The Rolling Stones')]\n", "sad sad sad [('sad sad sad', 'The Rolling Stones'), ('sad sad sad', 'The Rolling Stones')] [('sad sad sad', 'The Rolling Stones')]\n", "holler [('holler', 'Spice Girls')] []\n", "the spider and the fly [('the spider and the fly', 'The Rolling Stones'), ('the spider and the fly', 'The Rolling Stones'), ('the spider and the fly', 'The Rolling Stones')] [('the spider and the fly', 'The Rolling Stones')]\n", "a day in the life [('a day in the life', 'The Beatles'), ('a day in the life', 'The Beatles'), ('a day in the life', 'The Beatles')] [('a day in the life', 'The Beatles')]\n", "mama [('mama', 'Spice Girls')] []\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "you got me rockin [('you got me rockin', 'The Rolling Stones'), ('you got me rockin', 'The Rolling Stones')] []\n", "sea of monsters [('sea of monsters', 'George Martin')] []\n", "things we said today [('things we said today', 'The Beatles'), ('things we said today', 'The Beatles')] [('things we said today', 'The Beatles')]\n", "pepperland [('pepperland', 'George Martin')] []\n", "being for the benefit of mr kite [('being for the benefit of mr kite', 'The Beatles'), ('being for the benefit of mr kite', 'The Beatles'), ('being for the benefit of mr kite', 'The Beatles')] [('being for the benefit of mr kite', 'The Beatles')]\n", "had it with you [('had it with you', 'The Rolling Stones'), ('had it with you', 'The Rolling Stones')] [('had it with you', 'The Rolling Stones')]\n", "true love waits live in oslo [('true love waits live in oslo', 'Radiohead')] []\n", "bloom jamie xx rework [('bloom jamie xx rework', 'Radiohead')] []\n", "sweet little angel [('sweet little angel', 'Muddy Waters')] []\n", "separator anstam rmx [('separator anstam rmx', 'Radiohead')] []\n", "time is on my side [('time is on my side', 'The Rolling Stones'), ('time is on my side', 'The Rolling Stones')] [('time is on my side', 'The Rolling Stones')]\n", "tumbling dice [('tumbling dice', 'The Rolling Stones'), ('tumbling dice', 'The Rolling Stones'), ('tumbling dice', 'The Rolling Stones'), ('tumbling dice', 'The Rolling Stones'), ('tumbling dice', 'The Rolling Stones'), ('tumbling dice', 'The Rolling Stones')] [('tumbling dice', 'The Rolling Stones')]\n", "yellow submarine [('yellow submarine', 'The Beatles'), ('yellow submarine', 'The Beatles'), ('yellow submarine', 'The Beatles')] [('yellow submarine', 'The Beatles')]\n", "beast of burden [('beast of burden', 'The Rolling Stones'), ('beast of burden', 'The Rolling Stones'), ('beast of burden', 'The Rolling Stones'), ('beast of burden', 'The Rolling Stones'), ('beast of burden', 'The Rolling Stones'), ('beast of burden', 'The Rolling Stones')] [('beast of burden', 'The Rolling Stones')]\n", "honky tonk woman [('honky tonk woman', 'The Rolling Stones')] []\n", "lovely rita [('lovely rita', 'The Beatles'), ('lovely rita', 'The Beatles'), ('lovely rita', 'The Beatles')] [('lovely rita', 'The Beatles')]\n", "neighbours [('neighbours', 'The Rolling Stones'), ('neighbours', 'Bob Clearmountain')] [('neighbours', 'The Rolling Stones')]\n", "dead flowers [('dead flowers', 'Bob Clearmountain'), ('dead flowers', 'The Rolling Stones'), ('dead flowers', 'The Rolling Stones'), ('dead flowers', 'The Rolling Stones'), ('dead flowers', 'The Rolling Stones'), ('dead flowers', 'The Rolling Stones'), ('dead flowers', 'The Rolling Stones')] [('dead flowers', 'The Rolling Stones')]\n", "paint it black [('paint it black', 'The Rolling Stones'), ('paint it black', 'The Rolling Stones'), ('paint it black', 'The Rolling Stones'), ('paint it black', 'The Rolling Stones')] [('paint it black', 'The Rolling Stones')]\n", "bloom harmonic 313 rmx [('bloom harmonic 313 rmx', 'Radiohead')] []\n", "respectable [('respectable', 'The Rolling Stones'), ('respectable', 'The Rolling Stones'), ('respectable', 'The Rolling Stones'), ('respectable', 'The Rolling Stones')] [('respectable', 'The Rolling Stones')]\n", "just my imagination [('just my imagination', 'The Rolling Stones'), ('just my imagination', 'The Rolling Stones')] []\n", "tell me why [('tell me why', 'Spice Girls'), ('tell me why', 'The Beatles')] [('tell me why', 'The Beatles')]\n", "2 become 1 [('2 become 1', 'Spice Girls')] []\n", "little by little [('little by little', 'The Rolling Stones'), ('little by little', 'Radiohead')] [('little by little', 'Radiohead'), ('little by little', 'The Rolling Stones')]\n", "got my mojo workin [('got my mojo workin', 'The Rolling Stones'), ('got my mojo workin', 'The Rolling Stones')] []\n", "little ta [('little ta', 'The Rolling Stones'), ('little ta', 'The Rolling Stones')] []\n", "bloom blawan rmx [('bloom blawan rmx', 'Radiohead')] []\n", "far away eyes [('far away eyes', 'The Rolling Stones'), ('far away eyes', 'The Rolling Stones'), ('far away eyes', 'The Rolling Stones')] [('far away eyes', 'The Rolling Stones')]\n", "ps i love you [('ps i love you', 'The Beatles')] [('ps i love you', 'The Beatles'), ('ps i love you', 'The Beatles')]\n", "rock and a hard place [('rock and a hard place', 'The Rolling Stones'), ('rock and a hard place', 'The Rolling Stones')] [('rock and a hard place', 'The Rolling Stones')]\n", "long distance call [('long distance call', 'The Rolling Stones'), ('long distance call', 'The Rolling Stones')] []\n", "start me up [('start me up', 'Bob Clearmountain'), ('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones'), ('start me up', 'The Rolling Stones')] [('start me up', 'The Rolling Stones')]\n", "let it bleed [('let it bleed', 'The Rolling Stones'), ('let it bleed', 'The Rolling Stones'), ('let it bleed', 'The Rolling Stones')] [('let it bleed', 'The Rolling Stones')]\n", "county jail [('county jail', 'Muddy Waters')] []\n", "fight [('fight', 'The Rolling Stones'), ('fight', 'The Rolling Stones')] [('fight', 'The Rolling Stones')]\n", "sea of time [('sea of time', 'George Martin')] []\n", "route 66 [('route 66', 'The Rolling Stones'), ('route 66', 'The Rolling Stones')] [('route 66', 'The Rolling Stones')]\n", "morning bell live in oxford [('morning bell live in oxford', 'Radiohead')] []\n", "one hit to the body [('one hit to the body', 'The Rolling Stones'), ('one hit to the body', 'The Rolling Stones')] [('one hit to the body', 'The Rolling Stones')]\n", "let me go [('let me go', 'The Rolling Stones'), ('let me go', 'The Rolling Stones')] [('let me go', 'The Rolling Stones')]\n", "pain in my heart [('pain in my heart', 'The Rolling Stones')] [('pain in my heart', 'The Rolling Stones'), ('pain in my heart', 'The Rolling Stones')]\n", "please please me [('please please me', 'The Beatles')] [('please please me', 'The Beatles'), ('please please me', 'The Rolling Stones')]\n", "move over [('move over', 'Spice Girls')] []\n", "skttrbrain four tet remix [('skttrbrain four tet remix', 'Radiohead')] []\n", "just my imagination running away with me [('just my imagination running away with me', 'The Rolling Stones'), ('just my imagination running away with me', 'The Rolling Stones'), ('just my imagination running away with me', 'The Rolling Stones')] [('just my imagination running away with me', 'The Rolling Stones')]\n", "down in the bottom [('down in the bottom', 'The Rolling Stones'), ('down in the bottom', 'The Rolling Stones')] [('down in the bottom', 'The Rolling Stones')]\n", "you got the silver [('you got the silver', 'The Rolling Stones'), ('you got the silver', 'The Rolling Stones')] [('you got the silver', 'The Rolling Stones')]\n", "i cant get no satisfaction [('i cant get no satisfaction', 'The Rolling Stones'), ('i cant get no satisfaction', 'The Rolling Stones'), ('i cant get no satisfaction', 'The Rolling Stones'), ('i cant get no satisfaction', 'The Rolling Stones'), ('i cant get no satisfaction', 'The Rolling Stones'), ('i cant get no satisfaction', 'The Rolling Stones')] [('i cant get no satisfaction', 'The Rolling Stones')]\n", "sleep tonight [('sleep tonight', 'The Rolling Stones'), ('sleep tonight', 'The Rolling Stones')] [('sleep tonight', 'The Rolling Stones')]\n", "outro [('outro', 'Jimi Hendrix')] []\n", "she loves you [('she loves you', 'The Beatles'), ('she loves you', 'The Beatles')] [('she loves you', 'The Beatles'), ('she loves you', 'The Beatles')]\n", "clouds in my heart [('clouds in my heart', 'The Rolling Stones'), ('clouds in my heart', 'The Rolling Stones')] []\n", "feral lone rmx [('feral lone rmx', 'Radiohead')] []\n", "love me do [('love me do', 'The Beatles'), ('love me do', 'The Beatles')] [('love me do', 'The Beatles'), ('love me do', 'The Beatles')]\n", "its all over now [('its all over now', 'The Rolling Stones'), ('its all over now', 'The Rolling Stones')] [('its all over now', 'The Rolling Stones')]\n", "miss you [('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones'), ('miss you', 'The Rolling Stones')] [('miss you', 'The Rolling Stones')]\n", "mannish boy [('mannish boy', 'The Rolling Stones'), ('mannish boy', 'The Rolling Stones')] [('mannish boy', 'The Rolling Stones')]\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "its only rock n roll but i like it [('its only rock n roll but i like it', 'The Rolling Stones'), ('its only rock n roll but i like it', 'The Rolling Stones'), ('its only rock n roll but i like it', 'The Rolling Stones')] [('its only rock n roll but i like it', 'The Rolling Stones')]\n", "bloom objekt rmx [('bloom objekt rmx', 'Radiohead')] []\n", "untitled [('untitled', 'Radiohead')] []\n", "sea of holes [('sea of holes', 'George Martin')] []\n", "when the whip comes down [('when the whip comes down', 'Bob Clearmountain'), ('when the whip comes down', 'The Rolling Stones'), ('when the whip comes down', 'The Rolling Stones'), ('when the whip comes down', 'The Rolling Stones'), ('when the whip comes down', 'The Rolling Stones')] [('when the whip comes down', 'The Rolling Stones')]\n", "codex illum sphere [('codex illum sphere', 'Radiohead')] []\n", "monkey man [('monkey man', 'The Rolling Stones'), ('monkey man', 'The Rolling Stones')] [('monkey man', 'The Rolling Stones')]\n", "give up the ghost thriller houseghost remix [('give up the ghost thriller houseghost remix', 'Radiohead')] []\n", "eight days a week [('eight days a week', 'The Beatles'), ('eight days a week', 'The Beatles')] [('eight days a week', 'The Beatles')]\n", "kansas city heyheyheyhey [('kansas city heyheyheyhey', 'The Beatles')] []\n", "something kinda funny [('something kinda funny', 'Spice Girls')] []\n", "sweet little sixteen [('sweet little sixteen', 'The Rolling Stones')] [('sweet little sixteen', 'The Beatles'), ('sweet little sixteen', 'The Rolling Stones')]\n", "wild horses [('wild horses', 'Bob Clearmountain'), ('wild horses', 'The Rolling Stones'), ('wild horses', 'The Rolling Stones'), ('wild horses', 'The Rolling Stones')] [('wild horses', 'Plan B'), ('wild horses', 'The Rolling Stones')]\n", "everybody needs somebody to love finale [('everybody needs somebody to love finale', 'The Rolling Stones')] []\n", "shes leaving home [('shes leaving home', 'The Beatles'), ('shes leaving home', 'The Beatles'), ('shes leaving home', 'The Beatles')] [('shes leaving home', 'The Beatles')]\n", "everybody needs somebody to love [('everybody needs somebody to love', 'The Rolling Stones'), ('everybody needs somebody to love', 'Solomon Burke'), ('everybody needs somebody to love', 'The Rolling Stones')] [('everybody needs somebody to love', 'The Rolling Stones')]\n", "i might be wrong live [('i might be wrong live', 'Radiohead')] []\n", "lotus flower sbtrkt rmx [('lotus flower sbtrkt rmx', 'Radiohead')] []\n", "one eyed woman [('one eyed woman', 'The Rolling Stones'), ('one eyed woman', 'The Rolling Stones')] []\n", "rip this joint [('rip this joint', 'The Rolling Stones'), ('rip this joint', 'The Rolling Stones'), ('rip this joint', 'The Rolling Stones'), ('rip this joint', 'The Rolling Stones'), ('rip this joint', 'The Rolling Stones'), ('rip this joint', 'The Rolling Stones')] [('rip this joint', 'The Rolling Stones')]\n", "a punch up at a wedding [('a punch up at a wedding', 'Radiohead')] []\n", "intro take the a train [('intro take the a train', 'Duke Ellington')] []\n", "winning ugly [('winning ugly', 'The Rolling Stones'), ('winning ugly', 'The Rolling Stones')] [('winning ugly', 'The Rolling Stones')]\n", "yesterday [('yesterday', 'The Beatles'), ('yesterday', 'The Beatles')] [('yesterday', 'Yusdrew'), ('yesterday', 'The Beatles')]\n", "fannie mae [('fannie mae', 'The Rolling Stones')] []\n", "street fighting man [('street fighting man', 'The Rolling Stones'), ('street fighting man', 'The Rolling Stones'), ('street fighting man', 'The Rolling Stones'), ('street fighting man', 'The Rolling Stones'), ('street fighting man', 'The Rolling Stones'), ('street fighting man', 'The Rolling Stones')] [('street fighting man', 'The Rolling Stones')]\n", "a hard days night [('a hard days night', 'The Beatles'), ('a hard days night', 'The Beatles'), ('a hard days night', 'The Beatles')] [('a hard days night', 'The Beatles')]\n", "paranoid android [('paranoid android', 'Radiohead')] [('paranoid android', 'Sia'), ('paranoid android', 'Radiohead')]\n", "within you without you [('within you without you', 'The Beatles'), ('within you without you', 'The Beatles'), ('within you without you', 'The Beatles')] [('within you without you', 'The Beatles')]\n", "all down the line [('all down the line', 'Bob Clearmountain'), ('all down the line', 'The Rolling Stones'), ('all down the line', 'The Rolling Stones'), ('all down the line', 'The Rolling Stones'), ('all down the line', 'The Rolling Stones'), ('all down the line', 'The Rolling Stones'), ('all down the line', 'The Rolling Stones')] [('all down the line', 'The Rolling Stones')]\n", "remyxomatosis cristian vogel rmx [('remyxomatosis cristian vogel rmx', 'Radiohead')] []\n", "the lady is a vamp [('the lady is a vamp', 'Spice Girls')] []\n", "good morning good morning [('good morning good morning', 'The Beatles'), ('good morning good morning', 'The Beatles'), ('good morning good morning', 'The Beatles')] [('good morning good morning', 'The Beatles')]\n", "you dont have to mean it [('you dont have to mean it', 'The Rolling Stones'), ('you dont have to mean it', 'The Rolling Stones')] [('you dont have to mean it', 'The Rolling Stones')]\n", "hi heel sneakers [('hi heel sneakers', 'The Rolling Stones')] []\n", "viva forever [('viva forever', 'Spice Girls')] []\n", "time goes by [('time goes by', 'Spice Girls')] []\n", "i cant turn you loose [('i cant turn you loose', 'Bob Clearmountain')] []\n", "love in vain [('love in vain', 'The Rolling Stones'), ('love in vain', 'The Rolling Stones'), ('love in vain', 'The Rolling Stones'), ('love in vain', 'The Rolling Stones')] [('love in vain', 'The Rolling Stones')]\n", "you dont have to go [('you dont have to go', 'Muddy Waters'), ('you dont have to go', 'Muddy Waters')] []\n", "boys [('boys', 'The Beatles'), ('boys', 'The Beatles')] [('boys', 'The Beatles')]\n", "bitch [('bitch', 'Bob Clearmountain'), ('bitch', 'The Rolling Stones')] [('bitch', 'The Rolling Stones')]\n", "the last time [('the last time', 'The Rolling Stones'), ('the last time', 'The Rolling Stones')] [('the last time', 'The Rolling Stones')]\n", "when im sixty four [('when im sixty four', 'The Beatles')] []\n", "honky tonk women [('honky tonk women', 'The Rolling Stones'), ('honky tonk women', 'The Rolling Stones'), ('honky tonk women', 'The Rolling Stones'), ('honky tonk women', 'Sheryl Crow'), ('honky tonk women', 'The Rolling Stones'), ('honky tonk women', 'The Rolling Stones')] [('honky tonk women', 'The Rolling Stones')]\n", "twist and shout [('twist and shout', 'The Beatles'), ('twist and shout', 'The Beatles')] [('twist and shout', 'The Beatles'), ('twist and shout', 'The Beatles'), ('twist and shout', 'The Beatles')]\n", "bullet proof i wish i was [('bullet proof i wish i was', 'Radiohead')] []\n", "hoochie coochie man [('hoochie coochie man', 'The Rolling Stones'), ('hoochie coochie man', 'The Rolling Stones')] [('hoochie coochie man', 'The Rolling Stones')]\n", "introduction [('introduction', 'Muddy Waters'), ('introduction', 'Muddy Waters')] []\n", "champagne and reefer [('champagne and reefer', 'The Rolling Stones'), ('champagne and reefer', 'The Rolling Stones')] []\n", "i go wild [('i go wild', 'The Rolling Stones'), ('i go wild', 'The Rolling Stones'), ('i go wild', 'The Rolling Stones'), ('i go wild', 'The Rolling Stones'), ('i go wild', 'The Rolling Stones')] [('i go wild', 'The Rolling Stones')]\n", "help [('help', 'The Beatles'), ('help', 'The Beatles'), ('help', 'The Beatles')] [('help', 'The Beatles')]\n", "she was hot [('she was hot', 'The Rolling Stones'), ('she was hot', 'The Rolling Stones')] [('she was hot', 'The Rolling Stones')]\n", "sympathy for the devil [('sympathy for the devil', 'The Rolling Stones'), ('sympathy for the devil', 'The Rolling Stones'), ('sympathy for the devil', 'The Rolling Stones')] [('sympathy for the devil', 'The Rolling Stones')]\n", "ticket to ride [('ticket to ride', 'The Beatles'), ('ticket to ride', 'The Beatles'), ('ticket to ride', 'The Beatles')] [('ticket to ride', 'The Beatles')]\n", "never give up on the good times [('never give up on the good times', 'Spice Girls')] []\n", "wasting my time [('wasting my time', 'Spice Girls')] []\n", "tkol altrice rmx [('tkol altrice rmx', 'Radiohead')] []\n", "band introductions [('band introductions', 'The Rolling Stones')] []\n", "if you wanna have some fun [('if you wanna have some fun', 'Spice Girls')] []\n", "im moving on [('im moving on', 'The Rolling Stones'), ('im moving on', 'The Rolling Stones')] [('im moving on', 'The Rolling Stones')]\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "black limousine [('black limousine', 'The Rolling Stones'), ('black limousine', 'The Rolling Stones')] [('black limousine', 'The Rolling Stones')]\n", "out of control [('out of control', 'The Rolling Stones'), ('out of control', 'The Rolling Stones')] [('out of control', 'The Rolling Stones')]\n", "dizzy miss lizzy [('dizzy miss lizzy', 'The Beatles'), ('dizzy miss lizzy', 'The Beatles')] [('dizzy miss lizzy', 'The Beatles')]\n", "little by little caribou rmx [('little by little caribou rmx', 'Radiohead')] []\n", "dollars cents live [('dollars cents live', 'Radiohead')] []\n", "you cant do that [('you cant do that', 'The Beatles'), ('you cant do that', 'The Beatles')] [('you cant do that', 'The Beatles')]\n", "trouble no more [('trouble no more', 'Muddy Waters')] []\n", "with a little help from my friends [('with a little help from my friends', 'The Beatles'), ('with a little help from my friends', 'The Beatles'), ('with a little help from my friends', 'The Beatles')] [('with a little help from my friends', 'The Beatles')]\n", "last time lover [('last time lover', 'Spice Girls')] []\n", "babys in black [('babys in black', 'The Beatles'), ('babys in black', 'The Beatles')] [('babys in black', 'The Beatles')]\n", "packt like sardines in a crushed tin box [('packt like sardines in a crushed tin box', 'Radiohead')] []\n", "i will [('i will', 'The Beatles'), ('i will', 'Radiohead')] [('i will', 'Radiohead'), ('i will', 'The Beatles')]\n", "saturday night divas [('saturday night divas', 'Spice Girls')] []\n", "strawberry fields forever [('strawberry fields forever', 'The Beatles'), ('strawberry fields forever', 'The Beatles'), ('strawberry fields forever', 'The Beatles'), ('strawberry fields forever', 'The Beatles')] [('strawberry fields forever', 'The Beatles')]\n", "eleanor rigby [('eleanor rigby', 'The Beatles'), ('eleanor rigby', 'The Beatles')] [('eleanor rigby', 'The Beatles')]\n", "love thing [('love thing', 'Spice Girls')] []\n", "jumpin jack flash [('jumpin jack flash', 'The Rolling Stones'), ('jumpin jack flash', 'The Rolling Stones'), ('jumpin jack flash', 'Bob Clearmountain'), ('jumpin jack flash', 'The Rolling Stones'), ('jumpin jack flash', 'The Rolling Stones'), ('jumpin jack flash', 'The Rolling Stones'), ('jumpin jack flash', 'The Rolling Stones'), ('jumpin jack flash', 'The Rolling Stones'), ('jumpin jack flash', 'The Rolling Stones')] [('jumpin jack flash', 'The Rolling Stones')]\n", "say youll be there [('say youll be there', 'Spice Girls')] []\n", "do it [('do it', 'Spice Girls')] []\n", "before they make me run [('before they make me run', 'The Rolling Stones'), ('before they make me run', 'The Rolling Stones'), ('before they make me run', 'The Rolling Stones')] [('before they make me run', 'The Rolling Stones')]\n", "hello goodbye [('hello goodbye', 'The Beatles'), ('hello goodbye', 'The Beatles')] [('hello goodbye', 'The Beatles')]\n", "youre gonna miss me when im gone [('youre gonna miss me when im gone', 'Muddy Waters')] []\n", "carol [('carol', 'The Rolling Stones')] [('carol', 'The Beatles'), ('carol', 'The Rolling Stones')]\n", "hold back [('hold back', 'The Rolling Stones'), ('hold back', 'The Rolling Stones')] [('hold back', 'The Rolling Stones')]\n", "youve got to hide your love away [('youve got to hide your love away', 'The Beatles')] [('youve got to hide your love away', 'The Beatles'), ('youve got to hide your love away', 'The Beatles')]\n", "give up the ghost brokenchord rmx [('give up the ghost brokenchord rmx', 'Radiohead')] []\n", "everything in its right place live in france [('everything in its right place live in france', 'Radiohead')] []\n", "let it be [('let it be', 'The Beatles'), ('let it be', 'The Beatles')] [('let it be', 'The Beatles')]\n", "fog again live [('fog again live', 'Radiohead')] []\n", "right back at ya [('right back at ya', 'Spice Girls')] []\n", "morning mr magpie nathan fake rmx [('morning mr magpie nathan fake rmx', 'Radiohead')] []\n", "continental drift [('continental drift', 'The Rolling Stones'), ('continental drift', 'The Rolling Stones')] [('continental drift', 'The Rolling Stones')]\n", "spice up your life [('spice up your life', 'Spice Girls')] []\n", "instrumental 2 [('instrumental 2', 'The Rolling Stones')] []\n", "instrumental 1 [('instrumental 1', 'The Rolling Stones')] []\n", "sweet virginia [('sweet virginia', 'The Rolling Stones'), ('sweet virginia', 'The Rolling Stones'), ('sweet virginia', 'The Rolling Stones'), ('sweet virginia', 'The Rolling Stones')] [('sweet virginia', 'The Rolling Stones')]\n", "rock me baby [('rock me baby', 'Bob Clearmountain'), ('rock me baby', 'The Rolling Stones')] [('rock me baby', 'The Rolling Stones')]\n", "if u cant dance [('if u cant dance', 'Spice Girls')] []\n", "getting better [('getting better', 'The Beatles'), ('getting better', 'The Beatles'), ('getting better', 'The Beatles')] [('getting better', 'The Beatles')]\n", "penny lane [('penny lane', 'The Beatles'), ('penny lane', 'The Beatles'), ('penny lane', 'The Beatles'), ('penny lane', 'The Beatles')] [('penny lane', 'The Beatles')]\n", "country boy [('country boy', 'Muddy Waters')] []\n", "shine a light [('shine a light', 'The Rolling Stones'), ('shine a light', 'The Rolling Stones'), ('shine a light', 'The Rolling Stones'), ('shine a light', 'The Rolling Stones'), ('shine a light', 'The Rolling Stones'), ('shine a light', 'The Rolling Stones'), ('shine a light', 'The Rolling Stones')] [('shine a light', 'The Rolling Stones')]\n", "like a rolling stone [('like a rolling stone', 'The Rolling Stones'), ('like a rolling stone', 'The Rolling Stones'), ('like a rolling stone', 'The Rolling Stones'), ('like a rolling stone', 'The Rolling Stones'), ('like a rolling stone', 'The Rolling Stones'), ('like a rolling stone', 'The Rolling Stones')] [('like a rolling stone', 'The Rolling Stones')]\n", "lucy in the sky with diamonds [('lucy in the sky with diamonds', 'The Beatles'), ('lucy in the sky with diamonds', 'The Beatles'), ('lucy in the sky with diamonds', 'The Beatles')] [('lucy in the sky with diamonds', 'The Beatles')]\n", "wannabe [('wannabe', 'Spice Girls')] []\n", "worried about you [('worried about you', 'The Rolling Stones'), ('worried about you', 'Bob Clearmountain')] [('worried about you', 'The Rolling Stones')]\n", "cant you hear me knocking [('cant you hear me knocking', 'Bob Clearmountain'), ('cant you hear me knocking', 'The Rolling Stones')] [('cant you hear me knocking', 'The Rolling Stones')]\n", "morning mr magpie pearson sound scavenger rmx [('morning mr magpie pearson sound scavenger rmx', 'Radiohead')] []\n", "live with me [('live with me', 'The Rolling Stones'), ('live with me', 'The Rolling Stones'), ('live with me', 'Christina Aguilera')] [('live with me', 'The Rolling Stones')]\n", "too rude [('too rude', 'The Rolling Stones'), ('too rude', 'The Rolling Stones')] [('too rude', 'The Rolling Stones')]\n", "denying [('denying', 'Spice Girls')] []\n", "i wanna be your man [('i wanna be your man', 'The Rolling Stones'), ('i wanna be your man', 'The Beatles')] [('i wanna be your man', 'The Beatles'), ('i wanna be your man', 'The Rolling Stones')]\n", "key to the highway [('key to the highway', 'The Rolling Stones'), ('key to the highway', 'The Rolling Stones')] []\n", "down the road apiece [('down the road apiece', 'The Rolling Stones'), ('down the road apiece', 'The Rolling Stones')] [('down the road apiece', 'The Rolling Stones')]\n", "everybodys trying to be my baby [('everybodys trying to be my baby', 'The Beatles'), ('everybodys trying to be my baby', 'The Beatles')] [('everybodys trying to be my baby', 'The Beatles')]\n", "weekend love [('weekend love', 'Spice Girls')] []\n", "something [('something', 'The Beatles'), ('something', 'The Beatles')] [('something', 'The Beatles')]\n", "all my loving [('all my loving', 'The Beatles'), ('all my loving', 'The Beatles')] [('all my loving', 'The Beatles')]\n" ] } ], "source": [ "for ct in ctitles:\n", " sts = [(t['ctitle'], t['artist_name']) for t in tracks.find({'ctitle': ct}, ['ctitle', 'artist_name'])]\n", " gts = [(t['ctitle'], t['primary_artist']['name']) for t in genius_tracks.find({'ctitle': ct}, ['ctitle', 'primary_artist.name'])]\n", " if len(sts) != 1 or len(gts) != 1:\n", " print(ct, sts, gts)" ] }, { "cell_type": "code", "execution_count": 70, "metadata": {}, "outputs": [], "source": [ "def levenshtein(s1, s2):\n", " if len(s1) < len(s2):\n", " return levenshtein(s2, s1)\n", "\n", " # len(s1) >= len(s2)\n", " if len(s2) == 0:\n", " return len(s1)\n", "\n", " previous_row = range(len(s2) + 1)\n", " for i, c1 in enumerate(s1):\n", " current_row = [i + 1]\n", " for j, c2 in enumerate(s2):\n", " insertions = previous_row[j + 1] + 1 # j+1 instead of j since previous_row and current_row are one character longer\n", " deletions = current_row[j] + 1 # than s2\n", " substitutions = previous_row[j] + (c1 != c2)\n", " current_row.append(min(insertions, deletions, substitutions))\n", " previous_row = current_row\n", " \n", " return previous_row[-1]" ] }, { "cell_type": "code", "execution_count": 71, "metadata": { "scrolled": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "('if u cant dance', 'Spice Girls') Missing 99999 False\n", "('champagne and reefer', 'The Rolling Stones') ('champagne reefer', 'The Rolling Stones') 4 True\n", "('key to the highway', 'The Rolling Stones') ('thief in the night', 'The Rolling Stones') 10 True\n", "('stop', 'Spice Girls') Missing 99999 False\n", "('right back at ya', 'Spice Girls') Missing 99999 False\n", "('you dont have to go', 'Muddy Waters') Missing 99999 False\n", "('let love lead the way', 'Spice Girls') Missing 99999 False\n", "('county jail', 'Muddy Waters') Missing 99999 False\n", "('trouble no more', 'Muddy Waters') Missing 99999 False\n", "('time goes by', 'Spice Girls') Missing 99999 False\n", "('little ta', 'The Rolling Stones') ('little t a', 'The Rolling Stones') 1 False\n", "('pepperland', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 20 True\n", "('you got me rockin', 'The Rolling Stones') ('you got me rocking', 'The Rolling Stones') 1 True\n", "('sea of holes', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 25 True\n", "('next time you see me', 'The Rolling Stones') ('if you let me', 'The Rolling Stones') 10 False\n", "('something kinda funny', 'Spice Girls') Missing 99999 False\n", "('untitled', 'Radiohead') ('untogether', 'Radiohead') 5 False\n", "('if you wanna have some fun', 'Spice Girls') Missing 99999 False\n", "('wasting my time', 'Spice Girls') Missing 99999 False\n", "('packt like sardines in a crushed tin box', 'Radiohead') ('packt like sardines in a crushd tin box', 'Radiohead') 1 False\n", "('do it', 'Spice Girls') Missing 99999 False\n", "('march of the meanies', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 24 True\n", "('codex illum sphere', 'Radiohead') ('there there', 'Radiohead') 12 True\n", "('spice up your life', 'Spice Girls') Missing 99999 False\n", "('oxygen', 'Spice Girls') Missing 99999 False\n", "('the lady is a vamp', 'Spice Girls') Missing 99999 False\n", "('last time lover', 'Spice Girls') Missing 99999 False\n", "('sweet little angel', 'Muddy Waters') Missing 99999 False\n", "('instrumental 1', 'The Rolling Stones') ('little t a', 'The Rolling Stones') 10 False\n", "('long distance call', 'The Rolling Stones') ('gangsters maul', 'The Rolling Stones') 11 False\n", "('who do you think you are', 'Spice Girls') Missing 99999 False\n", "('wannabe', 'Spice Girls') Missing 99999 False\n", "('one eyed woman', 'The Rolling Stones') ('monkey man', 'The Rolling Stones') 7 True\n", "('love thing', 'Spice Girls') Missing 99999 False\n", "('youre gonna miss me when im gone', 'Muddy Waters') Missing 99999 False\n", "('pepperland laid waste', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 25 True\n", "('outro', 'Jimi Hendrix') Missing 99999 False\n", "('everybody needs somebody to love finale', 'The Rolling Stones') ('everybody needs somebody to love', 'The Rolling Stones') 7 True\n", "('sea of monsters', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 23 True\n", "('2 become 1', 'Spice Girls') Missing 99999 False\n", "('just my imagination', 'The Rolling Stones') ('im moving on', 'The Rolling Stones') 12 True\n", "('say youll be there', 'Spice Girls') Missing 99999 False\n", "('viva forever', 'Spice Girls') Missing 99999 False\n", "('bullet proof i wish i was', 'Radiohead') ('bullet proofi wish i was', 'Radiohead') 1 False\n", "('holler', 'Spice Girls') Missing 99999 False\n", "('flip flop and fly', 'Muddy Waters') Missing 99999 False\n", "('naked', 'Spice Girls') Missing 99999 False\n", "('denying', 'Spice Girls') Missing 99999 False\n", "('clouds in my heart', 'The Rolling Stones') ('pain in my heart', 'The Rolling Stones') 6 True\n", "('when im sixty four', 'The Beatles') ('when im sixtyfour', 'The Beatles') 1 True\n", "('fannie mae', 'The Rolling Stones') ('fanny mae', 'The Rolling Stones') 2 False\n", "('i will los angeles version', 'Radiohead') ('million dollar question', 'Radiohead') 16 False\n", "('little by little shed', 'Radiohead') ('little by little', 'Radiohead') 5 True\n", "('hi heel sneakers', 'The Rolling Stones') ('hiheel sneakers', 'The Rolling Stones') 1 False\n", "('i cant turn you loose', 'Bob Clearmountain') Missing 99999 False\n", "('mama', 'Spice Girls') Missing 99999 False\n", "('faraway eyes', 'The Rolling Stones') ('far away eyes', 'The Rolling Stones') 1 True\n", "('saturday night divas', 'Spice Girls') Missing 99999 False\n", "('jumping jack flash', 'The Rolling Stones') ('jumpin jack flash', 'The Rolling Stones') 1 True\n", "('got my mojo workin', 'The Rolling Stones') ('honky tonk women', 'The Rolling Stones') 10 True\n", "('never give up on the good times', 'Spice Girls') Missing 99999 False\n", "('get down with me', 'Spice Girls') Missing 99999 False\n", "('revolution 1', 'The Beatles') ('revolution i', 'The Beatles') 1 False\n", "('instrumental 2', 'The Rolling Stones') ('little t a', 'The Rolling Stones') 10 False\n", "('weekend love', 'Spice Girls') Missing 99999 False\n", "('country boy', 'Muddy Waters') Missing 99999 False\n", "('move over', 'Spice Girls') Missing 99999 False\n", "('kansas city heyheyheyhey', 'The Beatles') ('medley kansas cityhey hey hey hey', 'The Beatles') 11 False\n", "('dollars cents', 'Radiohead') ('dollars and cents', 'Radiohead') 4 False\n", "('a punch up at a wedding', 'Radiohead') ('a punchup at a wedding', 'Radiohead') 1 False\n", "('too much', 'Spice Girls') Missing 99999 False\n", "('honky tonk woman', 'The Rolling Stones') ('honky tonk women', 'The Rolling Stones') 1 True\n", "('sea of time', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 25 True\n" ] } ], "source": [ "banned_substrings = ['rmx', 'remix', 'rework', 'live', 'intro', 'medley']\n", "genius_and_both = genius_only | in_both\n", "for s in spotify_only:\n", " if not any(banned in s[0] for banned in banned_substrings):\n", " candidates = [g for g in genius_and_both if g[1] == s[1]]\n", " if candidates:\n", " gt = min(candidates, key=lambda g: levenshtein(s[0], g[0]))\n", " d = levenshtein(s[0], gt[0])\n", " else:\n", " gt = 'Missing'\n", " d = 99999\n", " print(s, gt, d, gt in in_both)" ] }, { "cell_type": "code", "execution_count": 73, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "('champagne and reefer', 'The Rolling Stones') [(('champagne reefer', 'The Rolling Stones'), 4)]\n", "('key to the highway', 'The Rolling Stones') []\n", "('little ta', 'The Rolling Stones') [(('little baby', 'The Rolling Stones'), 3), (('little t a', 'The Rolling Stones'), 1), (('little rain', 'The Rolling Stones'), 3), (('title 5', 'The Rolling Stones'), 4)]\n", "('pepperland', 'George Martin') []\n", "('you got me rockin', 'The Rolling Stones') [(('you got me rocking', 'The Rolling Stones'), 1)]\n", "('sea of holes', 'George Martin') []\n", "('next time you see me', 'The Rolling Stones') []\n", "('untitled', 'Radiohead') []\n", "('packt like sardines in a crushed tin box', 'Radiohead') [(('packt like sardines in a crushd tin box', 'Radiohead'), 1)]\n", "('march of the meanies', 'George Martin') []\n", "('codex illum sphere', 'Radiohead') []\n", "('charlies intro to little red rooster', 'The Rolling Stones') []\n", "('instrumental 1', 'The Rolling Stones') []\n", "('long distance call', 'The Rolling Stones') []\n", "('one eyed woman', 'The Rolling Stones') []\n", "('martin scorsese intro', 'The Rolling Stones') []\n", "('band introductions', 'The Rolling Stones') []\n", "('pepperland laid waste', 'George Martin') []\n", "('everybody needs somebody to love finale', 'The Rolling Stones') []\n", "('sea of monsters', 'George Martin') []\n", "('just my imagination', 'The Rolling Stones') []\n", "('bullet proof i wish i was', 'Radiohead') [(('bullet proofi wish i was', 'Radiohead'), 1)]\n", "('clouds in my heart', 'The Rolling Stones') []\n", "('when im sixty four', 'The Beatles') [(('when im sixtyfour', 'The Beatles'), 1)]\n", "('fannie mae', 'The Rolling Stones') [(('fanny mae', 'The Rolling Stones'), 2)]\n", "('i will los angeles version', 'Radiohead') []\n", "('little by little shed', 'Radiohead') []\n", "('hi heel sneakers', 'The Rolling Stones') [(('hiheel sneakers', 'The Rolling Stones'), 1)]\n", "('bloom jamie xx rework', 'Radiohead') []\n", "('faraway eyes', 'The Rolling Stones') [(('far away eyes', 'The Rolling Stones'), 1)]\n", "('jumping jack flash', 'The Rolling Stones') [(('jumpin jack flash', 'The Rolling Stones'), 1)]\n", "('got my mojo workin', 'The Rolling Stones') []\n", "('revolution 1', 'The Beatles') [(('revolution i', 'The Beatles'), 1), (('revolution 9', 'The Beatles'), 1), (('revolution', 'The Beatles'), 2)]\n", "('instrumental 2', 'The Rolling Stones') []\n", "('kansas city heyheyheyhey', 'The Beatles') []\n", "('dollars cents', 'Radiohead') [(('dollars and cents', 'Radiohead'), 4)]\n", "('a punch up at a wedding', 'Radiohead') [(('a punchup at a wedding', 'Radiohead'), 1)]\n", "('honky tonk woman', 'The Rolling Stones') [(('honky tonk women', 'The Rolling Stones'), 1)]\n", "('sea of time', 'George Martin') []\n" ] } ], "source": [ "genius_and_both = genius_only | in_both\n", "for s in spotify_only:\n", " if 'rmx' not in s[0] and 'remix' not in s[0] and 'live' not in s[0]:\n", "# album = \n", " candidates = [g for g in genius_and_both if g[1] == s[1]]\n", " if candidates:\n", " gts = [(g, levenshtein(s[0], g[0])) for g in candidates if levenshtein(s[0], g[0]) < 5]\n", " print(s, gts)" ] }, { "cell_type": "code", "execution_count": 74, "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", "
_idartist_namename
05XfJmldgWzrc1AIdbBaVZnThe BeatlesLive At The Hollywood Bowl
15ju5Ouzan3QwXqQt1TihbhThe Beatles1 (Remastered)
22pCqZLeavM2BMovJXsJEIVThe BeatlesLet It Be (Remastered)
32Pqkn9Dq2DFtdfkKAeqgMdThe BeatlesAbbey Road (Remastered)
447bcKzmKgmMPHXNVOWpLiuThe BeatlesYellow Submarine (Remastered)
503Qh833fEdVT30Pfs93ea6The BeatlesThe Beatles (Remastered)
66P9yO0ukhOx3dvmhGKeYoCThe BeatlesMagical Mystery Tour (Remastered)
71PULmKbHeOqlkIwcDMNwD4The BeatlesSgt. Pepper's Lonely Hearts Club Band (Remaste...
80PYyrqs9NXtxPhf0CZkq2LThe BeatlesRevolver (Remastered)
93OdI6e43crvyAHhaqpxSyzThe BeatlesRubber Soul (Remastered)
1019K3IHYeVkUTjcBHGfbCOiThe BeatlesHelp! (Remastered)
117BgGBZndAvDlKOcwe5rscZThe BeatlesBeatles For Sale (Remastered)
1271Mwd9tntFQYUk4k2DwA0DThe BeatlesA Hard Day's Night (Remastered)
131DBkJIEoeHrTX4WCBQGcCiRadioheadThe King Of Limbs
143nkEsxmIX0zRNXGAexaHAnThe BeatlesWith The Beatles (Remastered)
157gDXyW16byCQOgK965BRznThe BeatlesPlease Please Me (Remastered)
166vuykQgDLUCiZ7YggIpLM9RadioheadA Moon Shaped Pool
1747xaqCsJcYFWqD1gwujl1TRadioheadTKOL RMX 1234567
187eyQXxuf2nGj9d2367Gi5fRadioheadIn Rainbows
1936lJLPoPPOKNFddTAcirncRadioheadIn Rainbows Disk 2
206Eo5EkmdLvZrONzi046iC2RadioheadCom Lag: 2+2=5
211oW3v5Har9mvXnGk0x4fHmRadioheadHail To the Thief
226svTt5o2lUgIrgYDKVmdnDRadioheadI Might Be Wrong
236V9YnBmFjWmXCBaUVRCVXPRadioheadAmnesiac
2419RUXBFyM4PpmrLRdtqWbpRadioheadKid A
257dxKtc08dYeRVHt3p9CZJnRadioheadOK Computer
26500FEaUzn8lN9zWFyZG5C2RadioheadThe Bends
276400dnyeDyD2mIFHfkwHXNRadioheadPablo Honey
284g9Jfls8z2nbQxj5PiXkiyThe Rolling StonesBlue & Lonesome
294fhWcu56Bbh5wALuTouFVWThe Rolling StonesHavana Moon (Live)
............
323CHu7qW160uqPZHW3TMZ1lThe Rolling StonesShine A Light
334FTHynKEtuP7eppERNfjyGThe Rolling StonesA Bigger Bang (2009 Re-Mastered)
3450UGtgNA5bq1c0BDjPfmbDThe Rolling StonesLive Licks
350ZGddnvcVzHVHfE3WW1tV5The Rolling StonesBridges To Babylon (Remastered)
364M8Q1L9PZq0xK5tLUpO3jdThe Rolling StonesStripped
3762ZT16LY1phGM0O8x5qW1zThe Rolling StonesVoodoo Lounge (Remastered 2009)
381W1UJulgICjFDyYIMUwRs7The Rolling StonesFlashpoint
3925mfHGJNQkluvIqedXHSx3The Rolling StonesSteel Wheels (2009 Re-Mastered)
401TpcI1LEFVhBvDPSTMPGFGThe Rolling StonesDirty Work
411WSfNoPDPzgyKFN6OSYWUxThe Rolling StonesDirty Work (Remastered 2009)
42064eFGemsrDcMvgRZ0gqtwThe Rolling StonesUndercover (2009 Re-Mastered)
430hxrNynMDh5QeyALlf1CdSThe Rolling StonesStill Life
441YvnuYGlblQ5vLnOhaZzpnThe Rolling StonesTattoo You (2009 Re-Mastered)
452wZgoXS06wSdu9C0ZJOvlcThe Rolling StonesEmotional Rescue (2009 Re-Mastered)
4654sqbAXxR1jFfyXb1WvrHKThe Rolling StonesSome Girls
476FjXxl9VLURGuubdXUn2J3The Rolling StonesSome Girls (Deluxe Version)
484jbWZmf7kRxCBD6tgVepYhSpice GirlsForever
493sr6lAuO3nmB1u8ZuQgpiXSpice GirlsSpiceworld
503x2jF7blR6bFHtk4MccsyJSpice GirlsSpice
513LXItxKnnJcEDc5QdTc00nThe BeatlesSgt. Pepper's Lonely Hearts Club Band (Deluxe ...
527Hk1X2BCADxuR9saTIKfOWThe Rolling StonesOn Air (Deluxe)
536iCIB08bkoitQOL5y2uEsMThe Rolling StonesSticky Fingers Live At The Fonda Theatre
5434d9ClCaKRoQ8pMeJ9GfvtThe Rolling StonesLadies & Gentlemen (Live)
550aWIIpfY32rT1i3yO9LROlThe Rolling StonesTotally Stripped (Live)
565D7RtaChuvF0Av1xXT3acuThe Rolling StonesTotally Stripped - Brixton (Live)
572b3y5k1DchDACjH5KMlgQvThe Rolling StonesTotally Stripped - Amsterdam (Live)
583wkyUMDuH56iNaSxKvukaxThe Rolling StonesTotally Stripped - Paris (Live)
596hB5kO3oV3tlnblCNSSA9ZMuddy WatersLive At The Checkerboard Lounge
603yNf6JVyEEqvM4OqKEmZSCMuddy WatersLive At The Checkerboard Lounge
612gCp8kyDcL93s4kVP4VMTCThe Rolling StonesSome Girls: Live In Texas '78
\n", "

62 rows × 3 columns

\n", "
" ], "text/plain": [ " _id artist_name \\\n", "0 5XfJmldgWzrc1AIdbBaVZn The Beatles \n", "1 5ju5Ouzan3QwXqQt1Tihbh The Beatles \n", "2 2pCqZLeavM2BMovJXsJEIV The Beatles \n", "3 2Pqkn9Dq2DFtdfkKAeqgMd The Beatles \n", "4 47bcKzmKgmMPHXNVOWpLiu The Beatles \n", "5 03Qh833fEdVT30Pfs93ea6 The Beatles \n", "6 6P9yO0ukhOx3dvmhGKeYoC The Beatles \n", "7 1PULmKbHeOqlkIwcDMNwD4 The Beatles \n", "8 0PYyrqs9NXtxPhf0CZkq2L The Beatles \n", "9 3OdI6e43crvyAHhaqpxSyz The Beatles \n", "10 19K3IHYeVkUTjcBHGfbCOi The Beatles \n", "11 7BgGBZndAvDlKOcwe5rscZ The Beatles \n", "12 71Mwd9tntFQYUk4k2DwA0D The Beatles \n", "13 1DBkJIEoeHrTX4WCBQGcCi Radiohead \n", "14 3nkEsxmIX0zRNXGAexaHAn The Beatles \n", "15 7gDXyW16byCQOgK965BRzn The Beatles \n", "16 6vuykQgDLUCiZ7YggIpLM9 Radiohead \n", "17 47xaqCsJcYFWqD1gwujl1T Radiohead \n", "18 7eyQXxuf2nGj9d2367Gi5f Radiohead \n", "19 36lJLPoPPOKNFddTAcirnc Radiohead \n", "20 6Eo5EkmdLvZrONzi046iC2 Radiohead \n", "21 1oW3v5Har9mvXnGk0x4fHm Radiohead \n", "22 6svTt5o2lUgIrgYDKVmdnD Radiohead \n", "23 6V9YnBmFjWmXCBaUVRCVXP Radiohead \n", "24 19RUXBFyM4PpmrLRdtqWbp Radiohead \n", "25 7dxKtc08dYeRVHt3p9CZJn Radiohead \n", "26 500FEaUzn8lN9zWFyZG5C2 Radiohead \n", "27 6400dnyeDyD2mIFHfkwHXN Radiohead \n", "28 4g9Jfls8z2nbQxj5PiXkiy The Rolling Stones \n", "29 4fhWcu56Bbh5wALuTouFVW The Rolling Stones \n", ".. ... ... \n", "32 3CHu7qW160uqPZHW3TMZ1l The Rolling Stones \n", "33 4FTHynKEtuP7eppERNfjyG The Rolling Stones \n", "34 50UGtgNA5bq1c0BDjPfmbD The Rolling Stones \n", "35 0ZGddnvcVzHVHfE3WW1tV5 The Rolling Stones \n", "36 4M8Q1L9PZq0xK5tLUpO3jd The Rolling Stones \n", "37 62ZT16LY1phGM0O8x5qW1z The Rolling Stones \n", "38 1W1UJulgICjFDyYIMUwRs7 The Rolling Stones \n", "39 25mfHGJNQkluvIqedXHSx3 The Rolling Stones \n", "40 1TpcI1LEFVhBvDPSTMPGFG The Rolling Stones \n", "41 1WSfNoPDPzgyKFN6OSYWUx The Rolling Stones \n", "42 064eFGemsrDcMvgRZ0gqtw The Rolling Stones \n", "43 0hxrNynMDh5QeyALlf1CdS The Rolling Stones \n", "44 1YvnuYGlblQ5vLnOhaZzpn The Rolling Stones \n", "45 2wZgoXS06wSdu9C0ZJOvlc The Rolling Stones \n", "46 54sqbAXxR1jFfyXb1WvrHK The Rolling Stones \n", "47 6FjXxl9VLURGuubdXUn2J3 The Rolling Stones \n", "48 4jbWZmf7kRxCBD6tgVepYh Spice Girls \n", "49 3sr6lAuO3nmB1u8ZuQgpiX Spice Girls \n", "50 3x2jF7blR6bFHtk4MccsyJ Spice Girls \n", "51 3LXItxKnnJcEDc5QdTc00n The Beatles \n", "52 7Hk1X2BCADxuR9saTIKfOW The Rolling Stones \n", "53 6iCIB08bkoitQOL5y2uEsM The Rolling Stones \n", "54 34d9ClCaKRoQ8pMeJ9Gfvt The Rolling Stones \n", "55 0aWIIpfY32rT1i3yO9LROl The Rolling Stones \n", "56 5D7RtaChuvF0Av1xXT3acu The Rolling Stones \n", "57 2b3y5k1DchDACjH5KMlgQv The Rolling Stones \n", "58 3wkyUMDuH56iNaSxKvukax The Rolling Stones \n", "59 6hB5kO3oV3tlnblCNSSA9Z Muddy Waters \n", "60 3yNf6JVyEEqvM4OqKEmZSC Muddy Waters \n", "61 2gCp8kyDcL93s4kVP4VMTC The Rolling Stones \n", "\n", " name \n", "0 Live At The Hollywood Bowl \n", "1 1 (Remastered) \n", "2 Let It Be (Remastered) \n", "3 Abbey Road (Remastered) \n", "4 Yellow Submarine (Remastered) \n", "5 The Beatles (Remastered) \n", "6 Magical Mystery Tour (Remastered) \n", "7 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "8 Revolver (Remastered) \n", "9 Rubber Soul (Remastered) \n", "10 Help! (Remastered) \n", "11 Beatles For Sale (Remastered) \n", "12 A Hard Day's Night (Remastered) \n", "13 The King Of Limbs \n", "14 With The Beatles (Remastered) \n", "15 Please Please Me (Remastered) \n", "16 A Moon Shaped Pool \n", "17 TKOL RMX 1234567 \n", "18 In Rainbows \n", "19 In Rainbows Disk 2 \n", "20 Com Lag: 2+2=5 \n", "21 Hail To the Thief \n", "22 I Might Be Wrong \n", "23 Amnesiac \n", "24 Kid A \n", "25 OK Computer \n", "26 The Bends \n", "27 Pablo Honey \n", "28 Blue & Lonesome \n", "29 Havana Moon (Live) \n", ".. ... \n", "32 Shine A Light \n", "33 A Bigger Bang (2009 Re-Mastered) \n", "34 Live Licks \n", "35 Bridges To Babylon (Remastered) \n", "36 Stripped \n", "37 Voodoo Lounge (Remastered 2009) \n", "38 Flashpoint \n", "39 Steel Wheels (2009 Re-Mastered) \n", "40 Dirty Work \n", "41 Dirty Work (Remastered 2009) \n", "42 Undercover (2009 Re-Mastered) \n", "43 Still Life \n", "44 Tattoo You (2009 Re-Mastered) \n", "45 Emotional Rescue (2009 Re-Mastered) \n", "46 Some Girls \n", "47 Some Girls (Deluxe Version) \n", "48 Forever \n", "49 Spiceworld \n", "50 Spice \n", "51 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "52 On Air (Deluxe) \n", "53 Sticky Fingers Live At The Fonda Theatre \n", "54 Ladies & Gentlemen (Live) \n", "55 Totally Stripped (Live) \n", "56 Totally Stripped - Brixton (Live) \n", "57 Totally Stripped - Amsterdam (Live) \n", "58 Totally Stripped - Paris (Live) \n", "59 Live At The Checkerboard Lounge \n", "60 Live At The Checkerboard Lounge \n", "61 Some Girls: Live In Texas '78 \n", "\n", "[62 rows x 3 columns]" ] }, "execution_count": 74, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list(albums.find({}, ['artist_name', 'name'])))" ] }, { "cell_type": "markdown", "metadata": { "collapsed": true }, "source": [ "Manually fix a couple of errors." ] }, { "cell_type": "code", "execution_count": 75, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 75, "metadata": {}, "output_type": "execute_result" } ], "source": [ "genius_tracks.update_many({'ctitle': 'revolution i'}, \n", " {'$set': {'ctitle': 'revolution 1'}})\n", "genius_tracks.update_many({'ctitle': 'when im sixtyfour'}, \n", " {'$set': {'ctitle': 'when im sixty four'}})\n", "genius_tracks.update_many({'ctitle': 'packt like sardines in a crushd tin box'}, \n", " {'$set': {'ctitle': 'packt like sardines in a crushed tin box'}})\n", "genius_tracks.update_many({'ctitle': 'a punchup at a wedding'}, \n", " {'$set': {'ctitle': 'a punch up at a wedding'}})\n", "genius_tracks.update_many({'ctitle': 'dollars cents'}, \n", " {'$set': {'ctitle': 'dollars and cents'}})\n", "genius_tracks.update_many({'ctitle': 'bullet proofi wish i was'}, \n", " {'$set': {'ctitle': 'bullet proof i wish i was'}})\n", "genius_tracks.update_many({'ctitle': 'jumpin jack flash'}, \n", " {'$set': {'ctitle': 'jumping jack flash'}})\n", "genius_tracks.update_many({'ctitle': 'far away eyes'}, \n", " {'$set': {'ctitle': 'faraway eyes'}})" ] }, { "cell_type": "code", "execution_count": 76, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(532, 516, 103)" ] }, "execution_count": 76, "metadata": {}, "output_type": "execute_result" } ], "source": [ "in_both = set(g['ctitle'] for g in genius_tracks.find({}, ['ctitle']) if tracks.find({'ctitle': g['ctitle']}).count())\n", "genius_only = set(g['ctitle'] for g in genius_tracks.find({}, ['ctitle']) if not tracks.find({'ctitle': g['ctitle']}).count())\n", "spotify_only = set(s['ctitle'] for s in tracks.find({}, ['ctitle']) if not genius_tracks.find({'ctitle': s['ctitle']}).count())\n", "len(in_both), len(genius_only), len(spotify_only)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Copy the lyrics over\n", "Now can can connect the tracks, let's copy across the lyrics from the Genius collection into the Spotify collection. We'll calculate the lyrical density at the same time.\n", "\n", "* [Top](#top)" ] }, { "cell_type": "code", "execution_count": 77, "metadata": {}, "outputs": [], "source": [ "for t in tracks.find({}, ['ctitle', 'duration_ms']):\n", " gts = genius_tracks.find({'ctitle': t['ctitle'], 'lyrics': {'$exists': True}}, ['lyrics', 'original_lyrics'])\n", " for gt in gts:\n", " tracks.update_one({'_id': t['_id']}, \n", " {'$set': {'lyrics': gt['lyrics'], \n", " 'original_lyrics': gt['original_lyrics'],\n", " 'lyrical_density': 1000 * len(gt['lyrics'].split()) / t['duration_ms']}})" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Sentiment analysis\n", "I couldn't find an easily-installable equivalent to the NRC corpus, so I'm using a sentiment analysis API endpoint from [Text Processing](http://text-processing.com/docs/sentiment.html).\n", "\n", "* [Top](#top)" ] }, { "cell_type": "code", "execution_count": 78, "metadata": { "scrolled": true }, "outputs": [], "source": [ "for t in tracks.find({'lyrics': {'$exists': True}}, ['lyrics']):\n", " text = t['lyrics']\n", " if text:\n", " query = urllib.parse.urlencode({'text': text}).encode('ascii')\n", " headers = {'Accept': 'application/json',\n", " 'User-Agent': 'curl/7.9.8 (i686-pc-linux-gnu) libcurl 7.9.8 (OpenSSL 0.9.6b) (ipv6 enabled)'}\n", " request = urllib.request.Request('http://text-processing.com/api/sentiment/', \n", " headers=headers, data=query)\n", " with urllib.request.urlopen(request) as f:\n", " response = json.loads(f.read().decode('utf-8'))\n", " tracks.update_one({'_id': t['_id']}, {'$set': {'sentiment': response}})" ] }, { "cell_type": "code", "execution_count": 79, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "dict_keys(['explicit', 'artist_name', 'lyrics', 'uri', 'track_number', 'mode', 'album_id', '_id', 'preview_url', 'acousticness', 'liveness', 'energy', 'disc_number', 'valence', 'artist_id', 'lyrical_density', 'ctitle', 'popularity', 'original_lyrics', 'speechiness', 'sentiment', 'loudness', 'href', 'available_markets', 'type', 'name', 'external_ids', 'artists', 'id', 'key', 'instrumentalness', 'album', 'time_signature', 'danceability', 'duration_ms', 'tempo', 'external_urls', 'analysis_url', 'track_href'])" ] }, "execution_count": 79, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tracks.find_one({'sentiment': {'$exists': True}}).keys()" ] }, { "cell_type": "code", "execution_count": 80, "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/plain": [ "{'_id': '1jgefM2ZP7RnPVShhy1eUM',\n", " 'acousticness': 0.148,\n", " 'album': {'album_type': 'album',\n", " 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/22bE4uQ6baNwSHPVcDxLCe'},\n", " 'href': 'https://api.spotify.com/v1/artists/22bE4uQ6baNwSHPVcDxLCe',\n", " 'id': '22bE4uQ6baNwSHPVcDxLCe',\n", " 'name': 'The Rolling Stones',\n", " 'type': 'artist',\n", " 'uri': 'spotify:artist:22bE4uQ6baNwSHPVcDxLCe'}],\n", " 'available_markets': ['GB'],\n", " 'external_urls': {'spotify': 'https://open.spotify.com/album/3PbRKFafwE7Of8e4dTee72'},\n", " 'href': 'https://api.spotify.com/v1/albums/3PbRKFafwE7Of8e4dTee72',\n", " 'id': '3PbRKFafwE7Of8e4dTee72',\n", " 'images': [{'height': 640,\n", " 'url': 'https://i.scdn.co/image/4bd988736fe53e8109488f0f390cdfd5d119762d',\n", " 'width': 640},\n", " {'height': 300,\n", " 'url': 'https://i.scdn.co/image/b5c53642ccdaac3120aa766ce5e29d9c1b61794f',\n", " 'width': 300},\n", " {'height': 64,\n", " 'url': 'https://i.scdn.co/image/9c6e2872cbd2688c528d5d43c57651d12c19eec1',\n", " 'width': 64}],\n", " 'name': 'Totally Stripped (Live)',\n", " 'type': 'album',\n", " 'uri': 'spotify:album:3PbRKFafwE7Of8e4dTee72'},\n", " 'album_id': '3PbRKFafwE7Of8e4dTee72',\n", " 'analysis_url': 'https://api.spotify.com/v1/audio-analysis/1jgefM2ZP7RnPVShhy1eUM',\n", " 'artist_id': '22bE4uQ6baNwSHPVcDxLCe',\n", " 'artist_name': 'The Rolling Stones',\n", " 'artists': [{'external_urls': {'spotify': 'https://open.spotify.com/artist/22bE4uQ6baNwSHPVcDxLCe'},\n", " 'href': 'https://api.spotify.com/v1/artists/22bE4uQ6baNwSHPVcDxLCe',\n", " 'id': '22bE4uQ6baNwSHPVcDxLCe',\n", " 'name': 'The Rolling Stones',\n", " 'type': 'artist',\n", " 'uri': 'spotify:artist:22bE4uQ6baNwSHPVcDxLCe'}],\n", " 'available_markets': ['GB'],\n", " 'ctitle': 'not fade away',\n", " 'danceability': 0.282,\n", " 'disc_number': 1,\n", " 'duration_ms': 191787,\n", " 'energy': 0.883,\n", " 'explicit': False,\n", " 'external_ids': {'isrc': 'GBCBR1500391'},\n", " 'external_urls': {'spotify': 'https://open.spotify.com/track/1jgefM2ZP7RnPVShhy1eUM'},\n", " 'href': 'https://api.spotify.com/v1/tracks/1jgefM2ZP7RnPVShhy1eUM',\n", " 'id': '1jgefM2ZP7RnPVShhy1eUM',\n", " 'instrumentalness': 0.00116,\n", " 'key': 9,\n", " 'liveness': 0.969,\n", " 'loudness': -7.634,\n", " 'lyrical_density': 0.6934776601125207,\n", " 'lyrics': \"i'm going to tell you how it's going to be you're going to give your love to me i'm going to love you night and day well love is love and not fade away well love is love and not fade away my love is bigger than a cadillac i try to show it and you're driving me back your love for me has got to be real for you to know just how i feel love is real and not fade away well love is real and not fade away i'm going to tell you how it's going to be you're going to give your love to me i'm going to love you night and day well love is love and not fade away well love is love and not fade away\",\n", " 'mode': 1,\n", " 'name': 'Not Fade Away - Live',\n", " 'original_lyrics': \"\\n\\n[Chorus]\\nI'm going to tell you how it's going to be\\nYou're going to give your love to me\\nI'm going to love you night and day\\nWell love is love and not fade away\\nWell love is love and not fade away\\n\\n[Verse]\\nMy love is bigger than a Cadillac\\nI try to show it and you're driving me back\\nYour love for me has got to be real\\nFor you to know just how I feel\\nLove is real and not fade away\\nWell love is real and not fade away\\n\\n[Chorus]\\nI'm going to tell you how it's going to be\\nYou're going to give your love to me\\nI'm going to love you night and day\\nWell love is love and not fade away\\nWell love is love and not fade away\\n\\n\",\n", " 'popularity': 14,\n", " 'preview_url': 'https://p.scdn.co/mp3-preview/bba1991141c6e594e0d6cee95bfd55357958e2fa?cid=62cfd0fb31d949b091487f6b71bd39ec',\n", " 'sentiment': {'label': 'pos',\n", " 'probability': {'neg': 0.4330417519459868,\n", " 'neutral': 0.16422979866211163,\n", " 'pos': 0.5669582480540132}},\n", " 'speechiness': 0.0936,\n", " 'tempo': 99.59,\n", " 'time_signature': 4,\n", " 'track_href': 'https://api.spotify.com/v1/tracks/1jgefM2ZP7RnPVShhy1eUM',\n", " 'track_number': 1,\n", " 'type': 'audio_features',\n", " 'uri': 'spotify:track:1jgefM2ZP7RnPVShhy1eUM',\n", " 'valence': 0.678}" ] }, "execution_count": 80, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tracks.find_one({'sentiment': {'$exists': True}})" ] }, { "cell_type": "code", "execution_count": 81, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(790, 134)" ] }, "execution_count": 81, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tracks.find({'sentiment': {'$exists': True}}).count(), tracks.find({'sentiment': {'$exists': False}}).count()" ] }, { "cell_type": "code", "execution_count": 82, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "8" ] }, "execution_count": 82, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tracks.find({'sentiment': {'$exists': False}, 'lyrics': {'$exists': True}}).count()" ] }, { "cell_type": "code", "execution_count": 83, "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", "
_idartist_namelyricsname
047DgFAFnhfwoSko23P7pz5George MartinYellow Submarine In Pepperland - Remastered
12z1p43SNSbeowzy8WdYHNkThe BeatlesFlying - Remastered 2009
23gKuywOm38axM8sJGq6LaqRadioheadMK 1
32uYSbsxAMmK1awUl06T7ixRadioheadMK 2
41q6X5sJSWQ2QnqvPghR0KrRadioheadI Am Citizen Insane
54blz5SBUxKbtDNwMWstGNGRadioheadWhere Bluebirds Fly
62zYrFer4QGSQkk5aUawfHBRadioheadHunting Bears
74DPQvbgSM0IdX4O3HOACwLRadioheadTreefingers
\n", "
" ], "text/plain": [ " _id artist_name lyrics \\\n", "0 47DgFAFnhfwoSko23P7pz5 George Martin \n", "1 2z1p43SNSbeowzy8WdYHNk The Beatles \n", "2 3gKuywOm38axM8sJGq6Laq Radiohead \n", "3 2uYSbsxAMmK1awUl06T7ix Radiohead \n", "4 1q6X5sJSWQ2QnqvPghR0Kr Radiohead \n", "5 4blz5SBUxKbtDNwMWstGNG Radiohead \n", "6 2zYrFer4QGSQkk5aUawfHB Radiohead \n", "7 4DPQvbgSM0IdX4O3HOACwL Radiohead \n", "\n", " name \n", "0 Yellow Submarine In Pepperland - Remastered \n", "1 Flying - Remastered 2009 \n", "2 MK 1 \n", "3 MK 2 \n", "4 I Am Citizen Insane \n", "5 Where Bluebirds Fly \n", "6 Hunting Bears \n", "7 Treefingers " ] }, "execution_count": 83, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list(tracks.find({'sentiment': {'$exists': False}, \n", " 'lyrics': {'$exists': True}}, \n", " ['name', 'artist_name', 'lyrics'])))" ] }, { "cell_type": "code", "execution_count": 84, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[{'_id': '47DgFAFnhfwoSko23P7pz5',\n", " 'artist_name': 'George Martin',\n", " 'lyrics': '',\n", " 'name': 'Yellow Submarine In Pepperland - Remastered',\n", " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n", " {'_id': '2z1p43SNSbeowzy8WdYHNk',\n", " 'artist_name': 'The Beatles',\n", " 'lyrics': '',\n", " 'name': 'Flying - Remastered 2009',\n", " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n", " {'_id': '3gKuywOm38axM8sJGq6Laq',\n", " 'artist_name': 'Radiohead',\n", " 'lyrics': '',\n", " 'name': 'MK 1',\n", " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n", " {'_id': '2uYSbsxAMmK1awUl06T7ix',\n", " 'artist_name': 'Radiohead',\n", " 'lyrics': '',\n", " 'name': 'MK 2',\n", " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n", " {'_id': '1q6X5sJSWQ2QnqvPghR0Kr',\n", " 'artist_name': 'Radiohead',\n", " 'lyrics': '',\n", " 'name': 'I Am Citizen Insane',\n", " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n", " {'_id': '4blz5SBUxKbtDNwMWstGNG',\n", " 'artist_name': 'Radiohead',\n", " 'lyrics': '',\n", " 'name': 'Where Bluebirds Fly',\n", " 'original_lyrics': '\\n\\n[Distorted \"Somewhere Over The Rainbow\" lyrics]\\n\\n'},\n", " {'_id': '2zYrFer4QGSQkk5aUawfHB',\n", " 'artist_name': 'Radiohead',\n", " 'lyrics': '',\n", " 'name': 'Hunting Bears',\n", " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'},\n", " {'_id': '4DPQvbgSM0IdX4O3HOACwL',\n", " 'artist_name': 'Radiohead',\n", " 'lyrics': '',\n", " 'name': 'Treefingers',\n", " 'original_lyrics': '\\n\\n[Instrumental]\\n\\n'}]" ] }, "execution_count": 84, "metadata": {}, "output_type": "execute_result" } ], "source": [ "list(tracks.find({'sentiment': {'$exists': False}, \n", " 'lyrics': {'$exists': True}}, \n", " ['name', 'artist_name', 'lyrics', 'original_lyrics']))" ] }, { "cell_type": "code", "execution_count": 85, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 85, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tracks.update_many({'lyrics': ''}, {'$unset': {'lyrics': ''}})" ] }, { "cell_type": "code", "execution_count": 86, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
\n", "
" ], "text/plain": [ "Empty DataFrame\n", "Columns: []\n", "Index: []" ] }, "execution_count": 86, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list(tracks.find({'sentiment': {'$exists': False}, \n", " 'lyrics': {'$exists': True}}, \n", " ['name', 'artist_name', 'lyrics'])))" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Remove live and duplicate tracks\n", "We don't want to include tracks from live albums and tracks that appear more than once, such as on deluxe, remastered, and basic versions of albums.\n", "\n", "There's no quick and easy way to do this, so this section is just a lot of faffing around. The upshot is that the tracks we want to ignore will end up with an `ignore: True` tag on them, and they will be filtered out in a view for the analysis later.\n", "\n", "* [Top](#top)" ] }, { "cell_type": "code", "execution_count": 87, "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", "
_idartist_namenamerelease_date
05XfJmldgWzrc1AIdbBaVZnThe BeatlesLive At The Hollywood Bowl2016-09-09
15ju5Ouzan3QwXqQt1TihbhThe Beatles1 (Remastered)2000-11-13
22pCqZLeavM2BMovJXsJEIVThe BeatlesLet It Be (Remastered)1970-05-08
32Pqkn9Dq2DFtdfkKAeqgMdThe BeatlesAbbey Road (Remastered)1969-09-26
447bcKzmKgmMPHXNVOWpLiuThe BeatlesYellow Submarine (Remastered)1969-01-17
503Qh833fEdVT30Pfs93ea6The BeatlesThe Beatles (Remastered)1968-11-22
66P9yO0ukhOx3dvmhGKeYoCThe BeatlesMagical Mystery Tour (Remastered)1967-11-27
71PULmKbHeOqlkIwcDMNwD4The BeatlesSgt. Pepper's Lonely Hearts Club Band (Remaste...1967-06-01
80PYyrqs9NXtxPhf0CZkq2LThe BeatlesRevolver (Remastered)1966-08-05
93OdI6e43crvyAHhaqpxSyzThe BeatlesRubber Soul (Remastered)1965-12-03
1019K3IHYeVkUTjcBHGfbCOiThe BeatlesHelp! (Remastered)1965-08-06
117BgGBZndAvDlKOcwe5rscZThe BeatlesBeatles For Sale (Remastered)1964-12-04
1271Mwd9tntFQYUk4k2DwA0DThe BeatlesA Hard Day's Night (Remastered)1964-07-10
131DBkJIEoeHrTX4WCBQGcCiRadioheadThe King Of Limbs2011-02-18
143nkEsxmIX0zRNXGAexaHAnThe BeatlesWith The Beatles (Remastered)1963-11-22
157gDXyW16byCQOgK965BRznThe BeatlesPlease Please Me (Remastered)1963-03-22
166vuykQgDLUCiZ7YggIpLM9RadioheadA Moon Shaped Pool2016-05-08
1747xaqCsJcYFWqD1gwujl1TRadioheadTKOL RMX 12345672011-10-10
187eyQXxuf2nGj9d2367Gi5fRadioheadIn Rainbows2007-12-28
1936lJLPoPPOKNFddTAcirncRadioheadIn Rainbows Disk 22007
206Eo5EkmdLvZrONzi046iC2RadioheadCom Lag: 2+2=52004-03-24
211oW3v5Har9mvXnGk0x4fHmRadioheadHail To the Thief2003
226svTt5o2lUgIrgYDKVmdnDRadioheadI Might Be Wrong2001
236V9YnBmFjWmXCBaUVRCVXPRadioheadAmnesiac2001-03-12
2419RUXBFyM4PpmrLRdtqWbpRadioheadKid A2000-10-01
257dxKtc08dYeRVHt3p9CZJnRadioheadOK Computer1997-05-28
26500FEaUzn8lN9zWFyZG5C2RadioheadThe Bends1995-03-28
276400dnyeDyD2mIFHfkwHXNRadioheadPablo Honey1993-02-22
284g9Jfls8z2nbQxj5PiXkiyThe Rolling StonesBlue & Lonesome2016-12-02
294fhWcu56Bbh5wALuTouFVWThe Rolling StonesHavana Moon (Live)2016-11-11
...............
323CHu7qW160uqPZHW3TMZ1lThe Rolling StonesShine A Light2008-01-01
334FTHynKEtuP7eppERNfjyGThe Rolling StonesA Bigger Bang (2009 Re-Mastered)2005-09-05
3450UGtgNA5bq1c0BDjPfmbDThe Rolling StonesLive Licks2004-11-01
350ZGddnvcVzHVHfE3WW1tV5The Rolling StonesBridges To Babylon (Remastered)1997-09-29
364M8Q1L9PZq0xK5tLUpO3jdThe Rolling StonesStripped1995-01-13
3762ZT16LY1phGM0O8x5qW1zThe Rolling StonesVoodoo Lounge (Remastered 2009)1994-07-11
381W1UJulgICjFDyYIMUwRs7The Rolling StonesFlashpoint1991-04-02
3925mfHGJNQkluvIqedXHSx3The Rolling StonesSteel Wheels (2009 Re-Mastered)1989-08-29
401TpcI1LEFVhBvDPSTMPGFGThe Rolling StonesDirty Work1986-03-24
411WSfNoPDPzgyKFN6OSYWUxThe Rolling StonesDirty Work (Remastered 2009)1986-03-24
42064eFGemsrDcMvgRZ0gqtwThe Rolling StonesUndercover (2009 Re-Mastered)1983-11-07
430hxrNynMDh5QeyALlf1CdSThe Rolling StonesStill Life1982-06-01
441YvnuYGlblQ5vLnOhaZzpnThe Rolling StonesTattoo You (2009 Re-Mastered)1981-08-24
452wZgoXS06wSdu9C0ZJOvlcThe Rolling StonesEmotional Rescue (2009 Re-Mastered)1980-06-20
4654sqbAXxR1jFfyXb1WvrHKThe Rolling StonesSome Girls1978-06-09
476FjXxl9VLURGuubdXUn2J3The Rolling StonesSome Girls (Deluxe Version)1978-06-09
484jbWZmf7kRxCBD6tgVepYhSpice GirlsForever2000-11-06
493sr6lAuO3nmB1u8ZuQgpiXSpice GirlsSpiceworld1997-11-03
503x2jF7blR6bFHtk4MccsyJSpice GirlsSpice1996-11-04
513LXItxKnnJcEDc5QdTc00nThe BeatlesSgt. Pepper's Lonely Hearts Club Band (Deluxe ...1967-06-01
527Hk1X2BCADxuR9saTIKfOWThe Rolling StonesOn Air (Deluxe)2017-12-01
536iCIB08bkoitQOL5y2uEsMThe Rolling StonesSticky Fingers Live At The Fonda Theatre2017-09-29
5434d9ClCaKRoQ8pMeJ9GfvtThe Rolling StonesLadies & Gentlemen (Live)2017-06-07
550aWIIpfY32rT1i3yO9LROlThe Rolling StonesTotally Stripped (Live)2016-06-17
565D7RtaChuvF0Av1xXT3acuThe Rolling StonesTotally Stripped - Brixton (Live)2016-06-06
572b3y5k1DchDACjH5KMlgQvThe Rolling StonesTotally Stripped - Amsterdam (Live)2016-06-03
583wkyUMDuH56iNaSxKvukaxThe Rolling StonesTotally Stripped - Paris (Live)2016-05-20
596hB5kO3oV3tlnblCNSSA9ZMuddy WatersLive At The Checkerboard Lounge2012-07-09
603yNf6JVyEEqvM4OqKEmZSCMuddy WatersLive At The Checkerboard Lounge2012-07-09
612gCp8kyDcL93s4kVP4VMTCThe Rolling StonesSome Girls: Live In Texas '782011-11-21
\n", "

62 rows × 4 columns

\n", "
" ], "text/plain": [ " _id artist_name \\\n", "0 5XfJmldgWzrc1AIdbBaVZn The Beatles \n", "1 5ju5Ouzan3QwXqQt1Tihbh The Beatles \n", "2 2pCqZLeavM2BMovJXsJEIV The Beatles \n", "3 2Pqkn9Dq2DFtdfkKAeqgMd The Beatles \n", "4 47bcKzmKgmMPHXNVOWpLiu The Beatles \n", "5 03Qh833fEdVT30Pfs93ea6 The Beatles \n", "6 6P9yO0ukhOx3dvmhGKeYoC The Beatles \n", "7 1PULmKbHeOqlkIwcDMNwD4 The Beatles \n", "8 0PYyrqs9NXtxPhf0CZkq2L The Beatles \n", "9 3OdI6e43crvyAHhaqpxSyz The Beatles \n", "10 19K3IHYeVkUTjcBHGfbCOi The Beatles \n", "11 7BgGBZndAvDlKOcwe5rscZ The Beatles \n", "12 71Mwd9tntFQYUk4k2DwA0D The Beatles \n", "13 1DBkJIEoeHrTX4WCBQGcCi Radiohead \n", "14 3nkEsxmIX0zRNXGAexaHAn The Beatles \n", "15 7gDXyW16byCQOgK965BRzn The Beatles \n", "16 6vuykQgDLUCiZ7YggIpLM9 Radiohead \n", "17 47xaqCsJcYFWqD1gwujl1T Radiohead \n", "18 7eyQXxuf2nGj9d2367Gi5f Radiohead \n", "19 36lJLPoPPOKNFddTAcirnc Radiohead \n", "20 6Eo5EkmdLvZrONzi046iC2 Radiohead \n", "21 1oW3v5Har9mvXnGk0x4fHm Radiohead \n", "22 6svTt5o2lUgIrgYDKVmdnD Radiohead \n", "23 6V9YnBmFjWmXCBaUVRCVXP Radiohead \n", "24 19RUXBFyM4PpmrLRdtqWbp Radiohead \n", "25 7dxKtc08dYeRVHt3p9CZJn Radiohead \n", "26 500FEaUzn8lN9zWFyZG5C2 Radiohead \n", "27 6400dnyeDyD2mIFHfkwHXN Radiohead \n", "28 4g9Jfls8z2nbQxj5PiXkiy The Rolling Stones \n", "29 4fhWcu56Bbh5wALuTouFVW The Rolling Stones \n", ".. ... ... \n", "32 3CHu7qW160uqPZHW3TMZ1l The Rolling Stones \n", "33 4FTHynKEtuP7eppERNfjyG The Rolling Stones \n", "34 50UGtgNA5bq1c0BDjPfmbD The Rolling Stones \n", "35 0ZGddnvcVzHVHfE3WW1tV5 The Rolling Stones \n", "36 4M8Q1L9PZq0xK5tLUpO3jd The Rolling Stones \n", "37 62ZT16LY1phGM0O8x5qW1z The Rolling Stones \n", "38 1W1UJulgICjFDyYIMUwRs7 The Rolling Stones \n", "39 25mfHGJNQkluvIqedXHSx3 The Rolling Stones \n", "40 1TpcI1LEFVhBvDPSTMPGFG The Rolling Stones \n", "41 1WSfNoPDPzgyKFN6OSYWUx The Rolling Stones \n", "42 064eFGemsrDcMvgRZ0gqtw The Rolling Stones \n", "43 0hxrNynMDh5QeyALlf1CdS The Rolling Stones \n", "44 1YvnuYGlblQ5vLnOhaZzpn The Rolling Stones \n", "45 2wZgoXS06wSdu9C0ZJOvlc The Rolling Stones \n", "46 54sqbAXxR1jFfyXb1WvrHK The Rolling Stones \n", "47 6FjXxl9VLURGuubdXUn2J3 The Rolling Stones \n", "48 4jbWZmf7kRxCBD6tgVepYh Spice Girls \n", "49 3sr6lAuO3nmB1u8ZuQgpiX Spice Girls \n", "50 3x2jF7blR6bFHtk4MccsyJ Spice Girls \n", "51 3LXItxKnnJcEDc5QdTc00n The Beatles \n", "52 7Hk1X2BCADxuR9saTIKfOW The Rolling Stones \n", "53 6iCIB08bkoitQOL5y2uEsM The Rolling Stones \n", "54 34d9ClCaKRoQ8pMeJ9Gfvt The Rolling Stones \n", "55 0aWIIpfY32rT1i3yO9LROl The Rolling Stones \n", "56 5D7RtaChuvF0Av1xXT3acu The Rolling Stones \n", "57 2b3y5k1DchDACjH5KMlgQv The Rolling Stones \n", "58 3wkyUMDuH56iNaSxKvukax The Rolling Stones \n", "59 6hB5kO3oV3tlnblCNSSA9Z Muddy Waters \n", "60 3yNf6JVyEEqvM4OqKEmZSC Muddy Waters \n", "61 2gCp8kyDcL93s4kVP4VMTC The Rolling Stones \n", "\n", " name release_date \n", "0 Live At The Hollywood Bowl 2016-09-09 \n", "1 1 (Remastered) 2000-11-13 \n", "2 Let It Be (Remastered) 1970-05-08 \n", "3 Abbey Road (Remastered) 1969-09-26 \n", "4 Yellow Submarine (Remastered) 1969-01-17 \n", "5 The Beatles (Remastered) 1968-11-22 \n", "6 Magical Mystery Tour (Remastered) 1967-11-27 \n", "7 Sgt. Pepper's Lonely Hearts Club Band (Remaste... 1967-06-01 \n", "8 Revolver (Remastered) 1966-08-05 \n", "9 Rubber Soul (Remastered) 1965-12-03 \n", "10 Help! (Remastered) 1965-08-06 \n", "11 Beatles For Sale (Remastered) 1964-12-04 \n", "12 A Hard Day's Night (Remastered) 1964-07-10 \n", "13 The King Of Limbs 2011-02-18 \n", "14 With The Beatles (Remastered) 1963-11-22 \n", "15 Please Please Me (Remastered) 1963-03-22 \n", "16 A Moon Shaped Pool 2016-05-08 \n", "17 TKOL RMX 1234567 2011-10-10 \n", "18 In Rainbows 2007-12-28 \n", "19 In Rainbows Disk 2 2007 \n", "20 Com Lag: 2+2=5 2004-03-24 \n", "21 Hail To the Thief 2003 \n", "22 I Might Be Wrong 2001 \n", "23 Amnesiac 2001-03-12 \n", "24 Kid A 2000-10-01 \n", "25 OK Computer 1997-05-28 \n", "26 The Bends 1995-03-28 \n", "27 Pablo Honey 1993-02-22 \n", "28 Blue & Lonesome 2016-12-02 \n", "29 Havana Moon (Live) 2016-11-11 \n", ".. ... ... \n", "32 Shine A Light 2008-01-01 \n", "33 A Bigger Bang (2009 Re-Mastered) 2005-09-05 \n", "34 Live Licks 2004-11-01 \n", "35 Bridges To Babylon (Remastered) 1997-09-29 \n", "36 Stripped 1995-01-13 \n", "37 Voodoo Lounge (Remastered 2009) 1994-07-11 \n", "38 Flashpoint 1991-04-02 \n", "39 Steel Wheels (2009 Re-Mastered) 1989-08-29 \n", "40 Dirty Work 1986-03-24 \n", "41 Dirty Work (Remastered 2009) 1986-03-24 \n", "42 Undercover (2009 Re-Mastered) 1983-11-07 \n", "43 Still Life 1982-06-01 \n", "44 Tattoo You (2009 Re-Mastered) 1981-08-24 \n", "45 Emotional Rescue (2009 Re-Mastered) 1980-06-20 \n", "46 Some Girls 1978-06-09 \n", "47 Some Girls (Deluxe Version) 1978-06-09 \n", "48 Forever 2000-11-06 \n", "49 Spiceworld 1997-11-03 \n", "50 Spice 1996-11-04 \n", "51 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... 1967-06-01 \n", "52 On Air (Deluxe) 2017-12-01 \n", "53 Sticky Fingers Live At The Fonda Theatre 2017-09-29 \n", "54 Ladies & Gentlemen (Live) 2017-06-07 \n", "55 Totally Stripped (Live) 2016-06-17 \n", "56 Totally Stripped - Brixton (Live) 2016-06-06 \n", "57 Totally Stripped - Amsterdam (Live) 2016-06-03 \n", "58 Totally Stripped - Paris (Live) 2016-05-20 \n", "59 Live At The Checkerboard Lounge 2012-07-09 \n", "60 Live At The Checkerboard Lounge 2012-07-09 \n", "61 Some Girls: Live In Texas '78 2011-11-21 \n", "\n", "[62 rows x 4 columns]" ] }, "execution_count": 87, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list(albums.find({}, ['name', 'artist_name', 'release_date'])))" ] }, { "cell_type": "code", "execution_count": 88, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "dict_keys(['genres', 'artist_id', '_id', 'copyrights', 'album_type', 'available_markets', 'release_date_precision', 'label', 'type', 'name', 'images', 'uri', 'href', 'id', 'release_date', 'artist_name', 'tracks', 'external_ids', 'artists', 'external_urls', 'popularity'])" ] }, "execution_count": 88, "metadata": {}, "output_type": "execute_result" } ], "source": [ "albums.find_one().keys()" ] }, { "cell_type": "code", "execution_count": 89, "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", "
_idctitlename
05JT7CoUSGNk7mMNkHMQjqrlove me doLove Me Do - Mono / Remastered
12Q2Gu7Bv8iLenuygtBgDUwfrom me to youFrom Me To You - Mono / Remastered
22Fk411Ix3qnMG8t8Qa74ZXshe loves youShe Loves You - Mono / Remastered
34DRBaZ760gyk7LWnaJFqsJi want to hold your handI Want To Hold Your Hand - Remastered 2015
47pQAq14Z73YUFMtxCyt0bGcant buy me loveCan't Buy Me Love - Remastered 2015
50mNQUZEATk2uItMUtiLWK5a hard days nightA Hard Day's Night - Remastered 2015
60Gm34HBxrXlaAf1jdJMjx2i feel fineI Feel Fine - Remastered 2015
73nhJDVdUrm6DnDW4iBfpKzeight days a weekEight Days A Week - Remastered 2015
86pkjW5srxjzRSKKMrl7et8ticket to rideTicket To Ride - Remastered 2015
91dfuJYDSIc41cw5RPsaCF1helpHelp! - Remastered 2015
1063uskN0xLezVg4281wzeQnyesterdayYesterday - Remastered 2015
110vXGSlE4ft3n5JHZMHHSIjday tripperDay Tripper - Remastered 2015
120Lckblu9CJUXOeMV0XY3b9we can work it outWe Can Work It Out - Remastered 2015
134VFYrwy5mEuZeBywCplc2jpaperback writerPaperback Writer - Remastered 2015
14727YRTVI7pKH1uCnXnyZulyellow submarineYellow Submarine - Remastered 2015
150TRkjwb4uY3CHb5zhr9bBdeleanor rigbyEleanor Rigby - Remastered 2015
165Kw6fC8wyRgMYfBDtEklYMpenny lanePenny Lane - Remastered 2015
1756rXurvdpjoSIVggfd5ANSall you need is loveAll You Need Is Love - Remastered 2015
180wFW5NQJdNDJPcZyfYSExxhello goodbyeHello, Goodbye - Remastered 2015
193yf4uaeB2ibXSIPbfUYC2klady madonnaLady Madonna - Remastered 2015
203H7sv3Krffn15BufUuXzf3hey judeHey Jude - Remastered 2015
214ajbplh2IXiJkXjQiq5aqqget backGet Back - Remastered 2015
2269zeDbyVmHDSH4GKZD1fv5the ballad of john and yokoThe Ballad Of John And Yoko - Remastered 2015
236Y6UBWhifUnkJIO2mdy0S3somethingSomething - Remastered 2015
247iABnSNZciNepqGtjMQxxdcome togetherCome Together - Remastered 2015
2522QadBPe0QCuqraFVAr1m3let it beLet It Be - Remastered 2015
260Oroc0HXQaxs8ONgI7dLnwthe long and winding roadThe Long And Winding Road - Remastered 2015
\n", "
" ], "text/plain": [ " _id ctitle \\\n", "0 5JT7CoUSGNk7mMNkHMQjqr love me do \n", "1 2Q2Gu7Bv8iLenuygtBgDUw from me to you \n", "2 2Fk411Ix3qnMG8t8Qa74ZX she loves you \n", "3 4DRBaZ760gyk7LWnaJFqsJ i want to hold your hand \n", "4 7pQAq14Z73YUFMtxCyt0bG cant buy me love \n", "5 0mNQUZEATk2uItMUtiLWK5 a hard days night \n", "6 0Gm34HBxrXlaAf1jdJMjx2 i feel fine \n", "7 3nhJDVdUrm6DnDW4iBfpKz eight days a week \n", "8 6pkjW5srxjzRSKKMrl7et8 ticket to ride \n", "9 1dfuJYDSIc41cw5RPsaCF1 help \n", "10 63uskN0xLezVg4281wzeQn yesterday \n", "11 0vXGSlE4ft3n5JHZMHHSIj day tripper \n", "12 0Lckblu9CJUXOeMV0XY3b9 we can work it out \n", "13 4VFYrwy5mEuZeBywCplc2j paperback writer \n", "14 727YRTVI7pKH1uCnXnyZul yellow submarine \n", "15 0TRkjwb4uY3CHb5zhr9bBd eleanor rigby \n", "16 5Kw6fC8wyRgMYfBDtEklYM penny lane \n", "17 56rXurvdpjoSIVggfd5ANS all you need is love \n", "18 0wFW5NQJdNDJPcZyfYSExx hello goodbye \n", "19 3yf4uaeB2ibXSIPbfUYC2k lady madonna \n", "20 3H7sv3Krffn15BufUuXzf3 hey jude \n", "21 4ajbplh2IXiJkXjQiq5aqq get back \n", "22 69zeDbyVmHDSH4GKZD1fv5 the ballad of john and yoko \n", "23 6Y6UBWhifUnkJIO2mdy0S3 something \n", "24 7iABnSNZciNepqGtjMQxxd come together \n", "25 22QadBPe0QCuqraFVAr1m3 let it be \n", "26 0Oroc0HXQaxs8ONgI7dLnw the long and winding road \n", "\n", " name \n", "0 Love Me Do - Mono / Remastered \n", "1 From Me To You - Mono / Remastered \n", "2 She Loves You - Mono / Remastered \n", "3 I Want To Hold Your Hand - Remastered 2015 \n", "4 Can't Buy Me Love - Remastered 2015 \n", "5 A Hard Day's Night - Remastered 2015 \n", "6 I Feel Fine - Remastered 2015 \n", "7 Eight Days A Week - Remastered 2015 \n", "8 Ticket To Ride - Remastered 2015 \n", "9 Help! - Remastered 2015 \n", "10 Yesterday - Remastered 2015 \n", "11 Day Tripper - Remastered 2015 \n", "12 We Can Work It Out - Remastered 2015 \n", "13 Paperback Writer - Remastered 2015 \n", "14 Yellow Submarine - Remastered 2015 \n", "15 Eleanor Rigby - Remastered 2015 \n", "16 Penny Lane - Remastered 2015 \n", "17 All You Need Is Love - Remastered 2015 \n", "18 Hello, Goodbye - Remastered 2015 \n", "19 Lady Madonna - Remastered 2015 \n", "20 Hey Jude - Remastered 2015 \n", "21 Get Back - Remastered 2015 \n", "22 The Ballad Of John And Yoko - Remastered 2015 \n", "23 Something - Remastered 2015 \n", "24 Come Together - Remastered 2015 \n", "25 Let It Be - Remastered 2015 \n", "26 The Long And Winding Road - Remastered 2015 " ] }, "execution_count": 89, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list(tracks.find({'album_id': '5ju5Ouzan3QwXqQt1Tihbh'}, ['name', 'ctitle'])))" ] }, { "cell_type": "code", "execution_count": 90, "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", "
ctitlet_namett_albtt_name
0love me doLove Me Do - Mono / RemasteredPlease Please Me (Remastered)Love Me Do - Remastered 2009
1she loves youShe Loves You - Mono / RemasteredLive At The Hollywood BowlShe Loves You - Live / Remastered
2i want to hold your handI Want To Hold Your Hand - Remastered 2015Live At The Hollywood BowlI Want To Hold Your Hand - Live / Bonus Track
3cant buy me loveCan't Buy Me Love - Remastered 2015Live At The Hollywood BowlCan't Buy Me Love - Live / Remastered
4cant buy me loveCan't Buy Me Love - Remastered 2015A Hard Day's Night (Remastered)Can't Buy Me Love - Remastered
5a hard days nightA Hard Day's Night - Remastered 2015Live At The Hollywood BowlA Hard Day's Night - Live / Remastered
6a hard days nightA Hard Day's Night - Remastered 2015A Hard Day's Night (Remastered)A Hard Day's Night - Remastered
7eight days a weekEight Days A Week - Remastered 2015Beatles For Sale (Remastered)Eight Days A Week - Remastered
8ticket to rideTicket To Ride - Remastered 2015Live At The Hollywood BowlTicket To Ride - Live / Remastered
9ticket to rideTicket To Ride - Remastered 2015Help! (Remastered)Ticket To Ride - Remastered
10helpHelp! - Remastered 2015Live At The Hollywood BowlHelp! - Live / Remastered
11helpHelp! - Remastered 2015Help! (Remastered)Help! - Remastered
12yesterdayYesterday - Remastered 2015Help! (Remastered)Yesterday - Remastered
13yellow submarineYellow Submarine - Remastered 2015Yellow Submarine (Remastered)Yellow Submarine - Remastered
14yellow submarineYellow Submarine - Remastered 2015Revolver (Remastered)Yellow Submarine - Remastered
15eleanor rigbyEleanor Rigby - Remastered 2015Revolver (Remastered)Eleanor Rigby - Remastered
16penny lanePenny Lane - Remastered 2015Magical Mystery Tour (Remastered)Penny Lane - Remastered 2009
17penny lanePenny Lane - Remastered 2015Sgt. Pepper's Lonely Hearts Club Band (Deluxe ...Penny Lane - Take 6 / Instrumental
18penny lanePenny Lane - Remastered 2015Sgt. Pepper's Lonely Hearts Club Band (Deluxe ...Penny Lane - Stereo Mix 2017
19all you need is loveAll You Need Is Love - Remastered 2015Yellow Submarine (Remastered)All You Need Is Love - Remastered
20all you need is loveAll You Need Is Love - Remastered 2015Magical Mystery Tour (Remastered)All You Need Is Love - Remastered 2009
21hello goodbyeHello, Goodbye - Remastered 2015Magical Mystery Tour (Remastered)Hello, Goodbye - Remastered 2009
22get backGet Back - Remastered 2015Let It Be (Remastered)Get Back - Remastered
23somethingSomething - Remastered 2015Abbey Road (Remastered)Something - Remastered
24come togetherCome Together - Remastered 2015Abbey Road (Remastered)Come Together - Remastered
25let it beLet It Be - Remastered 2015Let It Be (Remastered)Let It Be - Remastered
26the long and winding roadThe Long And Winding Road - Remastered 2015Let It Be (Remastered)The Long And Winding Road - Remastered
\n", "
" ], "text/plain": [ " ctitle t_name \\\n", "0 love me do Love Me Do - Mono / Remastered \n", "1 she loves you She Loves You - Mono / Remastered \n", "2 i want to hold your hand I Want To Hold Your Hand - Remastered 2015 \n", "3 cant buy me love Can't Buy Me Love - Remastered 2015 \n", "4 cant buy me love Can't Buy Me Love - Remastered 2015 \n", "5 a hard days night A Hard Day's Night - Remastered 2015 \n", "6 a hard days night A Hard Day's Night - Remastered 2015 \n", "7 eight days a week Eight Days A Week - Remastered 2015 \n", "8 ticket to ride Ticket To Ride - Remastered 2015 \n", "9 ticket to ride Ticket To Ride - Remastered 2015 \n", "10 help Help! - Remastered 2015 \n", "11 help Help! - Remastered 2015 \n", "12 yesterday Yesterday - Remastered 2015 \n", "13 yellow submarine Yellow Submarine - Remastered 2015 \n", "14 yellow submarine Yellow Submarine - Remastered 2015 \n", "15 eleanor rigby Eleanor Rigby - Remastered 2015 \n", "16 penny lane Penny Lane - Remastered 2015 \n", "17 penny lane Penny Lane - Remastered 2015 \n", "18 penny lane Penny Lane - Remastered 2015 \n", "19 all you need is love All You Need Is Love - Remastered 2015 \n", "20 all you need is love All You Need Is Love - Remastered 2015 \n", "21 hello goodbye Hello, Goodbye - Remastered 2015 \n", "22 get back Get Back - Remastered 2015 \n", "23 something Something - Remastered 2015 \n", "24 come together Come Together - Remastered 2015 \n", "25 let it be Let It Be - Remastered 2015 \n", "26 the long and winding road The Long And Winding Road - Remastered 2015 \n", "\n", " tt_alb \\\n", "0 Please Please Me (Remastered) \n", "1 Live At The Hollywood Bowl \n", "2 Live At The Hollywood Bowl \n", "3 Live At The Hollywood Bowl \n", "4 A Hard Day's Night (Remastered) \n", "5 Live At The Hollywood Bowl \n", "6 A Hard Day's Night (Remastered) \n", "7 Beatles For Sale (Remastered) \n", "8 Live At The Hollywood Bowl \n", "9 Help! (Remastered) \n", "10 Live At The Hollywood Bowl \n", "11 Help! (Remastered) \n", "12 Help! (Remastered) \n", "13 Yellow Submarine (Remastered) \n", "14 Revolver (Remastered) \n", "15 Revolver (Remastered) \n", "16 Magical Mystery Tour (Remastered) \n", "17 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "18 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "19 Yellow Submarine (Remastered) \n", "20 Magical Mystery Tour (Remastered) \n", "21 Magical Mystery Tour (Remastered) \n", "22 Let It Be (Remastered) \n", "23 Abbey Road (Remastered) \n", "24 Abbey Road (Remastered) \n", "25 Let It Be (Remastered) \n", "26 Let It Be (Remastered) \n", "\n", " tt_name \n", "0 Love Me Do - Remastered 2009 \n", "1 She Loves You - Live / Remastered \n", "2 I Want To Hold Your Hand - Live / Bonus Track \n", "3 Can't Buy Me Love - Live / Remastered \n", "4 Can't Buy Me Love - Remastered \n", "5 A Hard Day's Night - Live / Remastered \n", "6 A Hard Day's Night - Remastered \n", "7 Eight Days A Week - Remastered \n", "8 Ticket To Ride - Live / Remastered \n", "9 Ticket To Ride - Remastered \n", "10 Help! - Live / Remastered \n", "11 Help! - Remastered \n", "12 Yesterday - Remastered \n", "13 Yellow Submarine - Remastered \n", "14 Yellow Submarine - Remastered \n", "15 Eleanor Rigby - Remastered \n", "16 Penny Lane - Remastered 2009 \n", "17 Penny Lane - Take 6 / Instrumental \n", "18 Penny Lane - Stereo Mix 2017 \n", "19 All You Need Is Love - Remastered \n", "20 All You Need Is Love - Remastered 2009 \n", "21 Hello, Goodbye - Remastered 2009 \n", "22 Get Back - Remastered \n", "23 Something - Remastered \n", "24 Come Together - Remastered \n", "25 Let It Be - Remastered \n", "26 The Long And Winding Road - Remastered " ] }, "execution_count": 90, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list({'ctitle': t['ctitle'], 't_name': t['name'],\n", " 'tt_name': tt['name'], 'tt_alb': tt['album']['name']}\n", " for t in tracks.find({'album_id': '5ju5Ouzan3QwXqQt1Tihbh'}, ['name', 'ctitle'])\n", " for tt in tracks.find({'ctitle': t['ctitle']}, ['name', 'ctitle', 'album.name', 'album_id'])\n", " if tt['album_id'] != '5ju5Ouzan3QwXqQt1Tihbh'))" ] }, { "cell_type": "code", "execution_count": 91, "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", "
ctitlet_name
0from me to youFrom Me To You - Mono / Remastered
1i feel fineI Feel Fine - Remastered 2015
2day tripperDay Tripper - Remastered 2015
3we can work it outWe Can Work It Out - Remastered 2015
4paperback writerPaperback Writer - Remastered 2015
5lady madonnaLady Madonna - Remastered 2015
6hey judeHey Jude - Remastered 2015
7the ballad of john and yokoThe Ballad Of John And Yoko - Remastered 2015
\n", "
" ], "text/plain": [ " ctitle t_name\n", "0 from me to you From Me To You - Mono / Remastered\n", "1 i feel fine I Feel Fine - Remastered 2015\n", "2 day tripper Day Tripper - Remastered 2015\n", "3 we can work it out We Can Work It Out - Remastered 2015\n", "4 paperback writer Paperback Writer - Remastered 2015\n", "5 lady madonna Lady Madonna - Remastered 2015\n", "6 hey jude Hey Jude - Remastered 2015\n", "7 the ballad of john and yoko The Ballad Of John And Yoko - Remastered 2015" ] }, "execution_count": 91, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list({'ctitle': t['ctitle'], 't_name': t['name']}\n", " for t in tracks.find({'album_id': '5ju5Ouzan3QwXqQt1Tihbh'}, ['name', 'ctitle'])\n", " if len(list(tracks.find({'ctitle': t['ctitle'],\n", " 'album_id': {'$ne': '5ju5Ouzan3QwXqQt1Tihbh' }}))) == 0))" ] }, { "cell_type": "code", "execution_count": 92, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[{'_id': '3H7sv3Krffn15BufUuXzf3',\n", " 'album': {'name': '1 (Remastered)'},\n", " 'ctitle': 'hey jude'}]" ] }, "execution_count": 92, "metadata": {}, "output_type": "execute_result" } ], "source": [ "[t for t in tracks.find({}, ['album.name', 'ctitle']) if 'jude' in t['ctitle']]" ] }, { "cell_type": "code", "execution_count": 93, "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", "
_idctitlename
04edArG2VehvJdwOZfYOxtKtwist and shoutTwist And Shout - Live / Remastered
1150EAeMGWJRubuH8zyx7h8shes a womanShe's A Woman - Live / Remastered
21fVeHYkyMxrjbjRAD9uWsZdizzy miss lizzyDizzy Miss Lizzy - Live / Remastered
30GRplBEB2FWCKutwMmS6nYticket to rideTicket To Ride - Live / Remastered
41eVymk74iroqhsZxm0Vy3gcant buy me loveCan't Buy Me Love - Live / Remastered
52p5a9gu6NECVSvBtGSU1vmthings we said todayThings We Said Today - Live / Remastered
61HyLh5cctOnP186CBi8bhmroll over beethovenRoll Over Beethoven - Live / Remastered
77fZEWm7TAL2oZDyiYrrgnkboysBoys - Live / Remastered
821nhooOxso7CCoHPE73w4La hard days nightA Hard Day's Night - Live / Remastered
91alcPfZWUHh01l4Fnoo5JthelpHelp! - Live / Remastered
1024gUDXSQysdnTaRpbWtYlKall my lovingAll My Loving - Live / Remastered
112VmFFbXSJzYxzEJSAeI0lMshe loves youShe Loves You - Live / Remastered
126b8lhQ86u5MddlmXulslpDlong tall sallyLong Tall Sally - Live / Remastered
131oKfZ5MTCSrv07hsHqJ0JSyou cant do thatYou Can't Do That - Live / Bonus Track
1404gBqA2mubcTgFqL9Domlji want to hold your handI Want To Hold Your Hand - Live / Bonus Track
1579QDgDoBbS7pCrOjIH7ByAeverybodys trying to be my babyEverybody’s Trying To Be My Baby - Live / Bonu...
161yV2I5c6efVSqSiuv9H2ADbabys in blackBaby's In Black - Live / Bonus Track
\n", "
" ], "text/plain": [ " _id ctitle \\\n", "0 4edArG2VehvJdwOZfYOxtK twist and shout \n", "1 150EAeMGWJRubuH8zyx7h8 shes a woman \n", "2 1fVeHYkyMxrjbjRAD9uWsZ dizzy miss lizzy \n", "3 0GRplBEB2FWCKutwMmS6nY ticket to ride \n", "4 1eVymk74iroqhsZxm0Vy3g cant buy me love \n", "5 2p5a9gu6NECVSvBtGSU1vm things we said today \n", "6 1HyLh5cctOnP186CBi8bhm roll over beethoven \n", "7 7fZEWm7TAL2oZDyiYrrgnk boys \n", "8 21nhooOxso7CCoHPE73w4L a hard days night \n", "9 1alcPfZWUHh01l4Fnoo5Jt help \n", "10 24gUDXSQysdnTaRpbWtYlK all my loving \n", "11 2VmFFbXSJzYxzEJSAeI0lM she loves you \n", "12 6b8lhQ86u5MddlmXulslpD long tall sally \n", "13 1oKfZ5MTCSrv07hsHqJ0JS you cant do that \n", "14 04gBqA2mubcTgFqL9Domlj i want to hold your hand \n", "15 79QDgDoBbS7pCrOjIH7ByA everybodys trying to be my baby \n", "16 1yV2I5c6efVSqSiuv9H2AD babys in black \n", "\n", " name \n", "0 Twist And Shout - Live / Remastered \n", "1 She's A Woman - Live / Remastered \n", "2 Dizzy Miss Lizzy - Live / Remastered \n", "3 Ticket To Ride - Live / Remastered \n", "4 Can't Buy Me Love - Live / Remastered \n", "5 Things We Said Today - Live / Remastered \n", "6 Roll Over Beethoven - Live / Remastered \n", "7 Boys - Live / Remastered \n", "8 A Hard Day's Night - Live / Remastered \n", "9 Help! - Live / Remastered \n", "10 All My Loving - Live / Remastered \n", "11 She Loves You - Live / Remastered \n", "12 Long Tall Sally - Live / Remastered \n", "13 You Can't Do That - Live / Bonus Track \n", "14 I Want To Hold Your Hand - Live / Bonus Track \n", "15 Everybody’s Trying To Be My Baby - Live / Bonu... \n", "16 Baby's In Black - Live / Bonus Track " ] }, "execution_count": 93, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list(tracks.find({'album_id': '5XfJmldgWzrc1AIdbBaVZn'}, ['name', 'ctitle'])))" ] }, { "cell_type": "code", "execution_count": 94, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 94, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tracks.update_many({'album_id': '5XfJmldgWzrc1AIdbBaVZn'}, {'$set': {'ignore': True}})" ] }, { "cell_type": "code", "execution_count": 95, "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", "
_idctitleignorename
04edArG2VehvJdwOZfYOxtKtwist and shoutTrueTwist And Shout - Live / Remastered
1150EAeMGWJRubuH8zyx7h8shes a womanTrueShe's A Woman - Live / Remastered
21fVeHYkyMxrjbjRAD9uWsZdizzy miss lizzyTrueDizzy Miss Lizzy - Live / Remastered
30GRplBEB2FWCKutwMmS6nYticket to rideTrueTicket To Ride - Live / Remastered
41eVymk74iroqhsZxm0Vy3gcant buy me loveTrueCan't Buy Me Love - Live / Remastered
52p5a9gu6NECVSvBtGSU1vmthings we said todayTrueThings We Said Today - Live / Remastered
61HyLh5cctOnP186CBi8bhmroll over beethovenTrueRoll Over Beethoven - Live / Remastered
77fZEWm7TAL2oZDyiYrrgnkboysTrueBoys - Live / Remastered
821nhooOxso7CCoHPE73w4La hard days nightTrueA Hard Day's Night - Live / Remastered
91alcPfZWUHh01l4Fnoo5JthelpTrueHelp! - Live / Remastered
1024gUDXSQysdnTaRpbWtYlKall my lovingTrueAll My Loving - Live / Remastered
112VmFFbXSJzYxzEJSAeI0lMshe loves youTrueShe Loves You - Live / Remastered
126b8lhQ86u5MddlmXulslpDlong tall sallyTrueLong Tall Sally - Live / Remastered
131oKfZ5MTCSrv07hsHqJ0JSyou cant do thatTrueYou Can't Do That - Live / Bonus Track
1404gBqA2mubcTgFqL9Domlji want to hold your handTrueI Want To Hold Your Hand - Live / Bonus Track
1579QDgDoBbS7pCrOjIH7ByAeverybodys trying to be my babyTrueEverybody’s Trying To Be My Baby - Live / Bonu...
161yV2I5c6efVSqSiuv9H2ADbabys in blackTrueBaby's In Black - Live / Bonus Track
\n", "
" ], "text/plain": [ " _id ctitle ignore \\\n", "0 4edArG2VehvJdwOZfYOxtK twist and shout True \n", "1 150EAeMGWJRubuH8zyx7h8 shes a woman True \n", "2 1fVeHYkyMxrjbjRAD9uWsZ dizzy miss lizzy True \n", "3 0GRplBEB2FWCKutwMmS6nY ticket to ride True \n", "4 1eVymk74iroqhsZxm0Vy3g cant buy me love True \n", "5 2p5a9gu6NECVSvBtGSU1vm things we said today True \n", "6 1HyLh5cctOnP186CBi8bhm roll over beethoven True \n", "7 7fZEWm7TAL2oZDyiYrrgnk boys True \n", "8 21nhooOxso7CCoHPE73w4L a hard days night True \n", "9 1alcPfZWUHh01l4Fnoo5Jt help True \n", "10 24gUDXSQysdnTaRpbWtYlK all my loving True \n", "11 2VmFFbXSJzYxzEJSAeI0lM she loves you True \n", "12 6b8lhQ86u5MddlmXulslpD long tall sally True \n", "13 1oKfZ5MTCSrv07hsHqJ0JS you cant do that True \n", "14 04gBqA2mubcTgFqL9Domlj i want to hold your hand True \n", "15 79QDgDoBbS7pCrOjIH7ByA everybodys trying to be my baby True \n", "16 1yV2I5c6efVSqSiuv9H2AD babys in black True \n", "\n", " name \n", "0 Twist And Shout - Live / Remastered \n", "1 She's A Woman - Live / Remastered \n", "2 Dizzy Miss Lizzy - Live / Remastered \n", "3 Ticket To Ride - Live / Remastered \n", "4 Can't Buy Me Love - Live / Remastered \n", "5 Things We Said Today - Live / Remastered \n", "6 Roll Over Beethoven - Live / Remastered \n", "7 Boys - Live / Remastered \n", "8 A Hard Day's Night - Live / Remastered \n", "9 Help! - Live / Remastered \n", "10 All My Loving - Live / Remastered \n", "11 She Loves You - Live / Remastered \n", "12 Long Tall Sally - Live / Remastered \n", "13 You Can't Do That - Live / Bonus Track \n", "14 I Want To Hold Your Hand - Live / Bonus Track \n", "15 Everybody’s Trying To Be My Baby - Live / Bonu... \n", "16 Baby's In Black - Live / Bonus Track " ] }, "execution_count": 95, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list(tracks.find({'album_id': '5XfJmldgWzrc1AIdbBaVZn'}, ['name', 'ctitle', 'ignore'])))" ] }, { "cell_type": "code", "execution_count": 96, "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", "
ctitlet_namett_albtt_name
0twist and shoutTwist And Shout - Live / RemasteredPlease Please Me (Remastered)Twist And Shout - Remastered 2009
1dizzy miss lizzyDizzy Miss Lizzy - Live / RemasteredHelp! (Remastered)Dizzy Miss Lizzy - Remastered
2ticket to rideTicket To Ride - Live / Remastered1 (Remastered)Ticket To Ride - Remastered 2015
3ticket to rideTicket To Ride - Live / RemasteredHelp! (Remastered)Ticket To Ride - Remastered
4cant buy me loveCan't Buy Me Love - Live / Remastered1 (Remastered)Can't Buy Me Love - Remastered 2015
5cant buy me loveCan't Buy Me Love - Live / RemasteredA Hard Day's Night (Remastered)Can't Buy Me Love - Remastered
6things we said todayThings We Said Today - Live / RemasteredA Hard Day's Night (Remastered)Things We Said Today - Remastered
7roll over beethovenRoll Over Beethoven - Live / RemasteredWith The Beatles (Remastered)Roll Over Beethoven - Remastered
8roll over beethovenRoll Over Beethoven - Live / RemasteredOn Air (Deluxe)Roll Over Beethoven - Saturday Club / 1963
9boysBoys - Live / RemasteredPlease Please Me (Remastered)Boys - Remastered 2009
10a hard days nightA Hard Day's Night - Live / Remastered1 (Remastered)A Hard Day's Night - Remastered 2015
11a hard days nightA Hard Day's Night - Live / RemasteredA Hard Day's Night (Remastered)A Hard Day's Night - Remastered
12helpHelp! - Live / Remastered1 (Remastered)Help! - Remastered 2015
13helpHelp! - Live / RemasteredHelp! (Remastered)Help! - Remastered
14all my lovingAll My Loving - Live / RemasteredWith The Beatles (Remastered)All My Loving - Remastered
15she loves youShe Loves You - Live / Remastered1 (Remastered)She Loves You - Mono / Remastered
16you cant do thatYou Can't Do That - Live / Bonus TrackA Hard Day's Night (Remastered)You Can't Do That - Remastered
17i want to hold your handI Want To Hold Your Hand - Live / Bonus Track1 (Remastered)I Want To Hold Your Hand - Remastered 2015
18everybodys trying to be my babyEverybody’s Trying To Be My Baby - Live / Bonu...Beatles For Sale (Remastered)Everybody's Trying To Be My Baby - Remastered
19babys in blackBaby's In Black - Live / Bonus TrackBeatles For Sale (Remastered)Baby's In Black - Remastered
\n", "
" ], "text/plain": [ " ctitle \\\n", "0 twist and shout \n", "1 dizzy miss lizzy \n", "2 ticket to ride \n", "3 ticket to ride \n", "4 cant buy me love \n", "5 cant buy me love \n", "6 things we said today \n", "7 roll over beethoven \n", "8 roll over beethoven \n", "9 boys \n", "10 a hard days night \n", "11 a hard days night \n", "12 help \n", "13 help \n", "14 all my loving \n", "15 she loves you \n", "16 you cant do that \n", "17 i want to hold your hand \n", "18 everybodys trying to be my baby \n", "19 babys in black \n", "\n", " t_name \\\n", "0 Twist And Shout - Live / Remastered \n", "1 Dizzy Miss Lizzy - Live / Remastered \n", "2 Ticket To Ride - Live / Remastered \n", "3 Ticket To Ride - Live / Remastered \n", "4 Can't Buy Me Love - Live / Remastered \n", "5 Can't Buy Me Love - Live / Remastered \n", "6 Things We Said Today - Live / Remastered \n", "7 Roll Over Beethoven - Live / Remastered \n", "8 Roll Over Beethoven - Live / Remastered \n", "9 Boys - Live / Remastered \n", "10 A Hard Day's Night - Live / Remastered \n", "11 A Hard Day's Night - Live / Remastered \n", "12 Help! - Live / Remastered \n", "13 Help! - Live / Remastered \n", "14 All My Loving - Live / Remastered \n", "15 She Loves You - Live / Remastered \n", "16 You Can't Do That - Live / Bonus Track \n", "17 I Want To Hold Your Hand - Live / Bonus Track \n", "18 Everybody’s Trying To Be My Baby - Live / Bonu... \n", "19 Baby's In Black - Live / Bonus Track \n", "\n", " tt_alb \\\n", "0 Please Please Me (Remastered) \n", "1 Help! (Remastered) \n", "2 1 (Remastered) \n", "3 Help! (Remastered) \n", "4 1 (Remastered) \n", "5 A Hard Day's Night (Remastered) \n", "6 A Hard Day's Night (Remastered) \n", "7 With The Beatles (Remastered) \n", "8 On Air (Deluxe) \n", "9 Please Please Me (Remastered) \n", "10 1 (Remastered) \n", "11 A Hard Day's Night (Remastered) \n", "12 1 (Remastered) \n", "13 Help! (Remastered) \n", "14 With The Beatles (Remastered) \n", "15 1 (Remastered) \n", "16 A Hard Day's Night (Remastered) \n", "17 1 (Remastered) \n", "18 Beatles For Sale (Remastered) \n", "19 Beatles For Sale (Remastered) \n", "\n", " tt_name \n", "0 Twist And Shout - Remastered 2009 \n", "1 Dizzy Miss Lizzy - Remastered \n", "2 Ticket To Ride - Remastered 2015 \n", "3 Ticket To Ride - Remastered \n", "4 Can't Buy Me Love - Remastered 2015 \n", "5 Can't Buy Me Love - Remastered \n", "6 Things We Said Today - Remastered \n", "7 Roll Over Beethoven - Remastered \n", "8 Roll Over Beethoven - Saturday Club / 1963 \n", "9 Boys - Remastered 2009 \n", "10 A Hard Day's Night - Remastered 2015 \n", "11 A Hard Day's Night - Remastered \n", "12 Help! - Remastered 2015 \n", "13 Help! - Remastered \n", "14 All My Loving - Remastered \n", "15 She Loves You - Mono / Remastered \n", "16 You Can't Do That - Remastered \n", "17 I Want To Hold Your Hand - Remastered 2015 \n", "18 Everybody's Trying To Be My Baby - Remastered \n", "19 Baby's In Black - Remastered " ] }, "execution_count": 96, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list({'ctitle': t['ctitle'], 't_name': t['name'],\n", " 'tt_name': tt['name'], 'tt_alb': tt['album']['name']}\n", " for t in tracks.find({'album_id': '5XfJmldgWzrc1AIdbBaVZn'}, ['name', 'ctitle'])\n", " for tt in tracks.find({'ctitle': t['ctitle'], \n", " 'album_id': {'$ne': '5XfJmldgWzrc1AIdbBaVZn'}}, \n", " ['name', 'ctitle', 'album.name', 'album_id'])))" ] }, { "cell_type": "code", "execution_count": 97, "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", "
ctitlet_name
0shes a womanShe's A Woman - Live / Remastered
1long tall sallyLong Tall Sally - Live / Remastered
\n", "
" ], "text/plain": [ " ctitle t_name\n", "0 shes a woman She's A Woman - Live / Remastered\n", "1 long tall sally Long Tall Sally - Live / Remastered" ] }, "execution_count": 97, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list({'ctitle': t['ctitle'], 't_name': t['name']}\n", " for t in tracks.find({'album_id': '5XfJmldgWzrc1AIdbBaVZn'}, ['name', 'ctitle'])\n", " if len(list(tracks.find({'ctitle': t['ctitle'],\n", " 'album_id': {'$ne': '5XfJmldgWzrc1AIdbBaVZn' }}))) == 0))" ] }, { "cell_type": "code", "execution_count": 98, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "dict_keys(['artists', 'id', 'images', 'href', 'album_type', 'available_markets', 'uri', 'type', 'name', 'external_urls'])" ] }, "execution_count": 98, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tracks.find_one()['album'].keys()" ] }, { "cell_type": "code", "execution_count": 99, "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", "
_idctitlet_namett_albtt_name
05JT7CoUSGNk7mMNkHMQjqrlove me doLove Me Do - Mono / RemasteredPlease Please Me (Remastered)Love Me Do - Remastered 2009
17pQAq14Z73YUFMtxCyt0bGcant buy me loveCan't Buy Me Love - Remastered 2015A Hard Day's Night (Remastered)Can't Buy Me Love - Remastered
20mNQUZEATk2uItMUtiLWK5a hard days nightA Hard Day's Night - Remastered 2015A Hard Day's Night (Remastered)A Hard Day's Night - Remastered
33nhJDVdUrm6DnDW4iBfpKzeight days a weekEight Days A Week - Remastered 2015Beatles For Sale (Remastered)Eight Days A Week - Remastered
46pkjW5srxjzRSKKMrl7et8ticket to rideTicket To Ride - Remastered 2015Help! (Remastered)Ticket To Ride - Remastered
51dfuJYDSIc41cw5RPsaCF1helpHelp! - Remastered 2015Help! (Remastered)Help! - Remastered
663uskN0xLezVg4281wzeQnyesterdayYesterday - Remastered 2015Help! (Remastered)Yesterday - Remastered
7727YRTVI7pKH1uCnXnyZulyellow submarineYellow Submarine - Remastered 2015Yellow Submarine (Remastered)Yellow Submarine - Remastered
8727YRTVI7pKH1uCnXnyZulyellow submarineYellow Submarine - Remastered 2015Revolver (Remastered)Yellow Submarine - Remastered
90TRkjwb4uY3CHb5zhr9bBdeleanor rigbyEleanor Rigby - Remastered 2015Revolver (Remastered)Eleanor Rigby - Remastered
105Kw6fC8wyRgMYfBDtEklYMpenny lanePenny Lane - Remastered 2015Magical Mystery Tour (Remastered)Penny Lane - Remastered 2009
115Kw6fC8wyRgMYfBDtEklYMpenny lanePenny Lane - Remastered 2015Sgt. Pepper's Lonely Hearts Club Band (Deluxe ...Penny Lane - Take 6 / Instrumental
125Kw6fC8wyRgMYfBDtEklYMpenny lanePenny Lane - Remastered 2015Sgt. Pepper's Lonely Hearts Club Band (Deluxe ...Penny Lane - Stereo Mix 2017
1356rXurvdpjoSIVggfd5ANSall you need is loveAll You Need Is Love - Remastered 2015Yellow Submarine (Remastered)All You Need Is Love - Remastered
1456rXurvdpjoSIVggfd5ANSall you need is loveAll You Need Is Love - Remastered 2015Magical Mystery Tour (Remastered)All You Need Is Love - Remastered 2009
150wFW5NQJdNDJPcZyfYSExxhello goodbyeHello, Goodbye - Remastered 2015Magical Mystery Tour (Remastered)Hello, Goodbye - Remastered 2009
164ajbplh2IXiJkXjQiq5aqqget backGet Back - Remastered 2015Let It Be (Remastered)Get Back - Remastered
176Y6UBWhifUnkJIO2mdy0S3somethingSomething - Remastered 2015Abbey Road (Remastered)Something - Remastered
187iABnSNZciNepqGtjMQxxdcome togetherCome Together - Remastered 2015Abbey Road (Remastered)Come Together - Remastered
1922QadBPe0QCuqraFVAr1m3let it beLet It Be - Remastered 2015Let It Be (Remastered)Let It Be - Remastered
200Oroc0HXQaxs8ONgI7dLnwthe long and winding roadThe Long And Winding Road - Remastered 2015Let It Be (Remastered)The Long And Winding Road - Remastered
\n", "
" ], "text/plain": [ " _id ctitle \\\n", "0 5JT7CoUSGNk7mMNkHMQjqr love me do \n", "1 7pQAq14Z73YUFMtxCyt0bG cant buy me love \n", "2 0mNQUZEATk2uItMUtiLWK5 a hard days night \n", "3 3nhJDVdUrm6DnDW4iBfpKz eight days a week \n", "4 6pkjW5srxjzRSKKMrl7et8 ticket to ride \n", "5 1dfuJYDSIc41cw5RPsaCF1 help \n", "6 63uskN0xLezVg4281wzeQn yesterday \n", "7 727YRTVI7pKH1uCnXnyZul yellow submarine \n", "8 727YRTVI7pKH1uCnXnyZul yellow submarine \n", "9 0TRkjwb4uY3CHb5zhr9bBd eleanor rigby \n", "10 5Kw6fC8wyRgMYfBDtEklYM penny lane \n", "11 5Kw6fC8wyRgMYfBDtEklYM penny lane \n", "12 5Kw6fC8wyRgMYfBDtEklYM penny lane \n", "13 56rXurvdpjoSIVggfd5ANS all you need is love \n", "14 56rXurvdpjoSIVggfd5ANS all you need is love \n", "15 0wFW5NQJdNDJPcZyfYSExx hello goodbye \n", "16 4ajbplh2IXiJkXjQiq5aqq get back \n", "17 6Y6UBWhifUnkJIO2mdy0S3 something \n", "18 7iABnSNZciNepqGtjMQxxd come together \n", "19 22QadBPe0QCuqraFVAr1m3 let it be \n", "20 0Oroc0HXQaxs8ONgI7dLnw the long and winding road \n", "\n", " t_name \\\n", "0 Love Me Do - Mono / Remastered \n", "1 Can't Buy Me Love - Remastered 2015 \n", "2 A Hard Day's Night - Remastered 2015 \n", "3 Eight Days A Week - Remastered 2015 \n", "4 Ticket To Ride - Remastered 2015 \n", "5 Help! - Remastered 2015 \n", "6 Yesterday - Remastered 2015 \n", "7 Yellow Submarine - Remastered 2015 \n", "8 Yellow Submarine - Remastered 2015 \n", "9 Eleanor Rigby - Remastered 2015 \n", "10 Penny Lane - Remastered 2015 \n", "11 Penny Lane - Remastered 2015 \n", "12 Penny Lane - Remastered 2015 \n", "13 All You Need Is Love - Remastered 2015 \n", "14 All You Need Is Love - Remastered 2015 \n", "15 Hello, Goodbye - Remastered 2015 \n", "16 Get Back - Remastered 2015 \n", "17 Something - Remastered 2015 \n", "18 Come Together - Remastered 2015 \n", "19 Let It Be - Remastered 2015 \n", "20 The Long And Winding Road - Remastered 2015 \n", "\n", " tt_alb \\\n", "0 Please Please Me (Remastered) \n", "1 A Hard Day's Night (Remastered) \n", "2 A Hard Day's Night (Remastered) \n", "3 Beatles For Sale (Remastered) \n", "4 Help! (Remastered) \n", "5 Help! (Remastered) \n", "6 Help! (Remastered) \n", "7 Yellow Submarine (Remastered) \n", "8 Revolver (Remastered) \n", "9 Revolver (Remastered) \n", "10 Magical Mystery Tour (Remastered) \n", "11 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "12 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "13 Yellow Submarine (Remastered) \n", "14 Magical Mystery Tour (Remastered) \n", "15 Magical Mystery Tour (Remastered) \n", "16 Let It Be (Remastered) \n", "17 Abbey Road (Remastered) \n", "18 Abbey Road (Remastered) \n", "19 Let It Be (Remastered) \n", "20 Let It Be (Remastered) \n", "\n", " tt_name \n", "0 Love Me Do - Remastered 2009 \n", "1 Can't Buy Me Love - Remastered \n", "2 A Hard Day's Night - Remastered \n", "3 Eight Days A Week - Remastered \n", "4 Ticket To Ride - Remastered \n", "5 Help! - Remastered \n", "6 Yesterday - Remastered \n", "7 Yellow Submarine - Remastered \n", "8 Yellow Submarine - Remastered \n", "9 Eleanor Rigby - Remastered \n", "10 Penny Lane - Remastered 2009 \n", "11 Penny Lane - Take 6 / Instrumental \n", "12 Penny Lane - Stereo Mix 2017 \n", "13 All You Need Is Love - Remastered \n", "14 All You Need Is Love - Remastered 2009 \n", "15 Hello, Goodbye - Remastered 2009 \n", "16 Get Back - Remastered \n", "17 Something - Remastered \n", "18 Come Together - Remastered \n", "19 Let It Be - Remastered \n", "20 The Long And Winding Road - Remastered " ] }, "execution_count": 99, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list({'_id': t['_id'], 'ctitle': t['ctitle'], 't_name': t['name'],\n", " 'tt_name': tt['name'], 'tt_alb': tt['album']['name']}\n", " for t in tracks.find({'album_id': '5ju5Ouzan3QwXqQt1Tihbh'}, ['name', 'ctitle'])\n", " for tt in tracks.find({'ctitle': t['ctitle'], \n", " 'album_id': {'$ne': '5ju5Ouzan3QwXqQt1Tihbh'},\n", " 'ignore': {'$exists': False}}, \n", " ['name', 'ctitle', 'album.name', 'album_id'])))" ] }, { "cell_type": "code", "execution_count": 100, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "['5JT7CoUSGNk7mMNkHMQjqr',\n", " '7pQAq14Z73YUFMtxCyt0bG',\n", " '0mNQUZEATk2uItMUtiLWK5',\n", " '3nhJDVdUrm6DnDW4iBfpKz',\n", " '6pkjW5srxjzRSKKMrl7et8',\n", " '1dfuJYDSIc41cw5RPsaCF1',\n", " '63uskN0xLezVg4281wzeQn',\n", " '727YRTVI7pKH1uCnXnyZul',\n", " '727YRTVI7pKH1uCnXnyZul',\n", " '0TRkjwb4uY3CHb5zhr9bBd',\n", " '5Kw6fC8wyRgMYfBDtEklYM',\n", " '5Kw6fC8wyRgMYfBDtEklYM',\n", " '5Kw6fC8wyRgMYfBDtEklYM',\n", " '56rXurvdpjoSIVggfd5ANS',\n", " '56rXurvdpjoSIVggfd5ANS',\n", " '0wFW5NQJdNDJPcZyfYSExx',\n", " '4ajbplh2IXiJkXjQiq5aqq',\n", " '6Y6UBWhifUnkJIO2mdy0S3',\n", " '7iABnSNZciNepqGtjMQxxd',\n", " '22QadBPe0QCuqraFVAr1m3',\n", " '0Oroc0HXQaxs8ONgI7dLnw']" ] }, "execution_count": 100, "metadata": {}, "output_type": "execute_result" } ], "source": [ "ignore_tracks = [t['_id']\n", " for t in tracks.find({'album_id': '5ju5Ouzan3QwXqQt1Tihbh'}, ['name', 'ctitle'])\n", " for tt in tracks.find({'ctitle': t['ctitle'], \n", " 'album_id': {'$ne': '5ju5Ouzan3QwXqQt1Tihbh'},\n", " 'ignore': {'$exists': False}}, \n", " ['name', 'ctitle', 'album.name', 'album_id'])]\n", "ignore_tracks" ] }, { "cell_type": "code", "execution_count": 101, "metadata": {}, "outputs": [], "source": [ "for t in ignore_tracks:\n", " tracks.update_one({'_id': t}, {'$set': {'ignore': True}})" ] }, { "cell_type": "code", "execution_count": 102, "metadata": {}, "outputs": [], "source": [ "stones_live_albums = ['4fhWcu56Bbh5wALuTouFVW', '3PbRKFafwE7Of8e4dTee72', '5eTqRwTGKPBUiUuN1rFaXD',\n", " '50UGtgNA5bq1c0BDjPfmbD', '4M8Q1L9PZq0xK5tLUpO3jd', '1W1UJulgICjFDyYIMUwRs7',\n", " '0hxrNynMDh5QeyALlf1CdS', '3CHu7qW160uqPZHW3TMZ1l']" ] }, { "cell_type": "code", "execution_count": 103, "metadata": {}, "outputs": [], "source": [ "for a in stones_live_albums:\n", " tracks.update_many({'album_id': a}, {'$set': {'ignore': True}})" ] }, { "cell_type": "code", "execution_count": 104, "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", "
_idctitlet_albt_namett_albtt_name
02uO1HbJhQvmXpjclLmLEeKjumpin jack flashSome Girls: Live In Texas '78Jumpin' Jack Flash - LiveTotally Stripped (Live)Jumpin’ Jack Flash - Live
11oluhsJUDe1uAVGwfsFpfgkey to the highwayDirty Work (Remastered 2009)Key To The Highway - Piano Instrumental/Remast...Dirty WorkKey To The Highway - Piano Instrumental
23v2SyLXNg7IY3I3N6QTZ45jumpin jack flashLadies & Gentlemen (Live)Jumpin' Jack Flash - LiveSome Girls: Live In Texas '78Jumpin' Jack Flash - Live
33v2SyLXNg7IY3I3N6QTZ45jumpin jack flashLadies & Gentlemen (Live)Jumpin' Jack Flash - LiveTotally Stripped (Live)Jumpin’ Jack Flash - Live
45Y77giAAAmU9EpfHBDbBV8you got me rockinTotally Stripped - Brixton (Live)You Got Me Rockin’ - LiveTotally Stripped - Paris (Live)You Got Me Rockin’ - Live
51w9FiXsMcaxb5SD8vIZgm3jumpin jack flashTotally Stripped - Brixton (Live)Jumpin’ Jack Flash - LiveSome Girls: Live In Texas '78Jumpin' Jack Flash - Live
61w9FiXsMcaxb5SD8vIZgm3jumpin jack flashTotally Stripped - Brixton (Live)Jumpin’ Jack Flash - LiveLadies & Gentlemen (Live)Jumpin' Jack Flash - Live
71w9FiXsMcaxb5SD8vIZgm3jumpin jack flashTotally Stripped - Brixton (Live)Jumpin’ Jack Flash - LiveTotally Stripped (Live)Jumpin’ Jack Flash - Live
81w9FiXsMcaxb5SD8vIZgm3jumpin jack flashTotally Stripped - Brixton (Live)Jumpin’ Jack Flash - LiveTotally Stripped - Paris (Live)Jumpin’ Jack Flash - Live
91tEdH58k6r4CvjEhmxxbMCjumpin jack flashTotally Stripped - Paris (Live)Jumpin’ Jack Flash - LiveSome Girls: Live In Texas '78Jumpin' Jack Flash - Live
101tEdH58k6r4CvjEhmxxbMCjumpin jack flashTotally Stripped - Paris (Live)Jumpin’ Jack Flash - LiveLadies & Gentlemen (Live)Jumpin' Jack Flash - Live
111tEdH58k6r4CvjEhmxxbMCjumpin jack flashTotally Stripped - Paris (Live)Jumpin’ Jack Flash - LiveTotally Stripped (Live)Jumpin’ Jack Flash - Live
120Za26pWVLQpKfXmb9FX10SrespectableSome GirlsRespectable - RemasteredSome Girls: Live In Texas '78Respectable - Live
130Za26pWVLQpKfXmb9FX10SrespectableSome GirlsRespectable - RemasteredTotally Stripped - Amsterdam (Live)Respectable - Live
140832Tptls5YicHPGgw7ssPbeast of burdenSome GirlsBeast Of Burden - RemasteredTotally Stripped - Amsterdam (Live)Beast Of Burden - Live
150832Tptls5YicHPGgw7ssPbeast of burdenSome GirlsBeast Of Burden - RemasteredTotally Stripped - Paris (Live)Beast Of Burden - Live
160832Tptls5YicHPGgw7ssPbeast of burdenSome GirlsBeast Of Burden - RemasteredSome Girls: Live In Texas '78Beast Of Burden - Live
176yq33zsqWCd8cYXQdtAFZ9shatteredSome GirlsShattered - RemasteredSome Girls: Live In Texas '78Shattered - Live
186yq33zsqWCd8cYXQdtAFZ9shatteredSome GirlsShattered - RemasteredTotally Stripped - Paris (Live)Shattered - Live
195pTWpY8l7B1XcQnijEFGFjmiss youSome Girls (Deluxe Version)Miss You - RemasteredSome GirlsMiss You - Remastered
205pTWpY8l7B1XcQnijEFGFjmiss youSome Girls (Deluxe Version)Miss You - RemasteredTotally Stripped (Live)Miss You - Live
215pTWpY8l7B1XcQnijEFGFjmiss youSome Girls (Deluxe Version)Miss You - RemasteredTotally Stripped - Brixton (Live)Miss You - Live
225pTWpY8l7B1XcQnijEFGFjmiss youSome Girls (Deluxe Version)Miss You - RemasteredTotally Stripped - Paris (Live)Miss You - Live
235pTWpY8l7B1XcQnijEFGFjmiss youSome Girls (Deluxe Version)Miss You - RemasteredSome Girls: Live In Texas '78Miss You - Live
244E8qFhiuYAWEYYAsYIf4dWwhen the whip comes downSome Girls (Deluxe Version)When The Whip Comes Down - RemasteredSome GirlsWhen The Whip Comes Down - Remastered
254E8qFhiuYAWEYYAsYIf4dWwhen the whip comes downSome Girls (Deluxe Version)When The Whip Comes Down - RemasteredSome Girls: Live In Texas '78When The Whip Comes Down - Live
267sDQlyQACyT7mNHFwwEMI7just my imagination running away with meSome Girls (Deluxe Version)Just My Imagination (Running Away With Me) - R...Some GirlsJust My Imagination (Running Away With Me) - R...
2748bJ1sWhJKdB8M43uqi924some girlsSome Girls (Deluxe Version)Some Girls - RemasteredSome GirlsSome Girls - Remastered
286362zAWHGgbrQaoeCFZpuOliesSome Girls (Deluxe Version)Lies - RemasteredSome GirlsLies - Remastered
294RlD0KvoqPZy5n9Zi76X9lfar away eyesSome Girls (Deluxe Version)Far Away Eyes - RemasteredSome Girls: Live In Texas '78Far Away Eyes - Live
.....................
1537tXuNR6xy9wGBXatDfqFEjall down the lineTotally Stripped - Paris (Live)All Down The Line - LiveSome Girls: Live In Texas '78All Down The Line - Live
1543nGR1fpxsAfDdZc9wwm16ushatteredTotally Stripped - Paris (Live)Shattered - LiveSome Girls: Live In Texas '78Shattered - Live
1554Uq4cdVjNDZFtiuzTopRacbeast of burdenTotally Stripped - Paris (Live)Beast Of Burden - LiveTotally Stripped - Amsterdam (Live)Beast Of Burden - Live
1564Uq4cdVjNDZFtiuzTopRacbeast of burdenTotally Stripped - Paris (Live)Beast Of Burden - LiveSome Girls: Live In Texas '78Beast Of Burden - Live
1577i0HwPhGd77HqpGliF8hWClet it bleedTotally Stripped - Paris (Live)Let It Bleed - LiveTotally Stripped - Amsterdam (Live)Let It Bleed - Live
1587ccGJ2vLgjqUDmfn9m66obangieTotally Stripped - Paris (Live)Angie - LiveTotally Stripped - Amsterdam (Live)Angie - Live
15957H3scKLSd9UOWzjfxa8Ctwild horsesTotally Stripped - Paris (Live)Wild Horses - LiveTotally Stripped - Amsterdam (Live)Wild Horses - Live
1603ovO4GmtWckNKeFItjPDVPshine a lightTotally Stripped - Paris (Live)Shine A Light - LiveTotally Stripped (Live)Shine A Light - Live
1613ovO4GmtWckNKeFItjPDVPshine a lightTotally Stripped - Paris (Live)Shine A Light - LiveTotally Stripped - Amsterdam (Live)Shine A Light - Live
1622jaOxamwOcyjN1E4ut6CK1like a rolling stoneTotally Stripped - Paris (Live)Like A Rolling Stone - LiveTotally Stripped (Live)Like A Rolling Stone - Live
1632jaOxamwOcyjN1E4ut6CK1like a rolling stoneTotally Stripped - Paris (Live)Like A Rolling Stone - LiveTotally Stripped - Amsterdam (Live)Like A Rolling Stone - Live
1646zL5bMJTpJKrf2xkU85b0ji go wildTotally Stripped - Paris (Live)I Go Wild - LiveTotally Stripped (Live)I Go Wild - Live
1656WKiTv7SJ486taXpKIMANrmiss youTotally Stripped - Paris (Live)Miss You - LiveTotally Stripped (Live)Miss You - Live
1666WKiTv7SJ486taXpKIMANrmiss youTotally Stripped - Paris (Live)Miss You - LiveSome Girls: Live In Texas '78Miss You - Live
1670v4MSSHsVfsog0miOeNCDMconnectionTotally Stripped - Paris (Live)Connection - LiveTotally Stripped - Amsterdam (Live)Connection - Live
1684Eh4q5GJegCgMQU1E7rRl7slipping awayTotally Stripped - Paris (Live)Slipping Away - LiveSteel Wheels (Remastered 2009)Slipping Away - Remastered
1694Eh4q5GJegCgMQU1E7rRl7slipping awayTotally Stripped - Paris (Live)Slipping Away - LiveTotally Stripped - Amsterdam (Live)Slipping Away - Live
1700DK2fsv7gaw2q4P41wtW94midnight ramblerTotally Stripped - Paris (Live)Midnight Rambler - LiveLadies & Gentlemen (Live)Midnight Rambler - Live
1710DK2fsv7gaw2q4P41wtW94midnight ramblerTotally Stripped - Paris (Live)Midnight Rambler - LiveTotally Stripped (Live)Midnight Rambler - Live
1721mnDusx7zn2yzmr42hUksErip this jointTotally Stripped - Paris (Live)Rip This Joint - LiveLadies & Gentlemen (Live)Rip This Joint - Live
1731mnDusx7zn2yzmr42hUksErip this jointTotally Stripped - Paris (Live)Rip This Joint - LiveTotally Stripped (Live)Rip This Joint - Live
1741mnDusx7zn2yzmr42hUksErip this jointTotally Stripped - Paris (Live)Rip This Joint - LiveTotally Stripped - Amsterdam (Live)Rip This Joint - Live
1755lWzRBoBzcfr1oNYNhR5acstart me upTotally Stripped - Paris (Live)Start Me Up - LiveTattoo You (2009 Re-Mastered)Start Me Up - Remastered
1764EllMMamxvLvwvOQLsyc9Wbrown sugarTotally Stripped - Paris (Live)Brown Sugar - LiveSome Girls: Live In Texas '78Brown Sugar - Live
1774EllMMamxvLvwvOQLsyc9Wbrown sugarTotally Stripped - Paris (Live)Brown Sugar - LiveLadies & Gentlemen (Live)Brown Sugar - Live
1784EllMMamxvLvwvOQLsyc9Wbrown sugarTotally Stripped - Paris (Live)Brown Sugar - LiveTotally Stripped (Live)Brown Sugar - Live
1791F69leTp8WQHMFVQ5gOtISmannish boyLive At The Checkerboard LoungeMannish Boy - LiveLive At The Checkerboard LoungeMannish Boy - Live
1806dx6G9OexgRFCulfKI4sPNall down the lineSome Girls: Live In Texas '78All Down The Line - LiveTotally Stripped - Amsterdam (Live)All Down The Line - Live
18116FlhqpxLT6WTfiLVEZ7Vvbeast of burdenSome Girls: Live In Texas '78Beast Of Burden - LiveTotally Stripped - Amsterdam (Live)Beast Of Burden - Live
1825UXwp4rKvtXtKJpe0iIctMmiss youSome Girls: Live In Texas '78Miss You - LiveTotally Stripped (Live)Miss You - Live
\n", "

183 rows × 6 columns

\n", "
" ], "text/plain": [ " _id ctitle \\\n", "0 2uO1HbJhQvmXpjclLmLEeK jumpin jack flash \n", "1 1oluhsJUDe1uAVGwfsFpfg key to the highway \n", "2 3v2SyLXNg7IY3I3N6QTZ45 jumpin jack flash \n", "3 3v2SyLXNg7IY3I3N6QTZ45 jumpin jack flash \n", "4 5Y77giAAAmU9EpfHBDbBV8 you got me rockin \n", "5 1w9FiXsMcaxb5SD8vIZgm3 jumpin jack flash \n", "6 1w9FiXsMcaxb5SD8vIZgm3 jumpin jack flash \n", "7 1w9FiXsMcaxb5SD8vIZgm3 jumpin jack flash \n", "8 1w9FiXsMcaxb5SD8vIZgm3 jumpin jack flash \n", "9 1tEdH58k6r4CvjEhmxxbMC jumpin jack flash \n", "10 1tEdH58k6r4CvjEhmxxbMC jumpin jack flash \n", "11 1tEdH58k6r4CvjEhmxxbMC jumpin jack flash \n", "12 0Za26pWVLQpKfXmb9FX10S respectable \n", "13 0Za26pWVLQpKfXmb9FX10S respectable \n", "14 0832Tptls5YicHPGgw7ssP beast of burden \n", "15 0832Tptls5YicHPGgw7ssP beast of burden \n", "16 0832Tptls5YicHPGgw7ssP beast of burden \n", "17 6yq33zsqWCd8cYXQdtAFZ9 shattered \n", "18 6yq33zsqWCd8cYXQdtAFZ9 shattered \n", "19 5pTWpY8l7B1XcQnijEFGFj miss you \n", "20 5pTWpY8l7B1XcQnijEFGFj miss you \n", "21 5pTWpY8l7B1XcQnijEFGFj miss you \n", "22 5pTWpY8l7B1XcQnijEFGFj miss you \n", "23 5pTWpY8l7B1XcQnijEFGFj miss you \n", "24 4E8qFhiuYAWEYYAsYIf4dW when the whip comes down \n", "25 4E8qFhiuYAWEYYAsYIf4dW when the whip comes down \n", "26 7sDQlyQACyT7mNHFwwEMI7 just my imagination running away with me \n", "27 48bJ1sWhJKdB8M43uqi924 some girls \n", "28 6362zAWHGgbrQaoeCFZpuO lies \n", "29 4RlD0KvoqPZy5n9Zi76X9l far away eyes \n", ".. ... ... \n", "153 7tXuNR6xy9wGBXatDfqFEj all down the line \n", "154 3nGR1fpxsAfDdZc9wwm16u shattered \n", "155 4Uq4cdVjNDZFtiuzTopRac beast of burden \n", "156 4Uq4cdVjNDZFtiuzTopRac beast of burden \n", "157 7i0HwPhGd77HqpGliF8hWC let it bleed \n", "158 7ccGJ2vLgjqUDmfn9m66ob angie \n", "159 57H3scKLSd9UOWzjfxa8Ct wild horses \n", "160 3ovO4GmtWckNKeFItjPDVP shine a light \n", "161 3ovO4GmtWckNKeFItjPDVP shine a light \n", "162 2jaOxamwOcyjN1E4ut6CK1 like a rolling stone \n", "163 2jaOxamwOcyjN1E4ut6CK1 like a rolling stone \n", "164 6zL5bMJTpJKrf2xkU85b0j i go wild \n", "165 6WKiTv7SJ486taXpKIMANr miss you \n", "166 6WKiTv7SJ486taXpKIMANr miss you \n", "167 0v4MSSHsVfsog0miOeNCDM connection \n", "168 4Eh4q5GJegCgMQU1E7rRl7 slipping away \n", "169 4Eh4q5GJegCgMQU1E7rRl7 slipping away \n", "170 0DK2fsv7gaw2q4P41wtW94 midnight rambler \n", "171 0DK2fsv7gaw2q4P41wtW94 midnight rambler \n", "172 1mnDusx7zn2yzmr42hUksE rip this joint \n", "173 1mnDusx7zn2yzmr42hUksE rip this joint \n", "174 1mnDusx7zn2yzmr42hUksE rip this joint \n", "175 5lWzRBoBzcfr1oNYNhR5ac start me up \n", "176 4EllMMamxvLvwvOQLsyc9W brown sugar \n", "177 4EllMMamxvLvwvOQLsyc9W brown sugar \n", "178 4EllMMamxvLvwvOQLsyc9W brown sugar \n", "179 1F69leTp8WQHMFVQ5gOtIS mannish boy \n", "180 6dx6G9OexgRFCulfKI4sPN all down the line \n", "181 16FlhqpxLT6WTfiLVEZ7Vv beast of burden \n", "182 5UXwp4rKvtXtKJpe0iIctM miss you \n", "\n", " t_alb \\\n", "0 Some Girls: Live In Texas '78 \n", "1 Dirty Work (Remastered 2009) \n", "2 Ladies & Gentlemen (Live) \n", "3 Ladies & Gentlemen (Live) \n", "4 Totally Stripped - Brixton (Live) \n", "5 Totally Stripped - Brixton (Live) \n", "6 Totally Stripped - Brixton (Live) \n", "7 Totally Stripped - Brixton (Live) \n", "8 Totally Stripped - Brixton (Live) \n", "9 Totally Stripped - Paris (Live) \n", "10 Totally Stripped - Paris (Live) \n", "11 Totally Stripped - Paris (Live) \n", "12 Some Girls \n", "13 Some Girls \n", "14 Some Girls \n", "15 Some Girls \n", "16 Some Girls \n", "17 Some Girls \n", "18 Some Girls \n", "19 Some Girls (Deluxe Version) \n", "20 Some Girls (Deluxe Version) \n", "21 Some Girls (Deluxe Version) \n", "22 Some Girls (Deluxe Version) \n", "23 Some Girls (Deluxe Version) \n", "24 Some Girls (Deluxe Version) \n", "25 Some Girls (Deluxe Version) \n", "26 Some Girls (Deluxe Version) \n", "27 Some Girls (Deluxe Version) \n", "28 Some Girls (Deluxe Version) \n", "29 Some Girls (Deluxe Version) \n", ".. ... \n", "153 Totally Stripped - Paris (Live) \n", "154 Totally Stripped - Paris (Live) \n", "155 Totally Stripped - Paris (Live) \n", "156 Totally Stripped - Paris (Live) \n", "157 Totally Stripped - Paris (Live) \n", "158 Totally Stripped - Paris (Live) \n", "159 Totally Stripped - Paris (Live) \n", "160 Totally Stripped - Paris (Live) \n", "161 Totally Stripped - Paris (Live) \n", "162 Totally Stripped - Paris (Live) \n", "163 Totally Stripped - Paris (Live) \n", "164 Totally Stripped - Paris (Live) \n", "165 Totally Stripped - Paris (Live) \n", "166 Totally Stripped - Paris (Live) \n", "167 Totally Stripped - Paris (Live) \n", "168 Totally Stripped - Paris (Live) \n", "169 Totally Stripped - Paris (Live) \n", "170 Totally Stripped - Paris (Live) \n", "171 Totally Stripped - Paris (Live) \n", "172 Totally Stripped - Paris (Live) \n", "173 Totally Stripped - Paris (Live) \n", "174 Totally Stripped - Paris (Live) \n", "175 Totally Stripped - Paris (Live) \n", "176 Totally Stripped - Paris (Live) \n", "177 Totally Stripped - Paris (Live) \n", "178 Totally Stripped - Paris (Live) \n", "179 Live At The Checkerboard Lounge \n", "180 Some Girls: Live In Texas '78 \n", "181 Some Girls: Live In Texas '78 \n", "182 Some Girls: Live In Texas '78 \n", "\n", " t_name \\\n", "0 Jumpin' Jack Flash - Live \n", "1 Key To The Highway - Piano Instrumental/Remast... \n", "2 Jumpin' Jack Flash - Live \n", "3 Jumpin' Jack Flash - Live \n", "4 You Got Me Rockin’ - Live \n", "5 Jumpin’ Jack Flash - Live \n", "6 Jumpin’ Jack Flash - Live \n", "7 Jumpin’ Jack Flash - Live \n", "8 Jumpin’ Jack Flash - Live \n", "9 Jumpin’ Jack Flash - Live \n", "10 Jumpin’ Jack Flash - Live \n", "11 Jumpin’ Jack Flash - Live \n", "12 Respectable - Remastered \n", "13 Respectable - Remastered \n", "14 Beast Of Burden - Remastered \n", "15 Beast Of Burden - Remastered \n", "16 Beast Of Burden - Remastered \n", "17 Shattered - Remastered \n", "18 Shattered - Remastered \n", "19 Miss You - Remastered \n", "20 Miss You - Remastered \n", "21 Miss You - Remastered \n", "22 Miss You - Remastered \n", "23 Miss You - Remastered \n", "24 When The Whip Comes Down - Remastered \n", "25 When The Whip Comes Down - Remastered \n", "26 Just My Imagination (Running Away With Me) - R... \n", "27 Some Girls - Remastered \n", "28 Lies - Remastered \n", "29 Far Away Eyes - Remastered \n", ".. ... \n", "153 All Down The Line - Live \n", "154 Shattered - Live \n", "155 Beast Of Burden - Live \n", "156 Beast Of Burden - Live \n", "157 Let It Bleed - Live \n", "158 Angie - Live \n", "159 Wild Horses - Live \n", "160 Shine A Light - Live \n", "161 Shine A Light - Live \n", "162 Like A Rolling Stone - Live \n", "163 Like A Rolling Stone - Live \n", "164 I Go Wild - Live \n", "165 Miss You - Live \n", "166 Miss You - Live \n", "167 Connection - Live \n", "168 Slipping Away - Live \n", "169 Slipping Away - Live \n", "170 Midnight Rambler - Live \n", "171 Midnight Rambler - Live \n", "172 Rip This Joint - Live \n", "173 Rip This Joint - Live \n", "174 Rip This Joint - Live \n", "175 Start Me Up - Live \n", "176 Brown Sugar - Live \n", "177 Brown Sugar - Live \n", "178 Brown Sugar - Live \n", "179 Mannish Boy - Live \n", "180 All Down The Line - Live \n", "181 Beast Of Burden - Live \n", "182 Miss You - Live \n", "\n", " tt_alb \\\n", "0 Totally Stripped (Live) \n", "1 Dirty Work \n", "2 Some Girls: Live In Texas '78 \n", "3 Totally Stripped (Live) \n", "4 Totally Stripped - Paris (Live) \n", "5 Some Girls: Live In Texas '78 \n", "6 Ladies & Gentlemen (Live) \n", "7 Totally Stripped (Live) \n", "8 Totally Stripped - Paris (Live) \n", "9 Some Girls: Live In Texas '78 \n", "10 Ladies & Gentlemen (Live) \n", "11 Totally Stripped (Live) \n", "12 Some Girls: Live In Texas '78 \n", "13 Totally Stripped - Amsterdam (Live) \n", "14 Totally Stripped - Amsterdam (Live) \n", "15 Totally Stripped - Paris (Live) \n", "16 Some Girls: Live In Texas '78 \n", "17 Some Girls: Live In Texas '78 \n", "18 Totally Stripped - Paris (Live) \n", "19 Some Girls \n", "20 Totally Stripped (Live) \n", "21 Totally Stripped - Brixton (Live) \n", "22 Totally Stripped - Paris (Live) \n", "23 Some Girls: Live In Texas '78 \n", "24 Some Girls \n", "25 Some Girls: Live In Texas '78 \n", "26 Some Girls \n", "27 Some Girls \n", "28 Some Girls \n", "29 Some Girls: Live In Texas '78 \n", ".. ... \n", "153 Some Girls: Live In Texas '78 \n", "154 Some Girls: Live In Texas '78 \n", "155 Totally Stripped - Amsterdam (Live) \n", "156 Some Girls: Live In Texas '78 \n", "157 Totally Stripped - Amsterdam (Live) \n", "158 Totally Stripped - Amsterdam (Live) \n", "159 Totally Stripped - Amsterdam (Live) \n", "160 Totally Stripped (Live) \n", "161 Totally Stripped - Amsterdam (Live) \n", "162 Totally Stripped (Live) \n", "163 Totally Stripped - Amsterdam (Live) \n", "164 Totally Stripped (Live) \n", "165 Totally Stripped (Live) \n", "166 Some Girls: Live In Texas '78 \n", "167 Totally Stripped - Amsterdam (Live) \n", "168 Steel Wheels (Remastered 2009) \n", "169 Totally Stripped - Amsterdam (Live) \n", "170 Ladies & Gentlemen (Live) \n", "171 Totally Stripped (Live) \n", "172 Ladies & Gentlemen (Live) \n", "173 Totally Stripped (Live) \n", "174 Totally Stripped - Amsterdam (Live) \n", "175 Tattoo You (2009 Re-Mastered) \n", "176 Some Girls: Live In Texas '78 \n", "177 Ladies & Gentlemen (Live) \n", "178 Totally Stripped (Live) \n", "179 Live At The Checkerboard Lounge \n", "180 Totally Stripped - Amsterdam (Live) \n", "181 Totally Stripped - Amsterdam (Live) \n", "182 Totally Stripped (Live) \n", "\n", " tt_name \n", "0 Jumpin’ Jack Flash - Live \n", "1 Key To The Highway - Piano Instrumental \n", "2 Jumpin' Jack Flash - Live \n", "3 Jumpin’ Jack Flash - Live \n", "4 You Got Me Rockin’ - Live \n", "5 Jumpin' Jack Flash - Live \n", "6 Jumpin' Jack Flash - Live \n", "7 Jumpin’ Jack Flash - Live \n", "8 Jumpin’ Jack Flash - Live \n", "9 Jumpin' Jack Flash - Live \n", "10 Jumpin' Jack Flash - Live \n", "11 Jumpin’ Jack Flash - Live \n", "12 Respectable - Live \n", "13 Respectable - Live \n", "14 Beast Of Burden - Live \n", "15 Beast Of Burden - Live \n", "16 Beast Of Burden - Live \n", "17 Shattered - Live \n", "18 Shattered - Live \n", "19 Miss You - Remastered \n", "20 Miss You - Live \n", "21 Miss You - Live \n", "22 Miss You - Live \n", "23 Miss You - Live \n", "24 When The Whip Comes Down - Remastered \n", "25 When The Whip Comes Down - Live \n", "26 Just My Imagination (Running Away With Me) - R... \n", "27 Some Girls - Remastered \n", "28 Lies - Remastered \n", "29 Far Away Eyes - Live \n", ".. ... \n", "153 All Down The Line - Live \n", "154 Shattered - Live \n", "155 Beast Of Burden - Live \n", "156 Beast Of Burden - Live \n", "157 Let It Bleed - Live \n", "158 Angie - Live \n", "159 Wild Horses - Live \n", "160 Shine A Light - Live \n", "161 Shine A Light - Live \n", "162 Like A Rolling Stone - Live \n", "163 Like A Rolling Stone - Live \n", "164 I Go Wild - Live \n", "165 Miss You - Live \n", "166 Miss You - Live \n", "167 Connection - Live \n", "168 Slipping Away - Remastered \n", "169 Slipping Away - Live \n", "170 Midnight Rambler - Live \n", "171 Midnight Rambler - Live \n", "172 Rip This Joint - Live \n", "173 Rip This Joint - Live \n", "174 Rip This Joint - Live \n", "175 Start Me Up - Remastered \n", "176 Brown Sugar - Live \n", "177 Brown Sugar - Live \n", "178 Brown Sugar - Live \n", "179 Mannish Boy - Live \n", "180 All Down The Line - Live \n", "181 Beast Of Burden - Live \n", "182 Miss You - Live \n", "\n", "[183 rows x 6 columns]" ] }, "execution_count": 104, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list({'_id': t['_id'], 'ctitle': t['ctitle'], 't_name': t['name'], 't_alb': t['album']['name'],\n", " 'tt_name': tt['name'], 'tt_alb': tt['album']['name']}\n", " for t in tracks.find({'artist_id': stones_id, 'ignore': {'$exists': False}}, \n", " ['name', 'ctitle', 'album_id', 'album.name'])\n", " for tt in tracks.find({'ctitle': t['ctitle'], \n", " 'album_id': {'$lt': t['album_id']},\n", " 'ignore': {'$exists': False}}, \n", " ['name', 'ctitle', 'album.name', 'album_id'])))" ] }, { "cell_type": "code", "execution_count": 105, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(set(), set())" ] }, "execution_count": 105, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Dirty Work and Dirty Work Remastered\n", "dw = set(t['ctitle'] for t in tracks.find({'album_id': '1TpcI1LEFVhBvDPSTMPGFG'}))\n", "dwd = set(t['ctitle'] for t in tracks.find({'album_id': '1WSfNoPDPzgyKFN6OSYWUx'}))\n", "\n", "dw - dwd, dwd - dw" ] }, { "cell_type": "code", "execution_count": 106, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(set(),\n", " {'claudine',\n", " 'do you think i really care',\n", " 'dont be a stranger',\n", " 'i love you too much',\n", " 'keep up blues',\n", " 'no spare parts',\n", " 'petrol blues',\n", " 'so young',\n", " 'tallahassee lassie',\n", " 'we had it all',\n", " 'when youre gone',\n", " 'you win again'})" ] }, "execution_count": 106, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Some Girls and Some Girls Deluxe\n", "sg = set(t['ctitle'] for t in tracks.find({'album_id': '54sqbAXxR1jFfyXb1WvrHK'}))\n", "sgd = set(t['ctitle'] for t in tracks.find({'album_id': '6FjXxl9VLURGuubdXUn2J3'}))\n", "\n", "sg - sgd, sgd - sg" ] }, { "cell_type": "code", "execution_count": 107, "metadata": {}, "outputs": [], "source": [ "for a in ['1TpcI1LEFVhBvDPSTMPGFG', '54sqbAXxR1jFfyXb1WvrHK']:\n", " tracks.update_many({'album_id': a}, {'$set': {'ignore': True}})" ] }, { "cell_type": "code", "execution_count": 108, "metadata": { "scrolled": false }, "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", "
_idartist_namenamerelease_date
05XfJmldgWzrc1AIdbBaVZnThe BeatlesLive At The Hollywood Bowl2016-09-09
15ju5Ouzan3QwXqQt1TihbhThe Beatles1 (Remastered)2000-11-13
22pCqZLeavM2BMovJXsJEIVThe BeatlesLet It Be (Remastered)1970-05-08
32Pqkn9Dq2DFtdfkKAeqgMdThe BeatlesAbbey Road (Remastered)1969-09-26
447bcKzmKgmMPHXNVOWpLiuThe BeatlesYellow Submarine (Remastered)1969-01-17
503Qh833fEdVT30Pfs93ea6The BeatlesThe Beatles (Remastered)1968-11-22
66P9yO0ukhOx3dvmhGKeYoCThe BeatlesMagical Mystery Tour (Remastered)1967-11-27
71PULmKbHeOqlkIwcDMNwD4The BeatlesSgt. Pepper's Lonely Hearts Club Band (Remaste...1967-06-01
80PYyrqs9NXtxPhf0CZkq2LThe BeatlesRevolver (Remastered)1966-08-05
93OdI6e43crvyAHhaqpxSyzThe BeatlesRubber Soul (Remastered)1965-12-03
1019K3IHYeVkUTjcBHGfbCOiThe BeatlesHelp! (Remastered)1965-08-06
117BgGBZndAvDlKOcwe5rscZThe BeatlesBeatles For Sale (Remastered)1964-12-04
1271Mwd9tntFQYUk4k2DwA0DThe BeatlesA Hard Day's Night (Remastered)1964-07-10
131DBkJIEoeHrTX4WCBQGcCiRadioheadThe King Of Limbs2011-02-18
143nkEsxmIX0zRNXGAexaHAnThe BeatlesWith The Beatles (Remastered)1963-11-22
157gDXyW16byCQOgK965BRznThe BeatlesPlease Please Me (Remastered)1963-03-22
166vuykQgDLUCiZ7YggIpLM9RadioheadA Moon Shaped Pool2016-05-08
1747xaqCsJcYFWqD1gwujl1TRadioheadTKOL RMX 12345672011-10-10
187eyQXxuf2nGj9d2367Gi5fRadioheadIn Rainbows2007-12-28
1936lJLPoPPOKNFddTAcirncRadioheadIn Rainbows Disk 22007
206Eo5EkmdLvZrONzi046iC2RadioheadCom Lag: 2+2=52004-03-24
211oW3v5Har9mvXnGk0x4fHmRadioheadHail To the Thief2003
226svTt5o2lUgIrgYDKVmdnDRadioheadI Might Be Wrong2001
236V9YnBmFjWmXCBaUVRCVXPRadioheadAmnesiac2001-03-12
2419RUXBFyM4PpmrLRdtqWbpRadioheadKid A2000-10-01
257dxKtc08dYeRVHt3p9CZJnRadioheadOK Computer1997-05-28
26500FEaUzn8lN9zWFyZG5C2RadioheadThe Bends1995-03-28
276400dnyeDyD2mIFHfkwHXNRadioheadPablo Honey1993-02-22
284g9Jfls8z2nbQxj5PiXkiyThe Rolling StonesBlue & Lonesome2016-12-02
294fhWcu56Bbh5wALuTouFVWThe Rolling StonesHavana Moon (Live)2016-11-11
...............
323CHu7qW160uqPZHW3TMZ1lThe Rolling StonesShine A Light2008-01-01
334FTHynKEtuP7eppERNfjyGThe Rolling StonesA Bigger Bang (2009 Re-Mastered)2005-09-05
3450UGtgNA5bq1c0BDjPfmbDThe Rolling StonesLive Licks2004-11-01
350ZGddnvcVzHVHfE3WW1tV5The Rolling StonesBridges To Babylon (Remastered)1997-09-29
364M8Q1L9PZq0xK5tLUpO3jdThe Rolling StonesStripped1995-01-13
3762ZT16LY1phGM0O8x5qW1zThe Rolling StonesVoodoo Lounge (Remastered 2009)1994-07-11
381W1UJulgICjFDyYIMUwRs7The Rolling StonesFlashpoint1991-04-02
3925mfHGJNQkluvIqedXHSx3The Rolling StonesSteel Wheels (2009 Re-Mastered)1989-08-29
401TpcI1LEFVhBvDPSTMPGFGThe Rolling StonesDirty Work1986-03-24
411WSfNoPDPzgyKFN6OSYWUxThe Rolling StonesDirty Work (Remastered 2009)1986-03-24
42064eFGemsrDcMvgRZ0gqtwThe Rolling StonesUndercover (2009 Re-Mastered)1983-11-07
430hxrNynMDh5QeyALlf1CdSThe Rolling StonesStill Life1982-06-01
441YvnuYGlblQ5vLnOhaZzpnThe Rolling StonesTattoo You (2009 Re-Mastered)1981-08-24
452wZgoXS06wSdu9C0ZJOvlcThe Rolling StonesEmotional Rescue (2009 Re-Mastered)1980-06-20
4654sqbAXxR1jFfyXb1WvrHKThe Rolling StonesSome Girls1978-06-09
476FjXxl9VLURGuubdXUn2J3The Rolling StonesSome Girls (Deluxe Version)1978-06-09
484jbWZmf7kRxCBD6tgVepYhSpice GirlsForever2000-11-06
493sr6lAuO3nmB1u8ZuQgpiXSpice GirlsSpiceworld1997-11-03
503x2jF7blR6bFHtk4MccsyJSpice GirlsSpice1996-11-04
513LXItxKnnJcEDc5QdTc00nThe BeatlesSgt. Pepper's Lonely Hearts Club Band (Deluxe ...1967-06-01
527Hk1X2BCADxuR9saTIKfOWThe Rolling StonesOn Air (Deluxe)2017-12-01
536iCIB08bkoitQOL5y2uEsMThe Rolling StonesSticky Fingers Live At The Fonda Theatre2017-09-29
5434d9ClCaKRoQ8pMeJ9GfvtThe Rolling StonesLadies & Gentlemen (Live)2017-06-07
550aWIIpfY32rT1i3yO9LROlThe Rolling StonesTotally Stripped (Live)2016-06-17
565D7RtaChuvF0Av1xXT3acuThe Rolling StonesTotally Stripped - Brixton (Live)2016-06-06
572b3y5k1DchDACjH5KMlgQvThe Rolling StonesTotally Stripped - Amsterdam (Live)2016-06-03
583wkyUMDuH56iNaSxKvukaxThe Rolling StonesTotally Stripped - Paris (Live)2016-05-20
596hB5kO3oV3tlnblCNSSA9ZMuddy WatersLive At The Checkerboard Lounge2012-07-09
603yNf6JVyEEqvM4OqKEmZSCMuddy WatersLive At The Checkerboard Lounge2012-07-09
612gCp8kyDcL93s4kVP4VMTCThe Rolling StonesSome Girls: Live In Texas '782011-11-21
\n", "

62 rows × 4 columns

\n", "
" ], "text/plain": [ " _id artist_name \\\n", "0 5XfJmldgWzrc1AIdbBaVZn The Beatles \n", "1 5ju5Ouzan3QwXqQt1Tihbh The Beatles \n", "2 2pCqZLeavM2BMovJXsJEIV The Beatles \n", "3 2Pqkn9Dq2DFtdfkKAeqgMd The Beatles \n", "4 47bcKzmKgmMPHXNVOWpLiu The Beatles \n", "5 03Qh833fEdVT30Pfs93ea6 The Beatles \n", "6 6P9yO0ukhOx3dvmhGKeYoC The Beatles \n", "7 1PULmKbHeOqlkIwcDMNwD4 The Beatles \n", "8 0PYyrqs9NXtxPhf0CZkq2L The Beatles \n", "9 3OdI6e43crvyAHhaqpxSyz The Beatles \n", "10 19K3IHYeVkUTjcBHGfbCOi The Beatles \n", "11 7BgGBZndAvDlKOcwe5rscZ The Beatles \n", "12 71Mwd9tntFQYUk4k2DwA0D The Beatles \n", "13 1DBkJIEoeHrTX4WCBQGcCi Radiohead \n", "14 3nkEsxmIX0zRNXGAexaHAn The Beatles \n", "15 7gDXyW16byCQOgK965BRzn The Beatles \n", "16 6vuykQgDLUCiZ7YggIpLM9 Radiohead \n", "17 47xaqCsJcYFWqD1gwujl1T Radiohead \n", "18 7eyQXxuf2nGj9d2367Gi5f Radiohead \n", "19 36lJLPoPPOKNFddTAcirnc Radiohead \n", "20 6Eo5EkmdLvZrONzi046iC2 Radiohead \n", "21 1oW3v5Har9mvXnGk0x4fHm Radiohead \n", "22 6svTt5o2lUgIrgYDKVmdnD Radiohead \n", "23 6V9YnBmFjWmXCBaUVRCVXP Radiohead \n", "24 19RUXBFyM4PpmrLRdtqWbp Radiohead \n", "25 7dxKtc08dYeRVHt3p9CZJn Radiohead \n", "26 500FEaUzn8lN9zWFyZG5C2 Radiohead \n", "27 6400dnyeDyD2mIFHfkwHXN Radiohead \n", "28 4g9Jfls8z2nbQxj5PiXkiy The Rolling Stones \n", "29 4fhWcu56Bbh5wALuTouFVW The Rolling Stones \n", ".. ... ... \n", "32 3CHu7qW160uqPZHW3TMZ1l The Rolling Stones \n", "33 4FTHynKEtuP7eppERNfjyG The Rolling Stones \n", "34 50UGtgNA5bq1c0BDjPfmbD The Rolling Stones \n", "35 0ZGddnvcVzHVHfE3WW1tV5 The Rolling Stones \n", "36 4M8Q1L9PZq0xK5tLUpO3jd The Rolling Stones \n", "37 62ZT16LY1phGM0O8x5qW1z The Rolling Stones \n", "38 1W1UJulgICjFDyYIMUwRs7 The Rolling Stones \n", "39 25mfHGJNQkluvIqedXHSx3 The Rolling Stones \n", "40 1TpcI1LEFVhBvDPSTMPGFG The Rolling Stones \n", "41 1WSfNoPDPzgyKFN6OSYWUx The Rolling Stones \n", "42 064eFGemsrDcMvgRZ0gqtw The Rolling Stones \n", "43 0hxrNynMDh5QeyALlf1CdS The Rolling Stones \n", "44 1YvnuYGlblQ5vLnOhaZzpn The Rolling Stones \n", "45 2wZgoXS06wSdu9C0ZJOvlc The Rolling Stones \n", "46 54sqbAXxR1jFfyXb1WvrHK The Rolling Stones \n", "47 6FjXxl9VLURGuubdXUn2J3 The Rolling Stones \n", "48 4jbWZmf7kRxCBD6tgVepYh Spice Girls \n", "49 3sr6lAuO3nmB1u8ZuQgpiX Spice Girls \n", "50 3x2jF7blR6bFHtk4MccsyJ Spice Girls \n", "51 3LXItxKnnJcEDc5QdTc00n The Beatles \n", "52 7Hk1X2BCADxuR9saTIKfOW The Rolling Stones \n", "53 6iCIB08bkoitQOL5y2uEsM The Rolling Stones \n", "54 34d9ClCaKRoQ8pMeJ9Gfvt The Rolling Stones \n", "55 0aWIIpfY32rT1i3yO9LROl The Rolling Stones \n", "56 5D7RtaChuvF0Av1xXT3acu The Rolling Stones \n", "57 2b3y5k1DchDACjH5KMlgQv The Rolling Stones \n", "58 3wkyUMDuH56iNaSxKvukax The Rolling Stones \n", "59 6hB5kO3oV3tlnblCNSSA9Z Muddy Waters \n", "60 3yNf6JVyEEqvM4OqKEmZSC Muddy Waters \n", "61 2gCp8kyDcL93s4kVP4VMTC The Rolling Stones \n", "\n", " name release_date \n", "0 Live At The Hollywood Bowl 2016-09-09 \n", "1 1 (Remastered) 2000-11-13 \n", "2 Let It Be (Remastered) 1970-05-08 \n", "3 Abbey Road (Remastered) 1969-09-26 \n", "4 Yellow Submarine (Remastered) 1969-01-17 \n", "5 The Beatles (Remastered) 1968-11-22 \n", "6 Magical Mystery Tour (Remastered) 1967-11-27 \n", "7 Sgt. Pepper's Lonely Hearts Club Band (Remaste... 1967-06-01 \n", "8 Revolver (Remastered) 1966-08-05 \n", "9 Rubber Soul (Remastered) 1965-12-03 \n", "10 Help! (Remastered) 1965-08-06 \n", "11 Beatles For Sale (Remastered) 1964-12-04 \n", "12 A Hard Day's Night (Remastered) 1964-07-10 \n", "13 The King Of Limbs 2011-02-18 \n", "14 With The Beatles (Remastered) 1963-11-22 \n", "15 Please Please Me (Remastered) 1963-03-22 \n", "16 A Moon Shaped Pool 2016-05-08 \n", "17 TKOL RMX 1234567 2011-10-10 \n", "18 In Rainbows 2007-12-28 \n", "19 In Rainbows Disk 2 2007 \n", "20 Com Lag: 2+2=5 2004-03-24 \n", "21 Hail To the Thief 2003 \n", "22 I Might Be Wrong 2001 \n", "23 Amnesiac 2001-03-12 \n", "24 Kid A 2000-10-01 \n", "25 OK Computer 1997-05-28 \n", "26 The Bends 1995-03-28 \n", "27 Pablo Honey 1993-02-22 \n", "28 Blue & Lonesome 2016-12-02 \n", "29 Havana Moon (Live) 2016-11-11 \n", ".. ... ... \n", "32 Shine A Light 2008-01-01 \n", "33 A Bigger Bang (2009 Re-Mastered) 2005-09-05 \n", "34 Live Licks 2004-11-01 \n", "35 Bridges To Babylon (Remastered) 1997-09-29 \n", "36 Stripped 1995-01-13 \n", "37 Voodoo Lounge (Remastered 2009) 1994-07-11 \n", "38 Flashpoint 1991-04-02 \n", "39 Steel Wheels (2009 Re-Mastered) 1989-08-29 \n", "40 Dirty Work 1986-03-24 \n", "41 Dirty Work (Remastered 2009) 1986-03-24 \n", "42 Undercover (2009 Re-Mastered) 1983-11-07 \n", "43 Still Life 1982-06-01 \n", "44 Tattoo You (2009 Re-Mastered) 1981-08-24 \n", "45 Emotional Rescue (2009 Re-Mastered) 1980-06-20 \n", "46 Some Girls 1978-06-09 \n", "47 Some Girls (Deluxe Version) 1978-06-09 \n", "48 Forever 2000-11-06 \n", "49 Spiceworld 1997-11-03 \n", "50 Spice 1996-11-04 \n", "51 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... 1967-06-01 \n", "52 On Air (Deluxe) 2017-12-01 \n", "53 Sticky Fingers Live At The Fonda Theatre 2017-09-29 \n", "54 Ladies & Gentlemen (Live) 2017-06-07 \n", "55 Totally Stripped (Live) 2016-06-17 \n", "56 Totally Stripped - Brixton (Live) 2016-06-06 \n", "57 Totally Stripped - Amsterdam (Live) 2016-06-03 \n", "58 Totally Stripped - Paris (Live) 2016-05-20 \n", "59 Live At The Checkerboard Lounge 2012-07-09 \n", "60 Live At The Checkerboard Lounge 2012-07-09 \n", "61 Some Girls: Live In Texas '78 2011-11-21 \n", "\n", "[62 rows x 4 columns]" ] }, "execution_count": 108, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list(albums.find({}, ['name', 'artist_name', 'release_date'])))" ] }, { "cell_type": "code", "execution_count": 109, "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", "
_idctitlet_albt_namett_albtt_name
02uO1HbJhQvmXpjclLmLEeKjumpin jack flashSome Girls: Live In Texas '78Jumpin' Jack Flash - LiveTotally Stripped (Live)Jumpin’ Jack Flash - Live
13v2SyLXNg7IY3I3N6QTZ45jumpin jack flashLadies & Gentlemen (Live)Jumpin' Jack Flash - LiveSome Girls: Live In Texas '78Jumpin' Jack Flash - Live
23v2SyLXNg7IY3I3N6QTZ45jumpin jack flashLadies & Gentlemen (Live)Jumpin' Jack Flash - LiveTotally Stripped (Live)Jumpin’ Jack Flash - Live
35Y77giAAAmU9EpfHBDbBV8you got me rockinTotally Stripped - Brixton (Live)You Got Me Rockin’ - LiveTotally Stripped - Paris (Live)You Got Me Rockin’ - Live
41w9FiXsMcaxb5SD8vIZgm3jumpin jack flashTotally Stripped - Brixton (Live)Jumpin’ Jack Flash - LiveSome Girls: Live In Texas '78Jumpin' Jack Flash - Live
51w9FiXsMcaxb5SD8vIZgm3jumpin jack flashTotally Stripped - Brixton (Live)Jumpin’ Jack Flash - LiveLadies & Gentlemen (Live)Jumpin' Jack Flash - Live
61w9FiXsMcaxb5SD8vIZgm3jumpin jack flashTotally Stripped - Brixton (Live)Jumpin’ Jack Flash - LiveTotally Stripped (Live)Jumpin’ Jack Flash - Live
71w9FiXsMcaxb5SD8vIZgm3jumpin jack flashTotally Stripped - Brixton (Live)Jumpin’ Jack Flash - LiveTotally Stripped - Paris (Live)Jumpin’ Jack Flash - Live
81tEdH58k6r4CvjEhmxxbMCjumpin jack flashTotally Stripped - Paris (Live)Jumpin’ Jack Flash - LiveSome Girls: Live In Texas '78Jumpin' Jack Flash - Live
91tEdH58k6r4CvjEhmxxbMCjumpin jack flashTotally Stripped - Paris (Live)Jumpin’ Jack Flash - LiveLadies & Gentlemen (Live)Jumpin' Jack Flash - Live
101tEdH58k6r4CvjEhmxxbMCjumpin jack flashTotally Stripped - Paris (Live)Jumpin’ Jack Flash - LiveTotally Stripped (Live)Jumpin’ Jack Flash - Live
115jWDi16gJx7N2oexwjGx5yintroductionLive At The Checkerboard LoungeIntroduction - LiveLive At The Checkerboard LoungeIntroduction - Live
126M75z4blVIRMeWtjSU1UyRyou dont have to goLive At The Checkerboard LoungeYou Don't Have To Go - LiveLive At The Checkerboard LoungeYou Don't Have To Go - Live
136NqtddM4j4X9dG75yOmy0Syellow submarineYellow Submarine (Remastered)Yellow Submarine - RemasteredRevolver (Remastered)Yellow Submarine - Remastered
145EuraV2jbqB15ihd3d2Hexstrawberry fields foreverMagical Mystery Tour (Remastered)Strawberry Fields Forever - Remastered 2009Sgt. Pepper's Lonely Hearts Club Band (Deluxe ...Strawberry Fields Forever - Take 7
155EuraV2jbqB15ihd3d2Hexstrawberry fields foreverMagical Mystery Tour (Remastered)Strawberry Fields Forever - Remastered 2009Sgt. Pepper's Lonely Hearts Club Band (Deluxe ...Strawberry Fields Forever - Take 26
165EuraV2jbqB15ihd3d2Hexstrawberry fields foreverMagical Mystery Tour (Remastered)Strawberry Fields Forever - Remastered 2009Sgt. Pepper's Lonely Hearts Club Band (Deluxe ...Strawberry Fields Forever - Stereo Mix 2015
175RStjc42UAYI2NMY3cYpgzpenny laneMagical Mystery Tour (Remastered)Penny Lane - Remastered 2009Sgt. Pepper's Lonely Hearts Club Band (Deluxe ...Penny Lane - Take 6 / Instrumental
185RStjc42UAYI2NMY3cYpgzpenny laneMagical Mystery Tour (Remastered)Penny Lane - Remastered 2009Sgt. Pepper's Lonely Hearts Club Band (Deluxe ...Penny Lane - Stereo Mix 2017
193xMSaDC9TU6AQJIsxQB7MKall you need is loveMagical Mystery Tour (Remastered)All You Need Is Love - Remastered 2009Yellow Submarine (Remastered)All You Need Is Love - Remastered
205pTWpY8l7B1XcQnijEFGFjmiss youSome Girls (Deluxe Version)Miss You - RemasteredTotally Stripped (Live)Miss You - Live
215pTWpY8l7B1XcQnijEFGFjmiss youSome Girls (Deluxe Version)Miss You - RemasteredTotally Stripped - Brixton (Live)Miss You - Live
225pTWpY8l7B1XcQnijEFGFjmiss youSome Girls (Deluxe Version)Miss You - RemasteredTotally Stripped - Paris (Live)Miss You - Live
235pTWpY8l7B1XcQnijEFGFjmiss youSome Girls (Deluxe Version)Miss You - RemasteredSome Girls: Live In Texas '78Miss You - Live
244E8qFhiuYAWEYYAsYIf4dWwhen the whip comes downSome Girls (Deluxe Version)When The Whip Comes Down - RemasteredSome Girls: Live In Texas '78When The Whip Comes Down - Live
254RlD0KvoqPZy5n9Zi76X9lfar away eyesSome Girls (Deluxe Version)Far Away Eyes - RemasteredSome Girls: Live In Texas '78Far Away Eyes - Live
2633PXyHrkIHxp6PBVPlQGx7respectableSome Girls (Deluxe Version)Respectable - RemasteredSome Girls: Live In Texas '78Respectable - Live
2733PXyHrkIHxp6PBVPlQGx7respectableSome Girls (Deluxe Version)Respectable - RemasteredTotally Stripped - Amsterdam (Live)Respectable - Live
287pfVe0VrMK5QhTaAYzkuYnbeast of burdenSome Girls (Deluxe Version)Beast Of Burden - RemasteredTotally Stripped - Amsterdam (Live)Beast Of Burden - Live
297pfVe0VrMK5QhTaAYzkuYnbeast of burdenSome Girls (Deluxe Version)Beast Of Burden - RemasteredTotally Stripped - Paris (Live)Beast Of Burden - Live
.....................
1491mnDusx7zn2yzmr42hUksErip this jointTotally Stripped - Paris (Live)Rip This Joint - LiveTotally Stripped (Live)Rip This Joint - Live
1501mnDusx7zn2yzmr42hUksErip this jointTotally Stripped - Paris (Live)Rip This Joint - LiveTotally Stripped - Amsterdam (Live)Rip This Joint - Live
1515lWzRBoBzcfr1oNYNhR5acstart me upTotally Stripped - Paris (Live)Start Me Up - LiveTattoo You (2009 Re-Mastered)Start Me Up - Remastered
1524EllMMamxvLvwvOQLsyc9Wbrown sugarTotally Stripped - Paris (Live)Brown Sugar - LiveSome Girls: Live In Texas '78Brown Sugar - Live
1534EllMMamxvLvwvOQLsyc9Wbrown sugarTotally Stripped - Paris (Live)Brown Sugar - LiveLadies & Gentlemen (Live)Brown Sugar - Live
1544EllMMamxvLvwvOQLsyc9Wbrown sugarTotally Stripped - Paris (Live)Brown Sugar - LiveTotally Stripped (Live)Brown Sugar - Live
1551F69leTp8WQHMFVQ5gOtISmannish boyLive At The Checkerboard LoungeMannish Boy - LiveLive At The Checkerboard LoungeMannish Boy - Live
1566dx6G9OexgRFCulfKI4sPNall down the lineSome Girls: Live In Texas '78All Down The Line - LiveTotally Stripped - Amsterdam (Live)All Down The Line - Live
15716FlhqpxLT6WTfiLVEZ7Vvbeast of burdenSome Girls: Live In Texas '78Beast Of Burden - LiveTotally Stripped - Amsterdam (Live)Beast Of Burden - Live
1585UXwp4rKvtXtKJpe0iIctMmiss youSome Girls: Live In Texas '78Miss You - LiveTotally Stripped (Live)Miss You - Live
1596bxyTE0a0SFneMeIxXDCm7sgt peppers lonely hearts club bandSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Sgt. Pepper's Lonely Hearts Club Band - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...Sgt. Pepper's Lonely Hearts Club Band - Remast...
1606bxyTE0a0SFneMeIxXDCm7sgt peppers lonely hearts club bandSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Sgt. Pepper's Lonely Hearts Club Band - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...Sgt. Pepper's Lonely Hearts Club Band - Repris...
1614sOAk2nNTildSyJSLSlXuGwith a little help from my friendsSgt. Pepper's Lonely Hearts Club Band (Deluxe ...With A Little Help From My Friends - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...With A Little Help From My Friends - Remastered
1627jqsBIOx7CGhtNPNYxBWIjlucy in the sky with diamondsSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Lucy In The Sky With Diamonds - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...Lucy In The Sky With Diamonds - Remastered
1637FgFsmFqGDWduAW4vdgya1getting betterSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Getting Better - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...Getting Better - Remastered
1644qYGe6lTon2cHuTQF45xovfixing a holeSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Fixing A Hole - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...Fixing A Hole - Remastered
16555kc3bnwWdGFCqthgjqR9lshes leaving homeSgt. Pepper's Lonely Hearts Club Band (Deluxe ...She's Leaving Home - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...She's Leaving Home - Remastered
1661Yk5EOxuBEClupjWcUX0Tibeing for the benefit of mr kiteSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Being For The Benefit Of Mr. Kite! - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...Being For The Benefit Of Mr. Kite! - Remastered
1672UGZC7jvYr11WFSd6xvbk9within you without youSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Within You Without You - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...Within You Without You - Remastered
16859dYBIJ4cOrjtgkuwUnqQqlovely ritaSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Lovely Rita - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...Lovely Rita - Remastered
1693pY5chBSUotRa6RoIfwJjcgood morning good morningSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Good Morning Good Morning - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...Good Morning Good Morning - Remastered
1703ZFPe2aiLQuEfDxSqQstZpa day in the lifeSgt. Pepper's Lonely Hearts Club Band (Deluxe ...A Day In The Life - RemixSgt. Pepper's Lonely Hearts Club Band (Remaste...A Day In The Life - Remastered
1712BOawXVznHmi2KJzRFstBNsgt peppers lonely hearts club bandSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Sgt. Pepper's Lonely Hearts Club Band - Take 9...Sgt. Pepper's Lonely Hearts Club Band (Remaste...Sgt. Pepper's Lonely Hearts Club Band - Remast...
1722BOawXVznHmi2KJzRFstBNsgt peppers lonely hearts club bandSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Sgt. Pepper's Lonely Hearts Club Band - Take 9...Sgt. Pepper's Lonely Hearts Club Band (Remaste...Sgt. Pepper's Lonely Hearts Club Band - Repris...
1731alxZZpi5dBLcmV3WkYIzNwith a little help from my friendsSgt. Pepper's Lonely Hearts Club Band (Deluxe ...With A Little Help From My Friends - Take 1 / ...Sgt. Pepper's Lonely Hearts Club Band (Remaste...With A Little Help From My Friends - Remastered
1741k1kJBeaL3FCUG2vOJ1z0glucy in the sky with diamondsSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Lucy In The Sky With Diamonds - Take 1Sgt. Pepper's Lonely Hearts Club Band (Remaste...Lucy In The Sky With Diamonds - Remastered
17542uZOBjvKNv4QKnBmjOwb0getting betterSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Getting Better - Take 1 / Instrumental And Spe...Sgt. Pepper's Lonely Hearts Club Band (Remaste...Getting Better - Remastered
1765JnPM6eKhHJtkWfS6ymUMFfixing a holeSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Fixing A Hole - Speech And Take 3Sgt. Pepper's Lonely Hearts Club Band (Remaste...Fixing A Hole - Remastered
1773HEC6nzAo3U5z7blaCNBcFshes leaving homeSgt. Pepper's Lonely Hearts Club Band (Deluxe ...She's Leaving Home - Take 1 / InstrumentalSgt. Pepper's Lonely Hearts Club Band (Remaste...She's Leaving Home - Remastered
1783qchAN1uJ1KiF8yxmqb3Ovbeing for the benefit of mr kiteSgt. Pepper's Lonely Hearts Club Band (Deluxe ...Being For The Benefit Of Mr. Kite! - Take 4Sgt. Pepper's Lonely Hearts Club Band (Remaste...Being For The Benefit Of Mr. Kite! - Remastered
\n", "

179 rows × 6 columns

\n", "
" ], "text/plain": [ " _id ctitle \\\n", "0 2uO1HbJhQvmXpjclLmLEeK jumpin jack flash \n", "1 3v2SyLXNg7IY3I3N6QTZ45 jumpin jack flash \n", "2 3v2SyLXNg7IY3I3N6QTZ45 jumpin jack flash \n", "3 5Y77giAAAmU9EpfHBDbBV8 you got me rockin \n", "4 1w9FiXsMcaxb5SD8vIZgm3 jumpin jack flash \n", "5 1w9FiXsMcaxb5SD8vIZgm3 jumpin jack flash \n", "6 1w9FiXsMcaxb5SD8vIZgm3 jumpin jack flash \n", "7 1w9FiXsMcaxb5SD8vIZgm3 jumpin jack flash \n", "8 1tEdH58k6r4CvjEhmxxbMC jumpin jack flash \n", "9 1tEdH58k6r4CvjEhmxxbMC jumpin jack flash \n", "10 1tEdH58k6r4CvjEhmxxbMC jumpin jack flash \n", "11 5jWDi16gJx7N2oexwjGx5y introduction \n", "12 6M75z4blVIRMeWtjSU1UyR you dont have to go \n", "13 6NqtddM4j4X9dG75yOmy0S yellow submarine \n", "14 5EuraV2jbqB15ihd3d2Hex strawberry fields forever \n", "15 5EuraV2jbqB15ihd3d2Hex strawberry fields forever \n", "16 5EuraV2jbqB15ihd3d2Hex strawberry fields forever \n", "17 5RStjc42UAYI2NMY3cYpgz penny lane \n", "18 5RStjc42UAYI2NMY3cYpgz penny lane \n", "19 3xMSaDC9TU6AQJIsxQB7MK all you need is love \n", "20 5pTWpY8l7B1XcQnijEFGFj miss you \n", "21 5pTWpY8l7B1XcQnijEFGFj miss you \n", "22 5pTWpY8l7B1XcQnijEFGFj miss you \n", "23 5pTWpY8l7B1XcQnijEFGFj miss you \n", "24 4E8qFhiuYAWEYYAsYIf4dW when the whip comes down \n", "25 4RlD0KvoqPZy5n9Zi76X9l far away eyes \n", "26 33PXyHrkIHxp6PBVPlQGx7 respectable \n", "27 33PXyHrkIHxp6PBVPlQGx7 respectable \n", "28 7pfVe0VrMK5QhTaAYzkuYn beast of burden \n", "29 7pfVe0VrMK5QhTaAYzkuYn beast of burden \n", ".. ... ... \n", "149 1mnDusx7zn2yzmr42hUksE rip this joint \n", "150 1mnDusx7zn2yzmr42hUksE rip this joint \n", "151 5lWzRBoBzcfr1oNYNhR5ac start me up \n", "152 4EllMMamxvLvwvOQLsyc9W brown sugar \n", "153 4EllMMamxvLvwvOQLsyc9W brown sugar \n", "154 4EllMMamxvLvwvOQLsyc9W brown sugar \n", "155 1F69leTp8WQHMFVQ5gOtIS mannish boy \n", "156 6dx6G9OexgRFCulfKI4sPN all down the line \n", "157 16FlhqpxLT6WTfiLVEZ7Vv beast of burden \n", "158 5UXwp4rKvtXtKJpe0iIctM miss you \n", "159 6bxyTE0a0SFneMeIxXDCm7 sgt peppers lonely hearts club band \n", "160 6bxyTE0a0SFneMeIxXDCm7 sgt peppers lonely hearts club band \n", "161 4sOAk2nNTildSyJSLSlXuG with a little help from my friends \n", "162 7jqsBIOx7CGhtNPNYxBWIj lucy in the sky with diamonds \n", "163 7FgFsmFqGDWduAW4vdgya1 getting better \n", "164 4qYGe6lTon2cHuTQF45xov fixing a hole \n", "165 55kc3bnwWdGFCqthgjqR9l shes leaving home \n", "166 1Yk5EOxuBEClupjWcUX0Ti being for the benefit of mr kite \n", "167 2UGZC7jvYr11WFSd6xvbk9 within you without you \n", "168 59dYBIJ4cOrjtgkuwUnqQq lovely rita \n", "169 3pY5chBSUotRa6RoIfwJjc good morning good morning \n", "170 3ZFPe2aiLQuEfDxSqQstZp a day in the life \n", "171 2BOawXVznHmi2KJzRFstBN sgt peppers lonely hearts club band \n", "172 2BOawXVznHmi2KJzRFstBN sgt peppers lonely hearts club band \n", "173 1alxZZpi5dBLcmV3WkYIzN with a little help from my friends \n", "174 1k1kJBeaL3FCUG2vOJ1z0g lucy in the sky with diamonds \n", "175 42uZOBjvKNv4QKnBmjOwb0 getting better \n", "176 5JnPM6eKhHJtkWfS6ymUMF fixing a hole \n", "177 3HEC6nzAo3U5z7blaCNBcF shes leaving home \n", "178 3qchAN1uJ1KiF8yxmqb3Ov being for the benefit of mr kite \n", "\n", " t_alb \\\n", "0 Some Girls: Live In Texas '78 \n", "1 Ladies & Gentlemen (Live) \n", "2 Ladies & Gentlemen (Live) \n", "3 Totally Stripped - Brixton (Live) \n", "4 Totally Stripped - Brixton (Live) \n", "5 Totally Stripped - Brixton (Live) \n", "6 Totally Stripped - Brixton (Live) \n", "7 Totally Stripped - Brixton (Live) \n", "8 Totally Stripped - Paris (Live) \n", "9 Totally Stripped - Paris (Live) \n", "10 Totally Stripped - Paris (Live) \n", "11 Live At The Checkerboard Lounge \n", "12 Live At The Checkerboard Lounge \n", "13 Yellow Submarine (Remastered) \n", "14 Magical Mystery Tour (Remastered) \n", "15 Magical Mystery Tour (Remastered) \n", "16 Magical Mystery Tour (Remastered) \n", "17 Magical Mystery Tour (Remastered) \n", "18 Magical Mystery Tour (Remastered) \n", "19 Magical Mystery Tour (Remastered) \n", "20 Some Girls (Deluxe Version) \n", "21 Some Girls (Deluxe Version) \n", "22 Some Girls (Deluxe Version) \n", "23 Some Girls (Deluxe Version) \n", "24 Some Girls (Deluxe Version) \n", "25 Some Girls (Deluxe Version) \n", "26 Some Girls (Deluxe Version) \n", "27 Some Girls (Deluxe Version) \n", "28 Some Girls (Deluxe Version) \n", "29 Some Girls (Deluxe Version) \n", ".. ... \n", "149 Totally Stripped - Paris (Live) \n", "150 Totally Stripped - Paris (Live) \n", "151 Totally Stripped - Paris (Live) \n", "152 Totally Stripped - Paris (Live) \n", "153 Totally Stripped - Paris (Live) \n", "154 Totally Stripped - Paris (Live) \n", "155 Live At The Checkerboard Lounge \n", "156 Some Girls: Live In Texas '78 \n", "157 Some Girls: Live In Texas '78 \n", "158 Some Girls: Live In Texas '78 \n", "159 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "160 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "161 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "162 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "163 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "164 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "165 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "166 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "167 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "168 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "169 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "170 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "171 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "172 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "173 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "174 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "175 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "176 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "177 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "178 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "\n", " t_name \\\n", "0 Jumpin' Jack Flash - Live \n", "1 Jumpin' Jack Flash - Live \n", "2 Jumpin' Jack Flash - Live \n", "3 You Got Me Rockin’ - Live \n", "4 Jumpin’ Jack Flash - Live \n", "5 Jumpin’ Jack Flash - Live \n", "6 Jumpin’ Jack Flash - Live \n", "7 Jumpin’ Jack Flash - Live \n", "8 Jumpin’ Jack Flash - Live \n", "9 Jumpin’ Jack Flash - Live \n", "10 Jumpin’ Jack Flash - Live \n", "11 Introduction - Live \n", "12 You Don't Have To Go - Live \n", "13 Yellow Submarine - Remastered \n", "14 Strawberry Fields Forever - Remastered 2009 \n", "15 Strawberry Fields Forever - Remastered 2009 \n", "16 Strawberry Fields Forever - Remastered 2009 \n", "17 Penny Lane - Remastered 2009 \n", "18 Penny Lane - Remastered 2009 \n", "19 All You Need Is Love - Remastered 2009 \n", "20 Miss You - Remastered \n", "21 Miss You - Remastered \n", "22 Miss You - Remastered \n", "23 Miss You - Remastered \n", "24 When The Whip Comes Down - Remastered \n", "25 Far Away Eyes - Remastered \n", "26 Respectable - Remastered \n", "27 Respectable - Remastered \n", "28 Beast Of Burden - Remastered \n", "29 Beast Of Burden - Remastered \n", ".. ... \n", "149 Rip This Joint - Live \n", "150 Rip This Joint - Live \n", "151 Start Me Up - Live \n", "152 Brown Sugar - Live \n", "153 Brown Sugar - Live \n", "154 Brown Sugar - Live \n", "155 Mannish Boy - Live \n", "156 All Down The Line - Live \n", "157 Beast Of Burden - Live \n", "158 Miss You - Live \n", "159 Sgt. Pepper's Lonely Hearts Club Band - Remix \n", "160 Sgt. Pepper's Lonely Hearts Club Band - Remix \n", "161 With A Little Help From My Friends - Remix \n", "162 Lucy In The Sky With Diamonds - Remix \n", "163 Getting Better - Remix \n", "164 Fixing A Hole - Remix \n", "165 She's Leaving Home - Remix \n", "166 Being For The Benefit Of Mr. Kite! - Remix \n", "167 Within You Without You - Remix \n", "168 Lovely Rita - Remix \n", "169 Good Morning Good Morning - Remix \n", "170 A Day In The Life - Remix \n", "171 Sgt. Pepper's Lonely Hearts Club Band - Take 9... \n", "172 Sgt. Pepper's Lonely Hearts Club Band - Take 9... \n", "173 With A Little Help From My Friends - Take 1 / ... \n", "174 Lucy In The Sky With Diamonds - Take 1 \n", "175 Getting Better - Take 1 / Instrumental And Spe... \n", "176 Fixing A Hole - Speech And Take 3 \n", "177 She's Leaving Home - Take 1 / Instrumental \n", "178 Being For The Benefit Of Mr. Kite! - Take 4 \n", "\n", " tt_alb \\\n", "0 Totally Stripped (Live) \n", "1 Some Girls: Live In Texas '78 \n", "2 Totally Stripped (Live) \n", "3 Totally Stripped - Paris (Live) \n", "4 Some Girls: Live In Texas '78 \n", "5 Ladies & Gentlemen (Live) \n", "6 Totally Stripped (Live) \n", "7 Totally Stripped - Paris (Live) \n", "8 Some Girls: Live In Texas '78 \n", "9 Ladies & Gentlemen (Live) \n", "10 Totally Stripped (Live) \n", "11 Live At The Checkerboard Lounge \n", "12 Live At The Checkerboard Lounge \n", "13 Revolver (Remastered) \n", "14 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "15 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "16 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "17 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "18 Sgt. Pepper's Lonely Hearts Club Band (Deluxe ... \n", "19 Yellow Submarine (Remastered) \n", "20 Totally Stripped (Live) \n", "21 Totally Stripped - Brixton (Live) \n", "22 Totally Stripped - Paris (Live) \n", "23 Some Girls: Live In Texas '78 \n", "24 Some Girls: Live In Texas '78 \n", "25 Some Girls: Live In Texas '78 \n", "26 Some Girls: Live In Texas '78 \n", "27 Totally Stripped - Amsterdam (Live) \n", "28 Totally Stripped - Amsterdam (Live) \n", "29 Totally Stripped - Paris (Live) \n", ".. ... \n", "149 Totally Stripped (Live) \n", "150 Totally Stripped - Amsterdam (Live) \n", "151 Tattoo You (2009 Re-Mastered) \n", "152 Some Girls: Live In Texas '78 \n", "153 Ladies & Gentlemen (Live) \n", "154 Totally Stripped (Live) \n", "155 Live At The Checkerboard Lounge \n", "156 Totally Stripped - Amsterdam (Live) \n", "157 Totally Stripped - Amsterdam (Live) \n", "158 Totally Stripped (Live) \n", "159 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "160 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "161 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "162 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "163 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "164 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "165 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "166 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "167 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "168 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "169 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "170 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "171 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "172 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "173 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "174 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "175 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "176 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "177 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "178 Sgt. Pepper's Lonely Hearts Club Band (Remaste... \n", "\n", " tt_name \n", "0 Jumpin’ Jack Flash - Live \n", "1 Jumpin' Jack Flash - Live \n", "2 Jumpin’ Jack Flash - Live \n", "3 You Got Me Rockin’ - Live \n", "4 Jumpin' Jack Flash - Live \n", "5 Jumpin' Jack Flash - Live \n", "6 Jumpin’ Jack Flash - Live \n", "7 Jumpin’ Jack Flash - Live \n", "8 Jumpin' Jack Flash - Live \n", "9 Jumpin' Jack Flash - Live \n", "10 Jumpin’ Jack Flash - Live \n", "11 Introduction - Live \n", "12 You Don't Have To Go - Live \n", "13 Yellow Submarine - Remastered \n", "14 Strawberry Fields Forever - Take 7 \n", "15 Strawberry Fields Forever - Take 26 \n", "16 Strawberry Fields Forever - Stereo Mix 2015 \n", "17 Penny Lane - Take 6 / Instrumental \n", "18 Penny Lane - Stereo Mix 2017 \n", "19 All You Need Is Love - Remastered \n", "20 Miss You - Live \n", "21 Miss You - Live \n", "22 Miss You - Live \n", "23 Miss You - Live \n", "24 When The Whip Comes Down - Live \n", "25 Far Away Eyes - Live \n", "26 Respectable - Live \n", "27 Respectable - Live \n", "28 Beast Of Burden - Live \n", "29 Beast Of Burden - Live \n", ".. ... \n", "149 Rip This Joint - Live \n", "150 Rip This Joint - Live \n", "151 Start Me Up - Remastered \n", "152 Brown Sugar - Live \n", "153 Brown Sugar - Live \n", "154 Brown Sugar - Live \n", "155 Mannish Boy - Live \n", "156 All Down The Line - Live \n", "157 Beast Of Burden - Live \n", "158 Miss You - Live \n", "159 Sgt. Pepper's Lonely Hearts Club Band - Remast... \n", "160 Sgt. Pepper's Lonely Hearts Club Band - Repris... \n", "161 With A Little Help From My Friends - Remastered \n", "162 Lucy In The Sky With Diamonds - Remastered \n", "163 Getting Better - Remastered \n", "164 Fixing A Hole - Remastered \n", "165 She's Leaving Home - Remastered \n", "166 Being For The Benefit Of Mr. Kite! - Remastered \n", "167 Within You Without You - Remastered \n", "168 Lovely Rita - Remastered \n", "169 Good Morning Good Morning - Remastered \n", "170 A Day In The Life - Remastered \n", "171 Sgt. Pepper's Lonely Hearts Club Band - Remast... \n", "172 Sgt. Pepper's Lonely Hearts Club Band - Repris... \n", "173 With A Little Help From My Friends - Remastered \n", "174 Lucy In The Sky With Diamonds - Remastered \n", "175 Getting Better - Remastered \n", "176 Fixing A Hole - Remastered \n", "177 She's Leaving Home - Remastered \n", "178 Being For The Benefit Of Mr. Kite! - Remastered \n", "\n", "[179 rows x 6 columns]" ] }, "execution_count": 109, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pd.DataFrame(list({'_id': t['_id'], 'ctitle': t['ctitle'], 't_name': t['name'], 't_alb': t['album']['name'],\n", " 'tt_name': tt['name'], 'tt_alb': tt['album']['name']}\n", " for t in tracks.find({'ignore': {'$exists': False}}, \n", " ['name', 'ctitle', 'artist_id', 'album_id', 'album.name'])\n", " for tt in tracks.find({'ctitle': t['ctitle'], \n", " 'artist_id': t['artist_id'],\n", " 'album_id': {'$lt': t['album_id']},\n", " 'ignore': {'$exists': False}}, \n", " ['name', 'ctitle', 'album.name', 'album_id'])))" ] }, { "cell_type": "code", "execution_count": 110, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 110, "metadata": {}, "output_type": "execute_result" } ], "source": [ "# Radiohead: I Might be Wrong (live album)\n", "tracks.update_many({'album_id': '6svTt5o2lUgIrgYDKVmdnD'}, {'$set': {'ignore': True}})" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.5.3" } }, "nbformat": 4, "nbformat_minor": 1 }