{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Sad songs<a name=\"top\"></a>\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 Beatles songs.\n",
    "\n",
    "### Some data sources\n",
    "\n",
    "* http://journals.plos.org/plosone/article?id=10.1371/journal.pone.0115255#s5\n",
    "* https://www.discogs.com/developers/#page:database,header:database-artist-releases\n",
    "* http://data.discogs.com/\n",
    "\n",
    "* https://labrosa.ee.columbia.edu/millionsong/\n",
    "\n",
    "* https://twitter.com/kcimc/status/893855561590157312?s=09 and https://drive.google.com/file/d/0B9tyIRZ76JCdN3NtaVpPU3c4QWs/view (stored locally in the [1m.pkl](1m.pkl) folder)\n",
    "\n",
    "\n",
    "## Contents\n",
    "### Data gathering\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",
    "\n",
    "### Data analysis\n",
    "* [Analysis](#analysis)\n",
    "* [Sentiment](#sentiment)\n",
    "* [Gloom index](#gloomindex)\n",
    "* [Revised gloom index](#revisedgloomindex)\n",
    "* [Contrasting songs](#valencenegcontrast)\n",
    "* [Gloom per album](#gloomperalbum)\n",
    "* [Complexity per album](#complexityovertime)\n",
    "\n",
    "### [Conclusion](#conclusion)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "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": 4,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Open a connection to the Mongo server\n",
    "client = pymongo.MongoClient('mongodb://localhost:27017/')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "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": 5,
   "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": 6,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['app_name', 'client_id', 'client_secret', 'redirect_uri', 'token']"
      ]
     },
     "execution_count": 6,
     "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": 5,
   "metadata": {
    "collapsed": true
   },
   "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": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "stones_id = '22bE4uQ6baNwSHPVcDxLCe'\n",
    "beatles_id = '3WrFJ7ztbogyGnTHbHJFl2'"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Get album and track data from Spotify<a name='getspotify'></a>\n",
    "We'll download the data on artists, albums, and tracks from Spotify.\n",
    "\n",
    "* [Top](#top)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_artists(artist_name):\n",
    "    query = urllib.parse.urlencode({'q': artist_name, 'type': 'artist'})\n",
    "    request = 'https://api.spotify.com/v1/search?{}'.format(query)\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": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('22bE4uQ6baNwSHPVcDxLCe',\n",
       " [{'id': '22bE4uQ6baNwSHPVcDxLCe',\n",
       "   'image': 'https://i.scdn.co/image/999fa985ec8beb68af356b1fc1bc3cd5ba3e0a68',\n",
       "   'name': 'The Rolling Stones'}])"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "artists = get_artists('the rolling stones')\n",
    "stones_id = artists[0]['id']\n",
    "stones_id, artists"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "('3WrFJ7ztbogyGnTHbHJFl2',\n",
       " [{'id': '3WrFJ7ztbogyGnTHbHJFl2',\n",
       "   'image': 'https://i.scdn.co/image/934c57df9fbdbbaa5e93b55994a4cb9571fd2085',\n",
       "   'name': 'The Beatles'}])"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "artists = get_artists('the beatles')\n",
    "beatles_id = artists[0]['id']\n",
    "beatles_id, artists"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "Find all the albums for an artist."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_albums(artist_id):\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_request = a['href']\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": 41,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "15"
      ]
     },
     "execution_count": 41,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "get_albums(beatles_id)\n",
    "albums.find().count()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "48"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "get_albums(stones_id)\n",
    "albums.find().count()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>_id</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>2pCqZLeavM2BMovJXsJEIV</td>\n",
       "      <td>2Pqkn9Dq2DFtdfkKAeqgMd</td>\n",
       "      <td>47bcKzmKgmMPHXNVOWpLiu</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>album_type</th>\n",
       "      <td>album</td>\n",
       "      <td>album</td>\n",
       "      <td>album</td>\n",
       "      <td>album</td>\n",
       "      <td>album</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>artists</th>\n",
       "      <td>[{'href': 'https://api.spotify.com/v1/artists/...</td>\n",
       "      <td>[{'href': 'https://api.spotify.com/v1/artists/...</td>\n",
       "      <td>[{'href': 'https://api.spotify.com/v1/artists/...</td>\n",
       "      <td>[{'href': 'https://api.spotify.com/v1/artists/...</td>\n",
       "      <td>[{'href': 'https://api.spotify.com/v1/artists/...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>available_markets</th>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>copyrights</th>\n",
       "      <td>[{'text': '(C) 2016 Apple Corps Ltd.', 'type':...</td>\n",
       "      <td>[{'text': '(C) 2015 Apple Corps Ltd.', 'type':...</td>\n",
       "      <td>[{'text': '(C) 2015 Apple Corps Ltd', 'type': ...</td>\n",
       "      <td>[{'text': '(C) 2015 Apple Corps Ltd', 'type': ...</td>\n",
       "      <td>[{'text': '(C) 2015 Apple Corps Ltd', 'type': ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>external_ids</th>\n",
       "      <td>{'upc': '00602557054989'}</td>\n",
       "      <td>{'upc': '00602547673503'}</td>\n",
       "      <td>{'upc': '00602547670069'}</td>\n",
       "      <td>{'upc': '00602547670342'}</td>\n",
       "      <td>{'upc': '00602547670328'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>external_urls</th>\n",
       "      <td>{'spotify': 'https://open.spotify.com/album/5X...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/album/5j...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/album/2p...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/album/2P...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/album/47...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>genres</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>href</th>\n",
       "      <td>https://api.spotify.com/v1/albums/5XfJmldgWzrc...</td>\n",
       "      <td>https://api.spotify.com/v1/albums/5ju5Ouzan3Qw...</td>\n",
       "      <td>https://api.spotify.com/v1/albums/2pCqZLeavM2B...</td>\n",
       "      <td>https://api.spotify.com/v1/albums/2Pqkn9Dq2DFt...</td>\n",
       "      <td>https://api.spotify.com/v1/albums/47bcKzmKgmMP...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>id</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>2pCqZLeavM2BMovJXsJEIV</td>\n",
       "      <td>2Pqkn9Dq2DFtdfkKAeqgMd</td>\n",
       "      <td>47bcKzmKgmMPHXNVOWpLiu</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>images</th>\n",
       "      <td>[{'height': 640, 'url': 'https://i.scdn.co/ima...</td>\n",
       "      <td>[{'height': 640, 'url': 'https://i.scdn.co/ima...</td>\n",
       "      <td>[{'height': 640, 'url': 'https://i.scdn.co/ima...</td>\n",
       "      <td>[{'height': 640, 'url': 'https://i.scdn.co/ima...</td>\n",
       "      <td>[{'height': 640, 'url': 'https://i.scdn.co/ima...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>label</th>\n",
       "      <td>Digital Distribution Trinidad and Tobago</td>\n",
       "      <td>Digital Distribution Trinidad and Tobago</td>\n",
       "      <td>EMI Catalogue</td>\n",
       "      <td>EMI Catalogue</td>\n",
       "      <td>EMI Catalogue</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>name</th>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>Let It Be (Remastered)</td>\n",
       "      <td>Abbey Road (Remastered)</td>\n",
       "      <td>Yellow Submarine (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>popularity</th>\n",
       "      <td>63</td>\n",
       "      <td>77</td>\n",
       "      <td>68</td>\n",
       "      <td>75</td>\n",
       "      <td>58</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>release_date</th>\n",
       "      <td>2016-09-09</td>\n",
       "      <td>2000-11-13</td>\n",
       "      <td>1970-05-08</td>\n",
       "      <td>1969-09-26</td>\n",
       "      <td>1969-01-17</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>release_date_precision</th>\n",
       "      <td>day</td>\n",
       "      <td>day</td>\n",
       "      <td>day</td>\n",
       "      <td>day</td>\n",
       "      <td>day</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>tracks</th>\n",
       "      <td>{'limit': 50, 'previous': None, 'next': None, ...</td>\n",
       "      <td>{'limit': 50, 'previous': None, 'next': None, ...</td>\n",
       "      <td>{'limit': 50, 'previous': None, 'next': None, ...</td>\n",
       "      <td>{'limit': 50, 'previous': None, 'next': None, ...</td>\n",
       "      <td>{'limit': 50, 'previous': None, 'next': None, ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>type</th>\n",
       "      <td>album</td>\n",
       "      <td>album</td>\n",
       "      <td>album</td>\n",
       "      <td>album</td>\n",
       "      <td>album</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>uri</th>\n",
       "      <td>spotify:album:5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>spotify:album:5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>spotify:album:2pCqZLeavM2BMovJXsJEIV</td>\n",
       "      <td>spotify:album:2Pqkn9Dq2DFtdfkKAeqgMd</td>\n",
       "      <td>spotify:album:47bcKzmKgmMPHXNVOWpLiu</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                        0  \\\n",
       "_id                                                5XfJmldgWzrc1AIdbBaVZn   \n",
       "album_type                                                          album   \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              [{'text': '(C) 2016 Apple Corps Ltd.', 'type':...   \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                  [{'height': 640, 'url': 'https://i.scdn.co/ima...   \n",
       "label                            Digital Distribution Trinidad and Tobago   \n",
       "name                                           Live At The Hollywood Bowl   \n",
       "popularity                                                             63   \n",
       "release_date                                                   2016-09-09   \n",
       "release_date_precision                                                day   \n",
       "tracks                  {'limit': 50, 'previous': None, 'next': None, ...   \n",
       "type                                                                album   \n",
       "uri                                  spotify:album:5XfJmldgWzrc1AIdbBaVZn   \n",
       "\n",
       "                                                                        1  \\\n",
       "_id                                                5ju5Ouzan3QwXqQt1Tihbh   \n",
       "album_type                                                          album   \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              [{'text': '(C) 2015 Apple Corps Ltd.', 'type':...   \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                  [{'height': 640, 'url': 'https://i.scdn.co/ima...   \n",
       "label                            Digital Distribution Trinidad and Tobago   \n",
       "name                                                       1 (Remastered)   \n",
       "popularity                                                             77   \n",
       "release_date                                                   2000-11-13   \n",
       "release_date_precision                                                day   \n",
       "tracks                  {'limit': 50, 'previous': None, 'next': None, ...   \n",
       "type                                                                album   \n",
       "uri                                  spotify:album:5ju5Ouzan3QwXqQt1Tihbh   \n",
       "\n",
       "                                                                        2  \\\n",
       "_id                                                2pCqZLeavM2BMovJXsJEIV   \n",
       "album_type                                                          album   \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              [{'text': '(C) 2015 Apple Corps Ltd', 'type': ...   \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                  [{'height': 640, 'url': 'https://i.scdn.co/ima...   \n",
       "label                                                       EMI Catalogue   \n",
       "name                                               Let It Be (Remastered)   \n",
       "popularity                                                             68   \n",
       "release_date                                                   1970-05-08   \n",
       "release_date_precision                                                day   \n",
       "tracks                  {'limit': 50, 'previous': None, 'next': None, ...   \n",
       "type                                                                album   \n",
       "uri                                  spotify:album:2pCqZLeavM2BMovJXsJEIV   \n",
       "\n",
       "                                                                        3  \\\n",
       "_id                                                2Pqkn9Dq2DFtdfkKAeqgMd   \n",
       "album_type                                                          album   \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              [{'text': '(C) 2015 Apple Corps Ltd', 'type': ...   \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                  [{'height': 640, 'url': 'https://i.scdn.co/ima...   \n",
       "label                                                       EMI Catalogue   \n",
       "name                                              Abbey Road (Remastered)   \n",
       "popularity                                                             75   \n",
       "release_date                                                   1969-09-26   \n",
       "release_date_precision                                                day   \n",
       "tracks                  {'limit': 50, 'previous': None, 'next': None, ...   \n",
       "type                                                                album   \n",
       "uri                                  spotify:album:2Pqkn9Dq2DFtdfkKAeqgMd   \n",
       "\n",
       "                                                                        4  \n",
       "_id                                                47bcKzmKgmMPHXNVOWpLiu  \n",
       "album_type                                                          album  \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              [{'text': '(C) 2015 Apple Corps Ltd', 'type': ...  \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                  [{'height': 640, 'url': 'https://i.scdn.co/ima...  \n",
       "label                                                       EMI Catalogue  \n",
       "name                                        Yellow Submarine (Remastered)  \n",
       "popularity                                                             58  \n",
       "release_date                                                   1969-01-17  \n",
       "release_date_precision                                                day  \n",
       "tracks                  {'limit': 50, 'previous': None, 'next': None, ...  \n",
       "type                                                                album  \n",
       "uri                                  spotify:album:47bcKzmKgmMPHXNVOWpLiu  "
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.DataFrame(list(albums.find())).head().T"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Tag albums with artists<a name=\"tagalbumwithartist\"></a>\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": 10,
   "metadata": {
    "collapsed": true
   },
   "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": 11,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>_id</th>\n",
       "      <th>artist_name</th>\n",
       "      <th>name</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2pCqZLeavM2BMovJXsJEIV</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Let It Be (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2Pqkn9Dq2DFtdfkKAeqgMd</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Abbey Road (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>47bcKzmKgmMPHXNVOWpLiu</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Yellow Submarine (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>03Qh833fEdVT30Pfs93ea6</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6P9yO0ukhOx3dvmhGKeYoC</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Magical Mystery Tour (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1PULmKbHeOqlkIwcDMNwD4</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Sgt. Pepper's Lonely Hearts Club Band (Remaste...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0PYyrqs9NXtxPhf0CZkq2L</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Revolver (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>3OdI6e43crvyAHhaqpxSyz</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Rubber Soul (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>19K3IHYeVkUTjcBHGfbCOi</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Help! (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>7BgGBZndAvDlKOcwe5rscZ</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Beatles For Sale (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>71Mwd9tntFQYUk4k2DwA0D</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>A Hard Day's Night (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1DBkJIEoeHrTX4WCBQGcCi</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>The King Of Limbs</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>3nkEsxmIX0zRNXGAexaHAn</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>With The Beatles (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Please Please Me (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>6vuykQgDLUCiZ7YggIpLM9</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>A Moon Shaped Pool</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>47xaqCsJcYFWqD1gwujl1T</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>TKOL RMX 1234567</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>7eyQXxuf2nGj9d2367Gi5f</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>In Rainbows</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>36lJLPoPPOKNFddTAcirnc</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>In Rainbows Disk 2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>6Eo5EkmdLvZrONzi046iC2</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>Com Lag: 2+2=5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1oW3v5Har9mvXnGk0x4fHm</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>Hail To the Thief</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>6svTt5o2lUgIrgYDKVmdnD</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>I Might Be Wrong</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>6V9YnBmFjWmXCBaUVRCVXP</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>Amnesiac</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>19RUXBFyM4PpmrLRdtqWbp</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>Kid A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>7dxKtc08dYeRVHt3p9CZJn</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>OK Computer</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>500FEaUzn8lN9zWFyZG5C2</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>The Bends</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>6400dnyeDyD2mIFHfkwHXN</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>Pablo Honey</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>4g9Jfls8z2nbQxj5PiXkiy</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Blue &amp; Lonesome</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>4fhWcu56Bbh5wALuTouFVW</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Havana Moon (Live)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Totally Stripped (Live)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Live 1965: Music From Charlie Is My Darling (L...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>3CHu7qW160uqPZHW3TMZ1l</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Shine A Light</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>4FTHynKEtuP7eppERNfjyG</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>A Bigger Bang (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>50UGtgNA5bq1c0BDjPfmbD</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Live Licks</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35</th>\n",
       "      <td>0ZGddnvcVzHVHfE3WW1tV5</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Bridges To Babylon (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36</th>\n",
       "      <td>4M8Q1L9PZq0xK5tLUpO3jd</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Stripped</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>37</th>\n",
       "      <td>62ZT16LY1phGM0O8x5qW1z</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Voodoo Lounge (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>38</th>\n",
       "      <td>1W1UJulgICjFDyYIMUwRs7</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Flashpoint</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>25mfHGJNQkluvIqedXHSx3</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Steel Wheels (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>40</th>\n",
       "      <td>1TpcI1LEFVhBvDPSTMPGFG</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Dirty Work</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>41</th>\n",
       "      <td>1WSfNoPDPzgyKFN6OSYWUx</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Dirty Work (Remastered 2009)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>42</th>\n",
       "      <td>064eFGemsrDcMvgRZ0gqtw</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Undercover (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>43</th>\n",
       "      <td>0hxrNynMDh5QeyALlf1CdS</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Still Life</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>44</th>\n",
       "      <td>1YvnuYGlblQ5vLnOhaZzpn</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Tattoo You (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>45</th>\n",
       "      <td>2wZgoXS06wSdu9C0ZJOvlc</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Emotional Rescue (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>46</th>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Some Girls</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>47</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "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",
       "30  3PbRKFafwE7Of8e4dTee72  The Rolling Stones   \n",
       "31  5eTqRwTGKPBUiUuN1rFaXD  The Rolling Stones   \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",
       "\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",
       "30                            Totally Stripped (Live)  \n",
       "31  Live 1965: Music From Charlie Is My Darling (L...  \n",
       "32                                      Shine A Light  \n",
       "33                   A Bigger Bang (2009 Re-Mastered)  \n",
       "34                                         Live Licks  \n",
       "35              Bridges To Babylon (2009 Re-Mastered)  \n",
       "36                                           Stripped  \n",
       "37                   Voodoo Lounge (2009 Re-Mastered)  \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)  "
      ]
     },
     "execution_count": 11,
     "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": 16,
   "metadata": {},
   "outputs": [],
   "source": [
    "def get_tracks(album_id):\n",
    "    album = albums.find_one({'_id': album_id})\n",
    "    for t in album['tracks']['items']:\n",
    "        for _ in range(10):\n",
    "            try:\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": 45,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Rate limited. Pausing for 4\n",
      "Rate limited. Pausing for 4\n",
      "Rate limited. Pausing for 4\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "383"
      ]
     },
     "execution_count": 45,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "for album in albums.find():\n",
    "    get_tracks(album['_id'])\n",
    "tracks.find().count()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Rate limited. Pausing for 4\n",
      "Rate limited. Pausing for 3\n",
      "Rate limited. Pausing for 0\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "671"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "for album in albums.find({'artist_id': stones_id}):\n",
    "    get_tracks(album['_id'])\n",
    "tracks.find().count()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>_id</th>\n",
       "      <td>1lLK53LFXWvPzPYtlJIvt0</td>\n",
       "      <td>0TWa6TQFWHSG5QdSWuTMve</td>\n",
       "      <td>74tlMxJ8wF0sNp93GBEPdK</td>\n",
       "      <td>0Za26pWVLQpKfXmb9FX10S</td>\n",
       "      <td>6295nz7PVXm49Ihqwm39Ew</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>acousticness</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>album</th>\n",
       "      <td>{'name': 'Totally Stripped (Live)', 'type': 'a...</td>\n",
       "      <td>{'name': 'Totally Stripped (Live)', 'type': 'a...</td>\n",
       "      <td>{'name': 'Totally Stripped (Live)', 'type': 'a...</td>\n",
       "      <td>{'name': 'Some Girls', 'type': 'album', 'artis...</td>\n",
       "      <td>{'name': 'Some Girls', 'type': 'album', 'artis...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>album_id</th>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>analysis_url</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>artist_id</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>artist_name</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>artists</th>\n",
       "      <td>[{'name': 'The Rolling Stones', 'type': 'artis...</td>\n",
       "      <td>[{'name': 'The Rolling Stones', 'type': 'artis...</td>\n",
       "      <td>[{'name': 'The Rolling Stones', 'type': 'artis...</td>\n",
       "      <td>[{'name': 'The Rolling Stones', 'type': 'artis...</td>\n",
       "      <td>[{'name': 'The Rolling Stones', 'type': 'artis...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>available_markets</th>\n",
       "      <td>[GB]</td>\n",
       "      <td>[GB]</td>\n",
       "      <td>[GB]</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>complexity</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>ctitle</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>danceability</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>disc_number</th>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>duration_ms</th>\n",
       "      <td>305280</td>\n",
       "      <td>240333</td>\n",
       "      <td>293773</td>\n",
       "      <td>187440</td>\n",
       "      <td>204960</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>energy</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>explicit</th>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>external_ids</th>\n",
       "      <td>{'isrc': 'GBCBR1500394'}</td>\n",
       "      <td>{'isrc': 'GBCBR1500393'}</td>\n",
       "      <td>{'isrc': 'GBCBR1500392'}</td>\n",
       "      <td>{'isrc': 'GBCJN7800007'}</td>\n",
       "      <td>{'isrc': 'GBCJN7800008'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>external_urls</th>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/1l...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/0T...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/74...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/0Z...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/62...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>gloom</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>href</th>\n",
       "      <td>https://api.spotify.com/v1/tracks/1lLK53LFXWvP...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/0TWa6TQFWHSG...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/74tlMxJ8wF0s...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/0Za26pWVLQpK...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/6295nz7PVXm4...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>id</th>\n",
       "      <td>1lLK53LFXWvPzPYtlJIvt0</td>\n",
       "      <td>0TWa6TQFWHSG5QdSWuTMve</td>\n",
       "      <td>74tlMxJ8wF0sNp93GBEPdK</td>\n",
       "      <td>0Za26pWVLQpKfXmb9FX10S</td>\n",
       "      <td>6295nz7PVXm49Ihqwm39Ew</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>instrumentalness</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>key</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>liveness</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>loudness</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>lyrical_density</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>lyrics</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>mode</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>name</th>\n",
       "      <td>Faraway Eyes - Live</td>\n",
       "      <td>Dead Flowers - Live</td>\n",
       "      <td>Honky Tonk Women - Live</td>\n",
       "      <td>Respectable - Remastered</td>\n",
       "      <td>Before They Make Me Run - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>original_lyrics</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>popularity</th>\n",
       "      <td>15</td>\n",
       "      <td>17</td>\n",
       "      <td>18</td>\n",
       "      <td>30</td>\n",
       "      <td>25</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>preview_url</th>\n",
       "      <td>https://p.scdn.co/mp3-preview/5afdaabfa28e067f...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/e3900e8c4200974d...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/671f51874a70b3f7...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/f5e932d9acc6a359...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/ee5832b597975b27...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>sentiment</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>speechiness</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>tempo</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>time_signature</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>track_href</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>track_number</th>\n",
       "      <td>4</td>\n",
       "      <td>3</td>\n",
       "      <td>2</td>\n",
       "      <td>7</td>\n",
       "      <td>8</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>type</th>\n",
       "      <td>track</td>\n",
       "      <td>track</td>\n",
       "      <td>track</td>\n",
       "      <td>track</td>\n",
       "      <td>track</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>uri</th>\n",
       "      <td>spotify:track:1lLK53LFXWvPzPYtlJIvt0</td>\n",
       "      <td>spotify:track:0TWa6TQFWHSG5QdSWuTMve</td>\n",
       "      <td>spotify:track:74tlMxJ8wF0sNp93GBEPdK</td>\n",
       "      <td>spotify:track:0Za26pWVLQpKfXmb9FX10S</td>\n",
       "      <td>spotify:track:6295nz7PVXm49Ihqwm39Ew</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>valence</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                   0  \\\n",
       "_id                                           1lLK53LFXWvPzPYtlJIvt0   \n",
       "acousticness                                                     NaN   \n",
       "album              {'name': 'Totally Stripped (Live)', 'type': 'a...   \n",
       "album_id                                      3PbRKFafwE7Of8e4dTee72   \n",
       "analysis_url                                                     NaN   \n",
       "artist_id                                                        NaN   \n",
       "artist_name                                                      NaN   \n",
       "artists            [{'name': 'The Rolling Stones', 'type': 'artis...   \n",
       "available_markets                                               [GB]   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                                           NaN   \n",
       "danceability                                                     NaN   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   305280   \n",
       "energy                                                           NaN   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBCBR1500394'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/1l...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/1lLK53LFXWvP...   \n",
       "id                                            1lLK53LFXWvPzPYtlJIvt0   \n",
       "instrumentalness                                                 NaN   \n",
       "key                                                              NaN   \n",
       "liveness                                                         NaN   \n",
       "loudness                                                         NaN   \n",
       "lyrical_density                                                  NaN   \n",
       "lyrics                                                           NaN   \n",
       "mode                                                             NaN   \n",
       "name                                             Faraway Eyes - Live   \n",
       "original_lyrics                                                  NaN   \n",
       "popularity                                                        15   \n",
       "preview_url        https://p.scdn.co/mp3-preview/5afdaabfa28e067f...   \n",
       "sentiment                                                        NaN   \n",
       "speechiness                                                      NaN   \n",
       "tempo                                                            NaN   \n",
       "time_signature                                                   NaN   \n",
       "track_href                                                       NaN   \n",
       "track_number                                                       4   \n",
       "type                                                           track   \n",
       "uri                             spotify:track:1lLK53LFXWvPzPYtlJIvt0   \n",
       "valence                                                          NaN   \n",
       "\n",
       "                                                                   1  \\\n",
       "_id                                           0TWa6TQFWHSG5QdSWuTMve   \n",
       "acousticness                                                     NaN   \n",
       "album              {'name': 'Totally Stripped (Live)', 'type': 'a...   \n",
       "album_id                                      3PbRKFafwE7Of8e4dTee72   \n",
       "analysis_url                                                     NaN   \n",
       "artist_id                                                        NaN   \n",
       "artist_name                                                      NaN   \n",
       "artists            [{'name': 'The Rolling Stones', 'type': 'artis...   \n",
       "available_markets                                               [GB]   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                                           NaN   \n",
       "danceability                                                     NaN   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   240333   \n",
       "energy                                                           NaN   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBCBR1500393'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/0T...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/0TWa6TQFWHSG...   \n",
       "id                                            0TWa6TQFWHSG5QdSWuTMve   \n",
       "instrumentalness                                                 NaN   \n",
       "key                                                              NaN   \n",
       "liveness                                                         NaN   \n",
       "loudness                                                         NaN   \n",
       "lyrical_density                                                  NaN   \n",
       "lyrics                                                           NaN   \n",
       "mode                                                             NaN   \n",
       "name                                             Dead Flowers - Live   \n",
       "original_lyrics                                                  NaN   \n",
       "popularity                                                        17   \n",
       "preview_url        https://p.scdn.co/mp3-preview/e3900e8c4200974d...   \n",
       "sentiment                                                        NaN   \n",
       "speechiness                                                      NaN   \n",
       "tempo                                                            NaN   \n",
       "time_signature                                                   NaN   \n",
       "track_href                                                       NaN   \n",
       "track_number                                                       3   \n",
       "type                                                           track   \n",
       "uri                             spotify:track:0TWa6TQFWHSG5QdSWuTMve   \n",
       "valence                                                          NaN   \n",
       "\n",
       "                                                                   2  \\\n",
       "_id                                           74tlMxJ8wF0sNp93GBEPdK   \n",
       "acousticness                                                     NaN   \n",
       "album              {'name': 'Totally Stripped (Live)', 'type': 'a...   \n",
       "album_id                                      3PbRKFafwE7Of8e4dTee72   \n",
       "analysis_url                                                     NaN   \n",
       "artist_id                                                        NaN   \n",
       "artist_name                                                      NaN   \n",
       "artists            [{'name': 'The Rolling Stones', 'type': 'artis...   \n",
       "available_markets                                               [GB]   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                                           NaN   \n",
       "danceability                                                     NaN   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   293773   \n",
       "energy                                                           NaN   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBCBR1500392'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/74...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/74tlMxJ8wF0s...   \n",
       "id                                            74tlMxJ8wF0sNp93GBEPdK   \n",
       "instrumentalness                                                 NaN   \n",
       "key                                                              NaN   \n",
       "liveness                                                         NaN   \n",
       "loudness                                                         NaN   \n",
       "lyrical_density                                                  NaN   \n",
       "lyrics                                                           NaN   \n",
       "mode                                                             NaN   \n",
       "name                                         Honky Tonk Women - Live   \n",
       "original_lyrics                                                  NaN   \n",
       "popularity                                                        18   \n",
       "preview_url        https://p.scdn.co/mp3-preview/671f51874a70b3f7...   \n",
       "sentiment                                                        NaN   \n",
       "speechiness                                                      NaN   \n",
       "tempo                                                            NaN   \n",
       "time_signature                                                   NaN   \n",
       "track_href                                                       NaN   \n",
       "track_number                                                       2   \n",
       "type                                                           track   \n",
       "uri                             spotify:track:74tlMxJ8wF0sNp93GBEPdK   \n",
       "valence                                                          NaN   \n",
       "\n",
       "                                                                   3  \\\n",
       "_id                                           0Za26pWVLQpKfXmb9FX10S   \n",
       "acousticness                                                     NaN   \n",
       "album              {'name': 'Some Girls', 'type': 'album', 'artis...   \n",
       "album_id                                      54sqbAXxR1jFfyXb1WvrHK   \n",
       "analysis_url                                                     NaN   \n",
       "artist_id                                                        NaN   \n",
       "artist_name                                                      NaN   \n",
       "artists            [{'name': 'The Rolling Stones', 'type': 'artis...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                                           NaN   \n",
       "danceability                                                     NaN   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   187440   \n",
       "energy                                                           NaN   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBCJN7800007'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/0Z...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/0Za26pWVLQpK...   \n",
       "id                                            0Za26pWVLQpKfXmb9FX10S   \n",
       "instrumentalness                                                 NaN   \n",
       "key                                                              NaN   \n",
       "liveness                                                         NaN   \n",
       "loudness                                                         NaN   \n",
       "lyrical_density                                                  NaN   \n",
       "lyrics                                                           NaN   \n",
       "mode                                                             NaN   \n",
       "name                                        Respectable - Remastered   \n",
       "original_lyrics                                                  NaN   \n",
       "popularity                                                        30   \n",
       "preview_url        https://p.scdn.co/mp3-preview/f5e932d9acc6a359...   \n",
       "sentiment                                                        NaN   \n",
       "speechiness                                                      NaN   \n",
       "tempo                                                            NaN   \n",
       "time_signature                                                   NaN   \n",
       "track_href                                                       NaN   \n",
       "track_number                                                       7   \n",
       "type                                                           track   \n",
       "uri                             spotify:track:0Za26pWVLQpKfXmb9FX10S   \n",
       "valence                                                          NaN   \n",
       "\n",
       "                                                                   4  \n",
       "_id                                           6295nz7PVXm49Ihqwm39Ew  \n",
       "acousticness                                                     NaN  \n",
       "album              {'name': 'Some Girls', 'type': 'album', 'artis...  \n",
       "album_id                                      54sqbAXxR1jFfyXb1WvrHK  \n",
       "analysis_url                                                     NaN  \n",
       "artist_id                                                        NaN  \n",
       "artist_name                                                      NaN  \n",
       "artists            [{'name': 'The Rolling Stones', 'type': 'artis...  \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...  \n",
       "complexity                                                       NaN  \n",
       "ctitle                                                           NaN  \n",
       "danceability                                                     NaN  \n",
       "disc_number                                                        1  \n",
       "duration_ms                                                   204960  \n",
       "energy                                                           NaN  \n",
       "explicit                                                       False  \n",
       "external_ids                                {'isrc': 'GBCJN7800008'}  \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/62...  \n",
       "gloom                                                            NaN  \n",
       "href               https://api.spotify.com/v1/tracks/6295nz7PVXm4...  \n",
       "id                                            6295nz7PVXm49Ihqwm39Ew  \n",
       "instrumentalness                                                 NaN  \n",
       "key                                                              NaN  \n",
       "liveness                                                         NaN  \n",
       "loudness                                                         NaN  \n",
       "lyrical_density                                                  NaN  \n",
       "lyrics                                                           NaN  \n",
       "mode                                                             NaN  \n",
       "name                            Before They Make Me Run - Remastered  \n",
       "original_lyrics                                                  NaN  \n",
       "popularity                                                        25  \n",
       "preview_url        https://p.scdn.co/mp3-preview/ee5832b597975b27...  \n",
       "sentiment                                                        NaN  \n",
       "speechiness                                                      NaN  \n",
       "tempo                                                            NaN  \n",
       "time_signature                                                   NaN  \n",
       "track_href                                                       NaN  \n",
       "track_number                                                       8  \n",
       "type                                                           track  \n",
       "uri                             spotify:track:6295nz7PVXm49Ihqwm39Ew  \n",
       "valence                                                          NaN  "
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.DataFrame(list(tracks.find())).head().T"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'_id': '4edArG2VehvJdwOZfYOxtK'}"
      ]
     },
     "execution_count": 49,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tracks.find_one({}, 'album.id')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### Tag tracks with artist<a name=\"tagtrackwithartist\"></a>\n",
    "Again, make an easy tag for the artist of each track.\n",
    "\n",
    "* [Top](#top)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {
    "collapsed": true
   },
   "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": 14,
   "metadata": {
    "collapsed": true
   },
   "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": 15,
   "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",
       " 'Radiohead',\n",
       " 'Sheryl Crow',\n",
       " 'Solomon Burke',\n",
       " 'The Beatles',\n",
       " 'The Rolling Stones'}"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "set(t['artist_name'] for t in tracks.find({}))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>album_id</th>\n",
       "      <th>album_name</th>\n",
       "      <th>artist_name</th>\n",
       "      <th>track_id</th>\n",
       "      <th>track_name</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>4edArG2VehvJdwOZfYOxtK</td>\n",
       "      <td>Twist And Shout - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>150EAeMGWJRubuH8zyx7h8</td>\n",
       "      <td>She's A Woman - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>1fVeHYkyMxrjbjRAD9uWsZ</td>\n",
       "      <td>Dizzy Miss Lizzy - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>0GRplBEB2FWCKutwMmS6nY</td>\n",
       "      <td>Ticket To Ride - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>1eVymk74iroqhsZxm0Vy3g</td>\n",
       "      <td>Can't Buy Me Love - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>2p5a9gu6NECVSvBtGSU1vm</td>\n",
       "      <td>Things We Said Today - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>1HyLh5cctOnP186CBi8bhm</td>\n",
       "      <td>Roll Over Beethoven - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>7fZEWm7TAL2oZDyiYrrgnk</td>\n",
       "      <td>Boys - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>21nhooOxso7CCoHPE73w4L</td>\n",
       "      <td>A Hard Day's Night - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>1alcPfZWUHh01l4Fnoo5Jt</td>\n",
       "      <td>Help! - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>24gUDXSQysdnTaRpbWtYlK</td>\n",
       "      <td>All My Loving - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>2VmFFbXSJzYxzEJSAeI0lM</td>\n",
       "      <td>She Loves You - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>6b8lhQ86u5MddlmXulslpD</td>\n",
       "      <td>Long Tall Sally - Live / Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>1oKfZ5MTCSrv07hsHqJ0JS</td>\n",
       "      <td>You Can't Do That - Live / Bonus Track</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>04gBqA2mubcTgFqL9Domlj</td>\n",
       "      <td>I Want To Hold Your Hand - Live / Bonus Track</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>79QDgDoBbS7pCrOjIH7ByA</td>\n",
       "      <td>Everybody’s Trying To Be My Baby - Live / Bonu...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>1yV2I5c6efVSqSiuv9H2AD</td>\n",
       "      <td>Baby's In Black - Live / Bonus Track</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>5JT7CoUSGNk7mMNkHMQjqr</td>\n",
       "      <td>Love Me Do - Mono / Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>2Q2Gu7Bv8iLenuygtBgDUw</td>\n",
       "      <td>From Me To You - Mono / Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>2Fk411Ix3qnMG8t8Qa74ZX</td>\n",
       "      <td>She Loves You - Mono / Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>4DRBaZ760gyk7LWnaJFqsJ</td>\n",
       "      <td>I Want To Hold Your Hand - Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>7pQAq14Z73YUFMtxCyt0bG</td>\n",
       "      <td>Can't Buy Me Love - Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>0mNQUZEATk2uItMUtiLWK5</td>\n",
       "      <td>A Hard Day's Night - Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>0Gm34HBxrXlaAf1jdJMjx2</td>\n",
       "      <td>I Feel Fine - Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>3nhJDVdUrm6DnDW4iBfpKz</td>\n",
       "      <td>Eight Days A Week - Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>6pkjW5srxjzRSKKMrl7et8</td>\n",
       "      <td>Ticket To Ride - Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>1dfuJYDSIc41cw5RPsaCF1</td>\n",
       "      <td>Help! - Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>63uskN0xLezVg4281wzeQn</td>\n",
       "      <td>Yesterday - Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>0vXGSlE4ft3n5JHZMHHSIj</td>\n",
       "      <td>Day Tripper - Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>0Lckblu9CJUXOeMV0XY3b9</td>\n",
       "      <td>We Can Work It Out - Remastered 2015</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>641</th>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "      <td>Some Girls</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>5ZesVHq9Nox8YjOR1kCpbN</td>\n",
       "      <td>Just My Imagination (Running Away With Me) - R...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>642</th>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "      <td>Some Girls</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>6hLpp90qMxG3TMvMzwJsiQ</td>\n",
       "      <td>Some Girls - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>643</th>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "      <td>Some Girls</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>3WqR7lRoHEvG0ExkAqBkPj</td>\n",
       "      <td>Lies - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>644</th>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "      <td>Some Girls</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>06PEXSCNl8Xwf2633TdNnx</td>\n",
       "      <td>Far Away Eyes - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>645</th>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "      <td>Some Girls</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>0Za26pWVLQpKfXmb9FX10S</td>\n",
       "      <td>Respectable - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>646</th>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "      <td>Some Girls</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>6295nz7PVXm49Ihqwm39Ew</td>\n",
       "      <td>Before They Make Me Run - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>647</th>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "      <td>Some Girls</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>0832Tptls5YicHPGgw7ssP</td>\n",
       "      <td>Beast Of Burden - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>648</th>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "      <td>Some Girls</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>6yq33zsqWCd8cYXQdtAFZ9</td>\n",
       "      <td>Shattered - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>649</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>5pTWpY8l7B1XcQnijEFGFj</td>\n",
       "      <td>Miss You - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>650</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>4E8qFhiuYAWEYYAsYIf4dW</td>\n",
       "      <td>When The Whip Comes Down - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>651</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>7sDQlyQACyT7mNHFwwEMI7</td>\n",
       "      <td>Just My Imagination (Running Away With Me) - R...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>652</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>48bJ1sWhJKdB8M43uqi924</td>\n",
       "      <td>Some Girls - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>653</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>6362zAWHGgbrQaoeCFZpuO</td>\n",
       "      <td>Lies - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>654</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>4RlD0KvoqPZy5n9Zi76X9l</td>\n",
       "      <td>Far Away Eyes - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>655</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>33PXyHrkIHxp6PBVPlQGx7</td>\n",
       "      <td>Respectable - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>656</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>7vsPbFinz35mfQO5d6oL0l</td>\n",
       "      <td>Before They Make Me Run - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>657</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>7pfVe0VrMK5QhTaAYzkuYn</td>\n",
       "      <td>Beast Of Burden - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>658</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>2giRM7RrP6utWLAb8jnFFk</td>\n",
       "      <td>Shattered - Remastered</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>659</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>1V25DJ3ghDJs8m58jbVMbf</td>\n",
       "      <td>Claudine</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>660</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>3rNTjyvxae83nJCLMxoVSW</td>\n",
       "      <td>So Young</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>661</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>5oAcuuY504M7eDCln5Xq89</td>\n",
       "      <td>Do You Think I Really Care</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>662</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>1ZBnd9Z80QPQ58BaL5OWlP</td>\n",
       "      <td>When You're Gone</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>663</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>624njB7Ny3mlA46QokEin9</td>\n",
       "      <td>No Spare Parts</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>664</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>0WpZfMNsNhiEJ8RSLyjElp</td>\n",
       "      <td>Don't Be A Stranger</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>665</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>0Baq94uZKy4pPvnc40xjPX</td>\n",
       "      <td>We Had It All</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>666</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>4oOU3GgiZblheOI9JUmM1f</td>\n",
       "      <td>Tallahassee Lassie</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>667</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>4LW3JaAze7gF8DpPBb2zzl</td>\n",
       "      <td>I Love You Too Much</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>668</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>4LSyTg4sm3N99Pcckw9zjf</td>\n",
       "      <td>Keep Up Blues</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>669</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>3u06WsJ1KtvEqmmmZqy76J</td>\n",
       "      <td>You Win Again</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>670</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>7DgRvvPcJlxks2lNpudsuT</td>\n",
       "      <td>Petrol Blues</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>671 rows × 5 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                   album_id                   album_name         artist_name  \\\n",
       "0    5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "1    5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "2    5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "3    5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "4    5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "5    5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "6    5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "7    5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "8    5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "9    5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "10   5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "11   5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "12   5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "13   5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "14   5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "15   5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "16   5XfJmldgWzrc1AIdbBaVZn   Live At The Hollywood Bowl         The Beatles   \n",
       "17   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "18   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "19   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "20   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "21   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "22   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "23   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "24   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "25   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "26   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "27   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "28   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "29   5ju5Ouzan3QwXqQt1Tihbh               1 (Remastered)         The Beatles   \n",
       "..                      ...                          ...                 ...   \n",
       "641  54sqbAXxR1jFfyXb1WvrHK                   Some Girls  The Rolling Stones   \n",
       "642  54sqbAXxR1jFfyXb1WvrHK                   Some Girls  The Rolling Stones   \n",
       "643  54sqbAXxR1jFfyXb1WvrHK                   Some Girls  The Rolling Stones   \n",
       "644  54sqbAXxR1jFfyXb1WvrHK                   Some Girls  The Rolling Stones   \n",
       "645  54sqbAXxR1jFfyXb1WvrHK                   Some Girls  The Rolling Stones   \n",
       "646  54sqbAXxR1jFfyXb1WvrHK                   Some Girls  The Rolling Stones   \n",
       "647  54sqbAXxR1jFfyXb1WvrHK                   Some Girls  The Rolling Stones   \n",
       "648  54sqbAXxR1jFfyXb1WvrHK                   Some Girls  The Rolling Stones   \n",
       "649  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "650  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "651  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "652  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "653  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "654  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "655  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "656  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "657  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "658  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "659  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "660  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "661  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "662  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "663  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "664  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "665  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "666  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "667  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "668  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "669  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "670  6FjXxl9VLURGuubdXUn2J3  Some Girls (Deluxe Version)  The Rolling Stones   \n",
       "\n",
       "                   track_id                                         track_name  \n",
       "0    4edArG2VehvJdwOZfYOxtK                Twist And Shout - Live / Remastered  \n",
       "1    150EAeMGWJRubuH8zyx7h8                  She's A Woman - Live / Remastered  \n",
       "2    1fVeHYkyMxrjbjRAD9uWsZ               Dizzy Miss Lizzy - Live / Remastered  \n",
       "3    0GRplBEB2FWCKutwMmS6nY                 Ticket To Ride - Live / Remastered  \n",
       "4    1eVymk74iroqhsZxm0Vy3g              Can't Buy Me Love - Live / Remastered  \n",
       "5    2p5a9gu6NECVSvBtGSU1vm           Things We Said Today - Live / Remastered  \n",
       "6    1HyLh5cctOnP186CBi8bhm            Roll Over Beethoven - Live / Remastered  \n",
       "7    7fZEWm7TAL2oZDyiYrrgnk                           Boys - Live / Remastered  \n",
       "8    21nhooOxso7CCoHPE73w4L             A Hard Day's Night - Live / Remastered  \n",
       "9    1alcPfZWUHh01l4Fnoo5Jt                          Help! - Live / Remastered  \n",
       "10   24gUDXSQysdnTaRpbWtYlK                  All My Loving - Live / Remastered  \n",
       "11   2VmFFbXSJzYxzEJSAeI0lM                  She Loves You - Live / Remastered  \n",
       "12   6b8lhQ86u5MddlmXulslpD                Long Tall Sally - Live / Remastered  \n",
       "13   1oKfZ5MTCSrv07hsHqJ0JS             You Can't Do That - Live / Bonus Track  \n",
       "14   04gBqA2mubcTgFqL9Domlj      I Want To Hold Your Hand - Live / Bonus Track  \n",
       "15   79QDgDoBbS7pCrOjIH7ByA  Everybody’s Trying To Be My Baby - Live / Bonu...  \n",
       "16   1yV2I5c6efVSqSiuv9H2AD               Baby's In Black - Live / Bonus Track  \n",
       "17   5JT7CoUSGNk7mMNkHMQjqr                Love Me Do - Mono / Remastered 2015  \n",
       "18   2Q2Gu7Bv8iLenuygtBgDUw            From Me To You - Mono / Remastered 2015  \n",
       "19   2Fk411Ix3qnMG8t8Qa74ZX             She Loves You - Mono / Remastered 2015  \n",
       "20   4DRBaZ760gyk7LWnaJFqsJ         I Want To Hold Your Hand - Remastered 2015  \n",
       "21   7pQAq14Z73YUFMtxCyt0bG                Can't Buy Me Love - Remastered 2015  \n",
       "22   0mNQUZEATk2uItMUtiLWK5               A Hard Day's Night - Remastered 2015  \n",
       "23   0Gm34HBxrXlaAf1jdJMjx2                      I Feel Fine - Remastered 2015  \n",
       "24   3nhJDVdUrm6DnDW4iBfpKz                Eight Days A Week - Remastered 2015  \n",
       "25   6pkjW5srxjzRSKKMrl7et8                   Ticket To Ride - Remastered 2015  \n",
       "26   1dfuJYDSIc41cw5RPsaCF1                            Help! - Remastered 2015  \n",
       "27   63uskN0xLezVg4281wzeQn                        Yesterday - Remastered 2015  \n",
       "28   0vXGSlE4ft3n5JHZMHHSIj                      Day Tripper - Remastered 2015  \n",
       "29   0Lckblu9CJUXOeMV0XY3b9               We Can Work It Out - Remastered 2015  \n",
       "..                      ...                                                ...  \n",
       "641  5ZesVHq9Nox8YjOR1kCpbN  Just My Imagination (Running Away With Me) - R...  \n",
       "642  6hLpp90qMxG3TMvMzwJsiQ                            Some Girls - Remastered  \n",
       "643  3WqR7lRoHEvG0ExkAqBkPj                                  Lies - Remastered  \n",
       "644  06PEXSCNl8Xwf2633TdNnx                         Far Away Eyes - Remastered  \n",
       "645  0Za26pWVLQpKfXmb9FX10S                           Respectable - Remastered  \n",
       "646  6295nz7PVXm49Ihqwm39Ew               Before They Make Me Run - Remastered  \n",
       "647  0832Tptls5YicHPGgw7ssP                       Beast Of Burden - Remastered  \n",
       "648  6yq33zsqWCd8cYXQdtAFZ9                             Shattered - Remastered  \n",
       "649  5pTWpY8l7B1XcQnijEFGFj                              Miss You - Remastered  \n",
       "650  4E8qFhiuYAWEYYAsYIf4dW              When The Whip Comes Down - Remastered  \n",
       "651  7sDQlyQACyT7mNHFwwEMI7  Just My Imagination (Running Away With Me) - R...  \n",
       "652  48bJ1sWhJKdB8M43uqi924                            Some Girls - Remastered  \n",
       "653  6362zAWHGgbrQaoeCFZpuO                                  Lies - Remastered  \n",
       "654  4RlD0KvoqPZy5n9Zi76X9l                         Far Away Eyes - Remastered  \n",
       "655  33PXyHrkIHxp6PBVPlQGx7                           Respectable - Remastered  \n",
       "656  7vsPbFinz35mfQO5d6oL0l               Before They Make Me Run - Remastered  \n",
       "657  7pfVe0VrMK5QhTaAYzkuYn                       Beast Of Burden - Remastered  \n",
       "658  2giRM7RrP6utWLAb8jnFFk                             Shattered - Remastered  \n",
       "659  1V25DJ3ghDJs8m58jbVMbf                                           Claudine  \n",
       "660  3rNTjyvxae83nJCLMxoVSW                                           So Young  \n",
       "661  5oAcuuY504M7eDCln5Xq89                         Do You Think I Really Care  \n",
       "662  1ZBnd9Z80QPQ58BaL5OWlP                                   When You're Gone  \n",
       "663  624njB7Ny3mlA46QokEin9                                     No Spare Parts  \n",
       "664  0WpZfMNsNhiEJ8RSLyjElp                                Don't Be A Stranger  \n",
       "665  0Baq94uZKy4pPvnc40xjPX                                      We Had It All  \n",
       "666  4oOU3GgiZblheOI9JUmM1f                                 Tallahassee Lassie  \n",
       "667  4LW3JaAze7gF8DpPBb2zzl                                I Love You Too Much  \n",
       "668  4LSyTg4sm3N99Pcckw9zjf                                      Keep Up Blues  \n",
       "669  3u06WsJ1KtvEqmmmZqy76J                                      You Win Again  \n",
       "670  7DgRvvPcJlxks2lNpudsuT                                       Petrol Blues  \n",
       "\n",
       "[671 rows x 5 columns]"
      ]
     },
     "execution_count": 16,
     "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<a name=\"fulltrackdata\"></a>\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": 17,
   "metadata": {
    "collapsed": true
   },
   "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": 26,
   "metadata": {
    "collapsed": true
   },
   "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",
    "#     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})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 29,
   "metadata": {
    "collapsed": true
   },
   "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": 30,
   "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": 37,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>...</th>\n",
       "      <th>219</th>\n",
       "      <th>220</th>\n",
       "      <th>221</th>\n",
       "      <th>222</th>\n",
       "      <th>223</th>\n",
       "      <th>224</th>\n",
       "      <th>225</th>\n",
       "      <th>226</th>\n",
       "      <th>227</th>\n",
       "      <th>228</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>_id</th>\n",
       "      <td>2ucFulEWapRAmTn7l6f5Q7</td>\n",
       "      <td>2z1p43SNSbeowzy8WdYHNk</td>\n",
       "      <td>3ckvsHnEffhhS5c0Cs6Gv5</td>\n",
       "      <td>4edArG2VehvJdwOZfYOxtK</td>\n",
       "      <td>150EAeMGWJRubuH8zyx7h8</td>\n",
       "      <td>1fVeHYkyMxrjbjRAD9uWsZ</td>\n",
       "      <td>0GRplBEB2FWCKutwMmS6nY</td>\n",
       "      <td>1eVymk74iroqhsZxm0Vy3g</td>\n",
       "      <td>2p5a9gu6NECVSvBtGSU1vm</td>\n",
       "      <td>1HyLh5cctOnP186CBi8bhm</td>\n",
       "      <td>...</td>\n",
       "      <td>43feVCF6QfqIt9LnLs9BAH</td>\n",
       "      <td>3NwEPV9MDr1z3KcHiAuz9d</td>\n",
       "      <td>2Iccm3cKBQHWt5yk0yX9nh</td>\n",
       "      <td>2OLMjGIhCNI6j34ysPscbp</td>\n",
       "      <td>01n20rdBC5czKAhxmGREkr</td>\n",
       "      <td>5gnrZoSS7nbDYtHp32RFiI</td>\n",
       "      <td>5FBxWhG0nbBAF6lWgJFklM</td>\n",
       "      <td>6tEwCsVtZ5tI8uHNJSHQ3b</td>\n",
       "      <td>50jq8RgbDfmNNd0NiRnl4L</td>\n",
       "      <td>4Z1fbYp0HuxLBje4MOZcSD</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>acousticness</th>\n",
       "      <td>0.425</td>\n",
       "      <td>0.368</td>\n",
       "      <td>0.614</td>\n",
       "      <td>7.67e-05</td>\n",
       "      <td>0.00675</td>\n",
       "      <td>0.0131</td>\n",
       "      <td>0.00327</td>\n",
       "      <td>0.00865</td>\n",
       "      <td>0.0836</td>\n",
       "      <td>0.00242</td>\n",
       "      <td>...</td>\n",
       "      <td>0.607</td>\n",
       "      <td>0.767</td>\n",
       "      <td>0.334</td>\n",
       "      <td>0.386</td>\n",
       "      <td>0.389</td>\n",
       "      <td>0.778</td>\n",
       "      <td>0.608</td>\n",
       "      <td>0.698</td>\n",
       "      <td>0.629</td>\n",
       "      <td>0.641</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>album</th>\n",
       "      <td>{'id': '03Qh833fEdVT30Pfs93ea6', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '6P9yO0ukhOx3dvmhGKeYoC', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '7BgGBZndAvDlKOcwe5rscZ', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...</td>\n",
       "      <td>...</td>\n",
       "      <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
       "      <td>{'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>album_id</th>\n",
       "      <td>03Qh833fEdVT30Pfs93ea6</td>\n",
       "      <td>6P9yO0ukhOx3dvmhGKeYoC</td>\n",
       "      <td>7BgGBZndAvDlKOcwe5rscZ</td>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>...</td>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>analysis_url</th>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/2ucF...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/2z1p...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/3ckv...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/4edA...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/150E...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/1fVe...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/0GRp...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/1eVy...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/2p5a...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/1HyL...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/43fe...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/3NwE...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/2Icc...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/2OLM...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/01n2...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/5gnr...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/5FBx...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/6tEw...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/50jq...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/4Z1f...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>artist_id</th>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>...</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "      <td>3WrFJ7ztbogyGnTHbHJFl2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>artist_name</th>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>...</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>artists</th>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "      <td>[{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>available_markets</th>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>complexity</th>\n",
       "      <td>0.0598502</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.293946</td>\n",
       "      <td>0.316303</td>\n",
       "      <td>0.445783</td>\n",
       "      <td>0.334303</td>\n",
       "      <td>0.493981</td>\n",
       "      <td>0.24995</td>\n",
       "      <td>0.467134</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>ctitle</th>\n",
       "      <td>wild honey pie</td>\n",
       "      <td>flying</td>\n",
       "      <td>kansas city heyheyheyhey</td>\n",
       "      <td>twist and shout</td>\n",
       "      <td>shes a woman</td>\n",
       "      <td>dizzy miss lizzy</td>\n",
       "      <td>ticket to ride</td>\n",
       "      <td>cant buy me love</td>\n",
       "      <td>things we said today</td>\n",
       "      <td>roll over beethoven</td>\n",
       "      <td>...</td>\n",
       "      <td>boys</td>\n",
       "      <td>ask me why</td>\n",
       "      <td>please please me</td>\n",
       "      <td>love me do</td>\n",
       "      <td>ps i love you</td>\n",
       "      <td>baby its you</td>\n",
       "      <td>do you want to know a secret</td>\n",
       "      <td>a taste of honey</td>\n",
       "      <td>theres a place</td>\n",
       "      <td>twist and shout</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>danceability</th>\n",
       "      <td>0.792</td>\n",
       "      <td>0.551</td>\n",
       "      <td>0.588</td>\n",
       "      <td>0.311</td>\n",
       "      <td>0.188</td>\n",
       "      <td>0.406</td>\n",
       "      <td>0.39</td>\n",
       "      <td>0.2</td>\n",
       "      <td>0.307</td>\n",
       "      <td>0.204</td>\n",
       "      <td>...</td>\n",
       "      <td>0.402</td>\n",
       "      <td>0.605</td>\n",
       "      <td>0.527</td>\n",
       "      <td>0.52</td>\n",
       "      <td>0.635</td>\n",
       "      <td>0.608</td>\n",
       "      <td>0.673</td>\n",
       "      <td>0.42</td>\n",
       "      <td>0.455</td>\n",
       "      <td>0.482</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>disc_number</th>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>duration_ms</th>\n",
       "      <td>52973</td>\n",
       "      <td>135520</td>\n",
       "      <td>158147</td>\n",
       "      <td>93507</td>\n",
       "      <td>192053</td>\n",
       "      <td>219733</td>\n",
       "      <td>146240</td>\n",
       "      <td>134867</td>\n",
       "      <td>138733</td>\n",
       "      <td>134013</td>\n",
       "      <td>...</td>\n",
       "      <td>146440</td>\n",
       "      <td>146533</td>\n",
       "      <td>120853</td>\n",
       "      <td>141693</td>\n",
       "      <td>124360</td>\n",
       "      <td>160520</td>\n",
       "      <td>117013</td>\n",
       "      <td>123480</td>\n",
       "      <td>110493</td>\n",
       "      <td>155227</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>energy</th>\n",
       "      <td>0.763</td>\n",
       "      <td>0.395</td>\n",
       "      <td>0.724</td>\n",
       "      <td>0.822</td>\n",
       "      <td>0.885</td>\n",
       "      <td>0.867</td>\n",
       "      <td>0.779</td>\n",
       "      <td>0.849</td>\n",
       "      <td>0.637</td>\n",
       "      <td>0.808</td>\n",
       "      <td>...</td>\n",
       "      <td>0.86</td>\n",
       "      <td>0.394</td>\n",
       "      <td>0.48</td>\n",
       "      <td>0.829</td>\n",
       "      <td>0.656</td>\n",
       "      <td>0.494</td>\n",
       "      <td>0.349</td>\n",
       "      <td>0.372</td>\n",
       "      <td>0.582</td>\n",
       "      <td>0.849</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>explicit</th>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>...</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>external_ids</th>\n",
       "      <td>{'isrc': 'GBAYE0601648'}</td>\n",
       "      <td>{'isrc': 'GBAYE0601635'}</td>\n",
       "      <td>{'isrc': 'GBAYE0601457'}</td>\n",
       "      <td>{'isrc': 'GBUM71603960'}</td>\n",
       "      <td>{'isrc': 'GBUM71603957'}</td>\n",
       "      <td>{'isrc': 'GBUM71603952'}</td>\n",
       "      <td>{'isrc': 'GBUM71603959'}</td>\n",
       "      <td>{'isrc': 'GBUM71603951'}</td>\n",
       "      <td>{'isrc': 'GBUM71603958'}</td>\n",
       "      <td>{'isrc': 'GBUM71603955'}</td>\n",
       "      <td>...</td>\n",
       "      <td>{'isrc': 'GBAYE0601414'}</td>\n",
       "      <td>{'isrc': 'GBAYE0601415'}</td>\n",
       "      <td>{'isrc': 'GBAYE0601416'}</td>\n",
       "      <td>{'isrc': 'GBAYE0601417'}</td>\n",
       "      <td>{'isrc': 'GBAYE0601418'}</td>\n",
       "      <td>{'isrc': 'GBAYE0601419'}</td>\n",
       "      <td>{'isrc': 'GBAYE0601420'}</td>\n",
       "      <td>{'isrc': 'GBAYE0601421'}</td>\n",
       "      <td>{'isrc': 'GBAYE0601422'}</td>\n",
       "      <td>{'isrc': 'GBAYE0601423'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>external_urls</th>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/2u...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/2z...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/3c...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/4e...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/15...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/1f...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/0G...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/1e...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/2p...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/1H...</td>\n",
       "      <td>...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/43...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/3N...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/2I...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/2O...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/01...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/5g...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/5F...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/6t...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/50...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/4Z...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>gloom</th>\n",
       "      <td>0.418731</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>0.238815</td>\n",
       "      <td>0.22727</td>\n",
       "      <td>0.154272</td>\n",
       "      <td>0.35295</td>\n",
       "      <td>0.242494</td>\n",
       "      <td>0.307075</td>\n",
       "      <td>0.22049</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>href</th>\n",
       "      <td>https://api.spotify.com/v1/tracks/2ucFulEWapRA...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2z1p43SNSbeo...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/3ckvsHnEffhh...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/4edArG2VehvJ...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/150EAeMGWJRu...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1fVeHYkyMxrj...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/0GRplBEB2FWC...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1eVymk74iroq...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2p5a9gu6NECV...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1HyLh5cctOnP...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/43feVCF6QfqI...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/3NwEPV9MDr1z...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2Iccm3cKBQHW...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2OLMjGIhCNI6...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/01n20rdBC5cz...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/5gnrZoSS7nbD...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/5FBxWhG0nbBA...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/6tEwCsVtZ5tI...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/50jq8RgbDfmN...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/4Z1fbYp0HuxL...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>id</th>\n",
       "      <td>2ucFulEWapRAmTn7l6f5Q7</td>\n",
       "      <td>2z1p43SNSbeowzy8WdYHNk</td>\n",
       "      <td>3ckvsHnEffhhS5c0Cs6Gv5</td>\n",
       "      <td>4edArG2VehvJdwOZfYOxtK</td>\n",
       "      <td>150EAeMGWJRubuH8zyx7h8</td>\n",
       "      <td>1fVeHYkyMxrjbjRAD9uWsZ</td>\n",
       "      <td>0GRplBEB2FWCKutwMmS6nY</td>\n",
       "      <td>1eVymk74iroqhsZxm0Vy3g</td>\n",
       "      <td>2p5a9gu6NECVSvBtGSU1vm</td>\n",
       "      <td>1HyLh5cctOnP186CBi8bhm</td>\n",
       "      <td>...</td>\n",
       "      <td>43feVCF6QfqIt9LnLs9BAH</td>\n",
       "      <td>3NwEPV9MDr1z3KcHiAuz9d</td>\n",
       "      <td>2Iccm3cKBQHWt5yk0yX9nh</td>\n",
       "      <td>2OLMjGIhCNI6j34ysPscbp</td>\n",
       "      <td>01n20rdBC5czKAhxmGREkr</td>\n",
       "      <td>5gnrZoSS7nbDYtHp32RFiI</td>\n",
       "      <td>5FBxWhG0nbBAF6lWgJFklM</td>\n",
       "      <td>6tEwCsVtZ5tI8uHNJSHQ3b</td>\n",
       "      <td>50jq8RgbDfmNNd0NiRnl4L</td>\n",
       "      <td>4Z1fbYp0HuxLBje4MOZcSD</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>instrumentalness</th>\n",
       "      <td>0.627</td>\n",
       "      <td>0.88</td>\n",
       "      <td>8.92e-05</td>\n",
       "      <td>2.04e-06</td>\n",
       "      <td>2.42e-05</td>\n",
       "      <td>0.000141</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>6.2e-05</td>\n",
       "      <td>0.00127</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>4.22e-06</td>\n",
       "      <td>7.74e-06</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>key</th>\n",
       "      <td>2</td>\n",
       "      <td>0</td>\n",
       "      <td>7</td>\n",
       "      <td>2</td>\n",
       "      <td>9</td>\n",
       "      <td>11</td>\n",
       "      <td>9</td>\n",
       "      <td>5</td>\n",
       "      <td>5</td>\n",
       "      <td>2</td>\n",
       "      <td>...</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>0</td>\n",
       "      <td>2</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>1</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>liveness</th>\n",
       "      <td>0.789</td>\n",
       "      <td>0.0932</td>\n",
       "      <td>0.877</td>\n",
       "      <td>0.508</td>\n",
       "      <td>0.85</td>\n",
       "      <td>0.496</td>\n",
       "      <td>0.366</td>\n",
       "      <td>0.894</td>\n",
       "      <td>0.756</td>\n",
       "      <td>0.634</td>\n",
       "      <td>...</td>\n",
       "      <td>0.736</td>\n",
       "      <td>0.0967</td>\n",
       "      <td>0.0702</td>\n",
       "      <td>0.227</td>\n",
       "      <td>0.0828</td>\n",
       "      <td>0.0926</td>\n",
       "      <td>0.38</td>\n",
       "      <td>0.104</td>\n",
       "      <td>0.172</td>\n",
       "      <td>0.0414</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>loudness</th>\n",
       "      <td>-11.185</td>\n",
       "      <td>-14.755</td>\n",
       "      <td>-6.63</td>\n",
       "      <td>-8.696</td>\n",
       "      <td>-8.189</td>\n",
       "      <td>-6.879</td>\n",
       "      <td>-8.007</td>\n",
       "      <td>-7.606</td>\n",
       "      <td>-8.35</td>\n",
       "      <td>-7.948</td>\n",
       "      <td>...</td>\n",
       "      <td>-10.31</td>\n",
       "      <td>-11.33</td>\n",
       "      <td>-9.61</td>\n",
       "      <td>-6.228</td>\n",
       "      <td>-8.5</td>\n",
       "      <td>-12.211</td>\n",
       "      <td>-12.414</td>\n",
       "      <td>-11.416</td>\n",
       "      <td>-10.009</td>\n",
       "      <td>-9.198</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>lyrical_density</th>\n",
       "      <td>0.169898</td>\n",
       "      <td>0</td>\n",
       "      <td>NaN</td>\n",
       "      <td>2.82332</td>\n",
       "      <td>0.577965</td>\n",
       "      <td>0.796421</td>\n",
       "      <td>1.85312</td>\n",
       "      <td>1.47553</td>\n",
       "      <td>1.29746</td>\n",
       "      <td>1.7461</td>\n",
       "      <td>...</td>\n",
       "      <td>0.901393</td>\n",
       "      <td>1.01001</td>\n",
       "      <td>2.19275</td>\n",
       "      <td>0.783384</td>\n",
       "      <td>1.2303</td>\n",
       "      <td>1.32694</td>\n",
       "      <td>1.1879</td>\n",
       "      <td>0.74506</td>\n",
       "      <td>0.895984</td>\n",
       "      <td>1.70075</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>lyrics</th>\n",
       "      <td>honey pie honey pie i love you, honey pie</td>\n",
       "      <td></td>\n",
       "      <td>NaN</td>\n",
       "      <td>well shake it up baby now (shake it up baby) t...</td>\n",
       "      <td>my love don't give me presents i know that she...</td>\n",
       "      <td>{intro} you make me dizzy, miss lizzy the way ...</td>\n",
       "      <td>i think i'm going to be sad i think it's today...</td>\n",
       "      <td>can't buy me love, love can't buy me love i'll...</td>\n",
       "      <td>you say you will love me if i have to go you'l...</td>\n",
       "      <td>i'm gonna write a little letter gonna mail it ...</td>\n",
       "      <td>...</td>\n",
       "      <td>i been told when a boy kiss a girl take a trip...</td>\n",
       "      <td>i love you, because you tell me things i want ...</td>\n",
       "      <td>(lennon/mccartney) last night i said these wor...</td>\n",
       "      <td>love, love me do you know i love you i'll alwa...</td>\n",
       "      <td>as i write this letter send my love to you rem...</td>\n",
       "      <td>sha la la la la la la la sha la la la la la la...</td>\n",
       "      <td>you'll never know how much i really love you y...</td>\n",
       "      <td>a taste of honey! tasting much sweeter than wi...</td>\n",
       "      <td>there is a place where i can go when i feel lo...</td>\n",
       "      <td>well shake it up baby now (shake it up baby) t...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>mode</th>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>name</th>\n",
       "      <td>Wild Honey Pie - Remastered 2009</td>\n",
       "      <td>Flying - Remastered 2009</td>\n",
       "      <td>Kansas City / Hey-Hey-Hey-Hey - Remastered 2009</td>\n",
       "      <td>Twist And Shout - Live / Remastered</td>\n",
       "      <td>She's A Woman - Live / Remastered</td>\n",
       "      <td>Dizzy Miss Lizzy - Live / Remastered</td>\n",
       "      <td>Ticket To Ride - Live / Remastered</td>\n",
       "      <td>Can't Buy Me Love - Live / Remastered</td>\n",
       "      <td>Things We Said Today - Live / Remastered</td>\n",
       "      <td>Roll Over Beethoven - Live / Remastered</td>\n",
       "      <td>...</td>\n",
       "      <td>Boys - Remastered 2009</td>\n",
       "      <td>Ask Me Why - Remastered 2009</td>\n",
       "      <td>Please Please Me - Remastered 2009</td>\n",
       "      <td>Love Me Do - Remastered 2009</td>\n",
       "      <td>P.S. I Love You - Remastered 2009</td>\n",
       "      <td>Baby It's You - Remastered 2009</td>\n",
       "      <td>Do You Want To Know A Secret - Remastered 2009</td>\n",
       "      <td>A Taste Of Honey - Remastered 2009</td>\n",
       "      <td>There's A Place - Remastered 2009</td>\n",
       "      <td>Twist And Shout - Remastered 2009</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>original_lyrics</th>\n",
       "      <td>\\n\\nHoney Pie\\nHoney Pie\\nI love you, Honey Pi...</td>\n",
       "      <td>\\n\\n[Instrumental]\\n\\n</td>\n",
       "      <td>NaN</td>\n",
       "      <td>\\n\\n[Verse 1]\\nWell shake it up baby now (shak...</td>\n",
       "      <td>\\n\\n[Chorus]\\nMy love don't give me presents\\n...</td>\n",
       "      <td>\\n\\n{Intro}\\n\\nYou make me dizzy, Miss Lizzy\\n...</td>\n",
       "      <td>\\n\\n[Verse 1]\\nI think I'm going to be sad\\nI ...</td>\n",
       "      <td>\\n\\n[Chorus 1]\\nCan't buy me love, love\\nCan't...</td>\n",
       "      <td>\\n\\n[Verse 1]\\nYou say you will love me\\nIf I ...</td>\n",
       "      <td>\\n\\nI'm gonna write a little letter\\nGonna mai...</td>\n",
       "      <td>...</td>\n",
       "      <td>\\n\\n[Verse 1]\\nI been told when a boy kiss a g...</td>\n",
       "      <td>\\n\\n[Verse 1]\\nI love you, because you tell me...</td>\n",
       "      <td>\\n\\n(Lennon/McCartney)\\n\\nLast night I said th...</td>\n",
       "      <td>\\n\\nLove, love me do\\nYou know I love you\\nI'l...</td>\n",
       "      <td>\\n\\nAs I write this letter\\nSend my love to yo...</td>\n",
       "      <td>\\n\\n[Intro-The Beatles]\\nSha la la la la la la...</td>\n",
       "      <td>\\n\\n[Intro]\\nYou'll never know how much I real...</td>\n",
       "      <td>\\n\\n[Intro]\\nA taste of honey! Tasting much sw...</td>\n",
       "      <td>\\n\\n[Verse 1]\\nThere is a place\\nWhere I can g...</td>\n",
       "      <td>\\n\\n[Verse 1]\\nWell shake it up baby now (shak...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>popularity</th>\n",
       "      <td>43</td>\n",
       "      <td>44</td>\n",
       "      <td>38</td>\n",
       "      <td>48</td>\n",
       "      <td>45</td>\n",
       "      <td>44</td>\n",
       "      <td>44</td>\n",
       "      <td>44</td>\n",
       "      <td>43</td>\n",
       "      <td>43</td>\n",
       "      <td>...</td>\n",
       "      <td>42</td>\n",
       "      <td>41</td>\n",
       "      <td>48</td>\n",
       "      <td>55</td>\n",
       "      <td>43</td>\n",
       "      <td>44</td>\n",
       "      <td>48</td>\n",
       "      <td>40</td>\n",
       "      <td>43</td>\n",
       "      <td>64</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>preview_url</th>\n",
       "      <td>https://p.scdn.co/mp3-preview/ddebab4d5e87d46a...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/15f07b753cb7e50c...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/bd13930c7706bdd4...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/cd82d2f8f92a7222...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/37806a7d82c5d2a8...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/5ee6d20e1808908e...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/558bb39228550744...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/c6b9c820e62868db...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/7b71156485b9e3e1...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/318950f70347c556...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/c84bcc2dd65c3d9b...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/f42256fa5367c68f...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/c7974d03d8cd26de...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/c0c7944dcb9d2457...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/5ef1f2ba07489648...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/d7eeb1f68c39066d...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/5bd705943290818c...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/dd94439cdf6e7668...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/5260a1d4f12c23ac...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/b7e3bc96b46e4dcc...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>sentiment</th>\n",
       "      <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'neutral', 'probability': {'neutral'...</td>\n",
       "      <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
       "      <td>...</td>\n",
       "      <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'neg', 'probability': {'neutral': 0....</td>\n",
       "      <td>{'label': 'pos', 'probability': {'neutral': 0....</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>speechiness</th>\n",
       "      <td>0.0506</td>\n",
       "      <td>0.0501</td>\n",
       "      <td>0.0335</td>\n",
       "      <td>0.0395</td>\n",
       "      <td>0.0662</td>\n",
       "      <td>0.0461</td>\n",
       "      <td>0.0423</td>\n",
       "      <td>0.0571</td>\n",
       "      <td>0.0392</td>\n",
       "      <td>0.0398</td>\n",
       "      <td>...</td>\n",
       "      <td>0.0504</td>\n",
       "      <td>0.0378</td>\n",
       "      <td>0.028</td>\n",
       "      <td>0.0806</td>\n",
       "      <td>0.0291</td>\n",
       "      <td>0.0345</td>\n",
       "      <td>0.0368</td>\n",
       "      <td>0.0327</td>\n",
       "      <td>0.0292</td>\n",
       "      <td>0.0452</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>tempo</th>\n",
       "      <td>89.9</td>\n",
       "      <td>92.929</td>\n",
       "      <td>131.36</td>\n",
       "      <td>126.441</td>\n",
       "      <td>175.86</td>\n",
       "      <td>129.417</td>\n",
       "      <td>121.216</td>\n",
       "      <td>173.283</td>\n",
       "      <td>146.636</td>\n",
       "      <td>179.24</td>\n",
       "      <td>...</td>\n",
       "      <td>142.445</td>\n",
       "      <td>133.942</td>\n",
       "      <td>139.388</td>\n",
       "      <td>147.997</td>\n",
       "      <td>134.435</td>\n",
       "      <td>112.421</td>\n",
       "      <td>124.451</td>\n",
       "      <td>101.408</td>\n",
       "      <td>140.928</td>\n",
       "      <td>124.631</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>time_signature</th>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>3</td>\n",
       "      <td>...</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>track_href</th>\n",
       "      <td>https://api.spotify.com/v1/tracks/2ucFulEWapRA...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2z1p43SNSbeo...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/3ckvsHnEffhh...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/4edArG2VehvJ...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/150EAeMGWJRu...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1fVeHYkyMxrj...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/0GRplBEB2FWC...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1eVymk74iroq...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2p5a9gu6NECV...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1HyLh5cctOnP...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/43feVCF6QfqI...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/3NwEPV9MDr1z...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2Iccm3cKBQHW...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2OLMjGIhCNI6...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/01n20rdBC5cz...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/5gnrZoSS7nbD...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/5FBxWhG0nbBA...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/6tEwCsVtZ5tI...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/50jq8RgbDfmN...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/4Z1fbYp0HuxL...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>track_number</th>\n",
       "      <td>5</td>\n",
       "      <td>3</td>\n",
       "      <td>7</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>5</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>...</td>\n",
       "      <td>5</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>8</td>\n",
       "      <td>9</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>12</td>\n",
       "      <td>13</td>\n",
       "      <td>14</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>type</th>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>...</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>uri</th>\n",
       "      <td>spotify:track:2ucFulEWapRAmTn7l6f5Q7</td>\n",
       "      <td>spotify:track:2z1p43SNSbeowzy8WdYHNk</td>\n",
       "      <td>spotify:track:3ckvsHnEffhhS5c0Cs6Gv5</td>\n",
       "      <td>spotify:track:4edArG2VehvJdwOZfYOxtK</td>\n",
       "      <td>spotify:track:150EAeMGWJRubuH8zyx7h8</td>\n",
       "      <td>spotify:track:1fVeHYkyMxrjbjRAD9uWsZ</td>\n",
       "      <td>spotify:track:0GRplBEB2FWCKutwMmS6nY</td>\n",
       "      <td>spotify:track:1eVymk74iroqhsZxm0Vy3g</td>\n",
       "      <td>spotify:track:2p5a9gu6NECVSvBtGSU1vm</td>\n",
       "      <td>spotify:track:1HyLh5cctOnP186CBi8bhm</td>\n",
       "      <td>...</td>\n",
       "      <td>spotify:track:43feVCF6QfqIt9LnLs9BAH</td>\n",
       "      <td>spotify:track:3NwEPV9MDr1z3KcHiAuz9d</td>\n",
       "      <td>spotify:track:2Iccm3cKBQHWt5yk0yX9nh</td>\n",
       "      <td>spotify:track:2OLMjGIhCNI6j34ysPscbp</td>\n",
       "      <td>spotify:track:01n20rdBC5czKAhxmGREkr</td>\n",
       "      <td>spotify:track:5gnrZoSS7nbDYtHp32RFiI</td>\n",
       "      <td>spotify:track:5FBxWhG0nbBAF6lWgJFklM</td>\n",
       "      <td>spotify:track:6tEwCsVtZ5tI8uHNJSHQ3b</td>\n",
       "      <td>spotify:track:50jq8RgbDfmNNd0NiRnl4L</td>\n",
       "      <td>spotify:track:4Z1fbYp0HuxLBje4MOZcSD</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>valence</th>\n",
       "      <td>0.153</td>\n",
       "      <td>0.246</td>\n",
       "      <td>0.929</td>\n",
       "      <td>0.588</td>\n",
       "      <td>0.562</td>\n",
       "      <td>0.758</td>\n",
       "      <td>0.405</td>\n",
       "      <td>0.669</td>\n",
       "      <td>0.395</td>\n",
       "      <td>0.726</td>\n",
       "      <td>...</td>\n",
       "      <td>0.825</td>\n",
       "      <td>0.606</td>\n",
       "      <td>0.708</td>\n",
       "      <td>0.765</td>\n",
       "      <td>0.78</td>\n",
       "      <td>0.889</td>\n",
       "      <td>0.636</td>\n",
       "      <td>0.378</td>\n",
       "      <td>0.928</td>\n",
       "      <td>0.942</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>41 rows × 229 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                 0    \\\n",
       "_id                                           2ucFulEWapRAmTn7l6f5Q7   \n",
       "acousticness                                                   0.425   \n",
       "album              {'id': '03Qh833fEdVT30Pfs93ea6', 'uri': 'spoti...   \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            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                 0.0598502   \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",
       "gloom                                                       0.418731   \n",
       "href               https://api.spotify.com/v1/tracks/2ucFulEWapRA...   \n",
       "id                                            2ucFulEWapRAmTn7l6f5Q7   \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 2009   \n",
       "original_lyrics    \\n\\nHoney Pie\\nHoney Pie\\nI love you, Honey Pi...   \n",
       "popularity                                                        43   \n",
       "preview_url        https://p.scdn.co/mp3-preview/ddebab4d5e87d46a...   \n",
       "sentiment          {'label': 'pos', 'probability': {'neutral': 0....   \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.153   \n",
       "\n",
       "                                                                 1    \\\n",
       "_id                                           2z1p43SNSbeowzy8WdYHNk   \n",
       "acousticness                                                   0.368   \n",
       "album              {'id': '6P9yO0ukhOx3dvmhGKeYoC', 'uri': 'spoti...   \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            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \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",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/2z1p43SNSbeo...   \n",
       "id                                            2z1p43SNSbeowzy8WdYHNk   \n",
       "instrumentalness                                                0.88   \n",
       "key                                                                0   \n",
       "liveness                                                      0.0932   \n",
       "loudness                                                     -14.755   \n",
       "lyrical_density                                                    0   \n",
       "lyrics                                                                 \n",
       "mode                                                               1   \n",
       "name                                        Flying - Remastered 2009   \n",
       "original_lyrics                               \\n\\n[Instrumental]\\n\\n   \n",
       "popularity                                                        44   \n",
       "preview_url        https://p.scdn.co/mp3-preview/15f07b753cb7e50c...   \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.246   \n",
       "\n",
       "                                                                 2    \\\n",
       "_id                                           3ckvsHnEffhhS5c0Cs6Gv5   \n",
       "acousticness                                                   0.614   \n",
       "album              {'id': '7BgGBZndAvDlKOcwe5rscZ', 'uri': 'spoti...   \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            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \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",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/3ckvsHnEffhh...   \n",
       "id                                            3ckvsHnEffhhS5c0Cs6Gv5   \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 2009   \n",
       "original_lyrics                                                  NaN   \n",
       "popularity                                                        38   \n",
       "preview_url        https://p.scdn.co/mp3-preview/bd13930c7706bdd4...   \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.929   \n",
       "\n",
       "                                                                 3    \\\n",
       "_id                                           4edArG2VehvJdwOZfYOxtK   \n",
       "acousticness                                                7.67e-05   \n",
       "album              {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...   \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            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                  0.293946   \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",
       "gloom                                                       0.238815   \n",
       "href               https://api.spotify.com/v1/tracks/4edArG2VehvJ...   \n",
       "id                                            4edArG2VehvJdwOZfYOxtK   \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",
       "original_lyrics    \\n\\n[Verse 1]\\nWell shake it up baby now (shak...   \n",
       "popularity                                                        48   \n",
       "preview_url        https://p.scdn.co/mp3-preview/cd82d2f8f92a7222...   \n",
       "sentiment          {'label': 'pos', 'probability': {'neutral': 0....   \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.588   \n",
       "\n",
       "                                                                 4    \\\n",
       "_id                                           150EAeMGWJRubuH8zyx7h8   \n",
       "acousticness                                                 0.00675   \n",
       "album              {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...   \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            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                  0.316303   \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",
       "gloom                                                        0.22727   \n",
       "href               https://api.spotify.com/v1/tracks/150EAeMGWJRu...   \n",
       "id                                            150EAeMGWJRubuH8zyx7h8   \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",
       "original_lyrics    \\n\\n[Chorus]\\nMy love don't give me presents\\n...   \n",
       "popularity                                                        45   \n",
       "preview_url        https://p.scdn.co/mp3-preview/37806a7d82c5d2a8...   \n",
       "sentiment          {'label': 'neutral', 'probability': {'neutral'...   \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.562   \n",
       "\n",
       "                                                                 5    \\\n",
       "_id                                           1fVeHYkyMxrjbjRAD9uWsZ   \n",
       "acousticness                                                  0.0131   \n",
       "album              {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...   \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            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                  0.445783   \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",
       "gloom                                                       0.154272   \n",
       "href               https://api.spotify.com/v1/tracks/1fVeHYkyMxrj...   \n",
       "id                                            1fVeHYkyMxrjbjRAD9uWsZ   \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 ...   \n",
       "mode                                                               0   \n",
       "name                            Dizzy Miss Lizzy - Live / Remastered   \n",
       "original_lyrics    \\n\\n{Intro}\\n\\nYou make me dizzy, Miss Lizzy\\n...   \n",
       "popularity                                                        44   \n",
       "preview_url        https://p.scdn.co/mp3-preview/5ee6d20e1808908e...   \n",
       "sentiment          {'label': 'neg', 'probability': {'neutral': 0....   \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.758   \n",
       "\n",
       "                                                                 6    \\\n",
       "_id                                           0GRplBEB2FWCKutwMmS6nY   \n",
       "acousticness                                                 0.00327   \n",
       "album              {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...   \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            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                  0.334303   \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",
       "gloom                                                        0.35295   \n",
       "href               https://api.spotify.com/v1/tracks/0GRplBEB2FWC...   \n",
       "id                                            0GRplBEB2FWCKutwMmS6nY   \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",
       "original_lyrics    \\n\\n[Verse 1]\\nI think I'm going to be sad\\nI ...   \n",
       "popularity                                                        44   \n",
       "preview_url        https://p.scdn.co/mp3-preview/558bb39228550744...   \n",
       "sentiment          {'label': 'neg', 'probability': {'neutral': 0....   \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.405   \n",
       "\n",
       "                                                                 7    \\\n",
       "_id                                           1eVymk74iroqhsZxm0Vy3g   \n",
       "acousticness                                                 0.00865   \n",
       "album              {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...   \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            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                  0.493981   \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",
       "gloom                                                       0.242494   \n",
       "href               https://api.spotify.com/v1/tracks/1eVymk74iroq...   \n",
       "id                                            1eVymk74iroqhsZxm0Vy3g   \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",
       "original_lyrics    \\n\\n[Chorus 1]\\nCan't buy me love, love\\nCan't...   \n",
       "popularity                                                        44   \n",
       "preview_url        https://p.scdn.co/mp3-preview/c6b9c820e62868db...   \n",
       "sentiment          {'label': 'neg', 'probability': {'neutral': 0....   \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.669   \n",
       "\n",
       "                                                                 8    \\\n",
       "_id                                           2p5a9gu6NECVSvBtGSU1vm   \n",
       "acousticness                                                  0.0836   \n",
       "album              {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...   \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            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                   0.24995   \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",
       "gloom                                                       0.307075   \n",
       "href               https://api.spotify.com/v1/tracks/2p5a9gu6NECV...   \n",
       "id                                            2p5a9gu6NECVSvBtGSU1vm   \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",
       "original_lyrics    \\n\\n[Verse 1]\\nYou say you will love me\\nIf I ...   \n",
       "popularity                                                        43   \n",
       "preview_url        https://p.scdn.co/mp3-preview/7b71156485b9e3e1...   \n",
       "sentiment          {'label': 'neg', 'probability': {'neutral': 0....   \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.395   \n",
       "\n",
       "                                                                 9    \\\n",
       "_id                                           1HyLh5cctOnP186CBi8bhm   \n",
       "acousticness                                                 0.00242   \n",
       "album              {'id': '5XfJmldgWzrc1AIdbBaVZn', 'uri': 'spoti...   \n",
       "album_id                                      5XfJmldgWzrc1AIdbBaVZn   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/1HyL...   \n",
       "artist_id                                     3WrFJ7ztbogyGnTHbHJFl2   \n",
       "artist_name                                              The Beatles   \n",
       "artists            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                  0.467134   \n",
       "ctitle                                           roll over beethoven   \n",
       "danceability                                                   0.204   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   134013   \n",
       "energy                                                         0.808   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBUM71603955'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/1H...   \n",
       "gloom                                                        0.22049   \n",
       "href               https://api.spotify.com/v1/tracks/1HyLh5cctOnP...   \n",
       "id                                            1HyLh5cctOnP186CBi8bhm   \n",
       "instrumentalness                                                   0   \n",
       "key                                                                2   \n",
       "liveness                                                       0.634   \n",
       "loudness                                                      -7.948   \n",
       "lyrical_density                                               1.7461   \n",
       "lyrics             i'm gonna write a little letter gonna mail it ...   \n",
       "mode                                                               1   \n",
       "name                         Roll Over Beethoven - Live / Remastered   \n",
       "original_lyrics    \\n\\nI'm gonna write a little letter\\nGonna mai...   \n",
       "popularity                                                        43   \n",
       "preview_url        https://p.scdn.co/mp3-preview/318950f70347c556...   \n",
       "sentiment          {'label': 'neg', 'probability': {'neutral': 0....   \n",
       "speechiness                                                   0.0398   \n",
       "tempo                                                         179.24   \n",
       "time_signature                                                     3   \n",
       "track_href         https://api.spotify.com/v1/tracks/1HyLh5cctOnP...   \n",
       "track_number                                                       7   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:1HyLh5cctOnP186CBi8bhm   \n",
       "valence                                                        0.726   \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",
       "complexity                               ...                           \n",
       "ctitle                                   ...                           \n",
       "danceability                             ...                           \n",
       "disc_number                              ...                           \n",
       "duration_ms                              ...                           \n",
       "energy                                   ...                           \n",
       "explicit                                 ...                           \n",
       "external_ids                             ...                           \n",
       "external_urls                            ...                           \n",
       "gloom                                    ...                           \n",
       "href                                     ...                           \n",
       "id                                       ...                           \n",
       "instrumentalness                         ...                           \n",
       "key                                      ...                           \n",
       "liveness                                 ...                           \n",
       "loudness                                 ...                           \n",
       "lyrical_density                          ...                           \n",
       "lyrics                                   ...                           \n",
       "mode                                     ...                           \n",
       "name                                     ...                           \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",
       "                                                                 219  \\\n",
       "_id                                           43feVCF6QfqIt9LnLs9BAH   \n",
       "acousticness                                                   0.607   \n",
       "album              {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...   \n",
       "album_id                                      7gDXyW16byCQOgK965BRzn   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/43fe...   \n",
       "artist_id                                     3WrFJ7ztbogyGnTHbHJFl2   \n",
       "artist_name                                              The Beatles   \n",
       "artists            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                                          boys   \n",
       "danceability                                                   0.402   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   146440   \n",
       "energy                                                          0.86   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBAYE0601414'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/43...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/43feVCF6QfqI...   \n",
       "id                                            43feVCF6QfqIt9LnLs9BAH   \n",
       "instrumentalness                                                   0   \n",
       "key                                                                4   \n",
       "liveness                                                       0.736   \n",
       "loudness                                                      -10.31   \n",
       "lyrical_density                                             0.901393   \n",
       "lyrics             i been told when a boy kiss a girl take a trip...   \n",
       "mode                                                               1   \n",
       "name                                          Boys - Remastered 2009   \n",
       "original_lyrics    \\n\\n[Verse 1]\\nI been told when a boy kiss a g...   \n",
       "popularity                                                        42   \n",
       "preview_url        https://p.scdn.co/mp3-preview/c84bcc2dd65c3d9b...   \n",
       "sentiment          {'label': 'neg', 'probability': {'neutral': 0....   \n",
       "speechiness                                                   0.0504   \n",
       "tempo                                                        142.445   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/43feVCF6QfqI...   \n",
       "track_number                                                       5   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:43feVCF6QfqIt9LnLs9BAH   \n",
       "valence                                                        0.825   \n",
       "\n",
       "                                                                 220  \\\n",
       "_id                                           3NwEPV9MDr1z3KcHiAuz9d   \n",
       "acousticness                                                   0.767   \n",
       "album              {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...   \n",
       "album_id                                      7gDXyW16byCQOgK965BRzn   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/3NwE...   \n",
       "artist_id                                     3WrFJ7ztbogyGnTHbHJFl2   \n",
       "artist_name                                              The Beatles   \n",
       "artists            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                                    ask me why   \n",
       "danceability                                                   0.605   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   146533   \n",
       "energy                                                         0.394   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBAYE0601415'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/3N...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/3NwEPV9MDr1z...   \n",
       "id                                            3NwEPV9MDr1z3KcHiAuz9d   \n",
       "instrumentalness                                                   0   \n",
       "key                                                                4   \n",
       "liveness                                                      0.0967   \n",
       "loudness                                                      -11.33   \n",
       "lyrical_density                                              1.01001   \n",
       "lyrics             i love you, because you tell me things i want ...   \n",
       "mode                                                               1   \n",
       "name                                    Ask Me Why - Remastered 2009   \n",
       "original_lyrics    \\n\\n[Verse 1]\\nI love you, because you tell me...   \n",
       "popularity                                                        41   \n",
       "preview_url        https://p.scdn.co/mp3-preview/f42256fa5367c68f...   \n",
       "sentiment          {'label': 'neg', 'probability': {'neutral': 0....   \n",
       "speechiness                                                   0.0378   \n",
       "tempo                                                        133.942   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/3NwEPV9MDr1z...   \n",
       "track_number                                                       6   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:3NwEPV9MDr1z3KcHiAuz9d   \n",
       "valence                                                        0.606   \n",
       "\n",
       "                                                                 221  \\\n",
       "_id                                           2Iccm3cKBQHWt5yk0yX9nh   \n",
       "acousticness                                                   0.334   \n",
       "album              {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...   \n",
       "album_id                                      7gDXyW16byCQOgK965BRzn   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/2Icc...   \n",
       "artist_id                                     3WrFJ7ztbogyGnTHbHJFl2   \n",
       "artist_name                                              The Beatles   \n",
       "artists            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                              please please me   \n",
       "danceability                                                   0.527   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   120853   \n",
       "energy                                                          0.48   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBAYE0601416'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/2I...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/2Iccm3cKBQHW...   \n",
       "id                                            2Iccm3cKBQHWt5yk0yX9nh   \n",
       "instrumentalness                                                   0   \n",
       "key                                                                4   \n",
       "liveness                                                      0.0702   \n",
       "loudness                                                       -9.61   \n",
       "lyrical_density                                              2.19275   \n",
       "lyrics             (lennon/mccartney) last night i said these wor...   \n",
       "mode                                                               1   \n",
       "name                              Please Please Me - Remastered 2009   \n",
       "original_lyrics    \\n\\n(Lennon/McCartney)\\n\\nLast night I said th...   \n",
       "popularity                                                        48   \n",
       "preview_url        https://p.scdn.co/mp3-preview/c7974d03d8cd26de...   \n",
       "sentiment          {'label': 'neg', 'probability': {'neutral': 0....   \n",
       "speechiness                                                    0.028   \n",
       "tempo                                                        139.388   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/2Iccm3cKBQHW...   \n",
       "track_number                                                       7   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:2Iccm3cKBQHWt5yk0yX9nh   \n",
       "valence                                                        0.708   \n",
       "\n",
       "                                                                 222  \\\n",
       "_id                                           2OLMjGIhCNI6j34ysPscbp   \n",
       "acousticness                                                   0.386   \n",
       "album              {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...   \n",
       "album_id                                      7gDXyW16byCQOgK965BRzn   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/2OLM...   \n",
       "artist_id                                     3WrFJ7ztbogyGnTHbHJFl2   \n",
       "artist_name                                              The Beatles   \n",
       "artists            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                                    love me do   \n",
       "danceability                                                    0.52   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   141693   \n",
       "energy                                                         0.829   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBAYE0601417'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/2O...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/2OLMjGIhCNI6...   \n",
       "id                                            2OLMjGIhCNI6j34ysPscbp   \n",
       "instrumentalness                                             6.2e-05   \n",
       "key                                                                0   \n",
       "liveness                                                       0.227   \n",
       "loudness                                                      -6.228   \n",
       "lyrical_density                                             0.783384   \n",
       "lyrics             love, love me do you know i love you i'll alwa...   \n",
       "mode                                                               1   \n",
       "name                                    Love Me Do - Remastered 2009   \n",
       "original_lyrics    \\n\\nLove, love me do\\nYou know I love you\\nI'l...   \n",
       "popularity                                                        55   \n",
       "preview_url        https://p.scdn.co/mp3-preview/c0c7944dcb9d2457...   \n",
       "sentiment          {'label': 'pos', 'probability': {'neutral': 0....   \n",
       "speechiness                                                   0.0806   \n",
       "tempo                                                        147.997   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/2OLMjGIhCNI6...   \n",
       "track_number                                                       8   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:2OLMjGIhCNI6j34ysPscbp   \n",
       "valence                                                        0.765   \n",
       "\n",
       "                                                                 223  \\\n",
       "_id                                           01n20rdBC5czKAhxmGREkr   \n",
       "acousticness                                                   0.389   \n",
       "album              {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...   \n",
       "album_id                                      7gDXyW16byCQOgK965BRzn   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/01n2...   \n",
       "artist_id                                     3WrFJ7ztbogyGnTHbHJFl2   \n",
       "artist_name                                              The Beatles   \n",
       "artists            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                                 ps i love you   \n",
       "danceability                                                   0.635   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   124360   \n",
       "energy                                                         0.656   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBAYE0601418'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/01...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/01n20rdBC5cz...   \n",
       "id                                            01n20rdBC5czKAhxmGREkr   \n",
       "instrumentalness                                             0.00127   \n",
       "key                                                                2   \n",
       "liveness                                                      0.0828   \n",
       "loudness                                                        -8.5   \n",
       "lyrical_density                                               1.2303   \n",
       "lyrics             as i write this letter send my love to you rem...   \n",
       "mode                                                               1   \n",
       "name                               P.S. I Love You - Remastered 2009   \n",
       "original_lyrics    \\n\\nAs I write this letter\\nSend my love to yo...   \n",
       "popularity                                                        43   \n",
       "preview_url        https://p.scdn.co/mp3-preview/5ef1f2ba07489648...   \n",
       "sentiment          {'label': 'pos', 'probability': {'neutral': 0....   \n",
       "speechiness                                                   0.0291   \n",
       "tempo                                                        134.435   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/01n20rdBC5cz...   \n",
       "track_number                                                       9   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:01n20rdBC5czKAhxmGREkr   \n",
       "valence                                                         0.78   \n",
       "\n",
       "                                                                 224  \\\n",
       "_id                                           5gnrZoSS7nbDYtHp32RFiI   \n",
       "acousticness                                                   0.778   \n",
       "album              {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...   \n",
       "album_id                                      7gDXyW16byCQOgK965BRzn   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/5gnr...   \n",
       "artist_id                                     3WrFJ7ztbogyGnTHbHJFl2   \n",
       "artist_name                                              The Beatles   \n",
       "artists            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                                  baby its you   \n",
       "danceability                                                   0.608   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   160520   \n",
       "energy                                                         0.494   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBAYE0601419'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/5g...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/5gnrZoSS7nbD...   \n",
       "id                                            5gnrZoSS7nbDYtHp32RFiI   \n",
       "instrumentalness                                                   0   \n",
       "key                                                                4   \n",
       "liveness                                                      0.0926   \n",
       "loudness                                                     -12.211   \n",
       "lyrical_density                                              1.32694   \n",
       "lyrics             sha la la la la la la la sha la la la la la la...   \n",
       "mode                                                               0   \n",
       "name                                 Baby It's You - Remastered 2009   \n",
       "original_lyrics    \\n\\n[Intro-The Beatles]\\nSha la la la la la la...   \n",
       "popularity                                                        44   \n",
       "preview_url        https://p.scdn.co/mp3-preview/d7eeb1f68c39066d...   \n",
       "sentiment          {'label': 'neg', 'probability': {'neutral': 0....   \n",
       "speechiness                                                   0.0345   \n",
       "tempo                                                        112.421   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/5gnrZoSS7nbD...   \n",
       "track_number                                                      10   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:5gnrZoSS7nbDYtHp32RFiI   \n",
       "valence                                                        0.889   \n",
       "\n",
       "                                                                 225  \\\n",
       "_id                                           5FBxWhG0nbBAF6lWgJFklM   \n",
       "acousticness                                                   0.608   \n",
       "album              {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...   \n",
       "album_id                                      7gDXyW16byCQOgK965BRzn   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/5FBx...   \n",
       "artist_id                                     3WrFJ7ztbogyGnTHbHJFl2   \n",
       "artist_name                                              The Beatles   \n",
       "artists            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                  do you want to know a secret   \n",
       "danceability                                                   0.673   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   117013   \n",
       "energy                                                         0.349   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBAYE0601420'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/5F...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/5FBxWhG0nbBA...   \n",
       "id                                            5FBxWhG0nbBAF6lWgJFklM   \n",
       "instrumentalness                                                   0   \n",
       "key                                                                4   \n",
       "liveness                                                        0.38   \n",
       "loudness                                                     -12.414   \n",
       "lyrical_density                                               1.1879   \n",
       "lyrics             you'll never know how much i really love you y...   \n",
       "mode                                                               1   \n",
       "name                  Do You Want To Know A Secret - Remastered 2009   \n",
       "original_lyrics    \\n\\n[Intro]\\nYou'll never know how much I real...   \n",
       "popularity                                                        48   \n",
       "preview_url        https://p.scdn.co/mp3-preview/5bd705943290818c...   \n",
       "sentiment          {'label': 'neg', 'probability': {'neutral': 0....   \n",
       "speechiness                                                   0.0368   \n",
       "tempo                                                        124.451   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/5FBxWhG0nbBA...   \n",
       "track_number                                                      11   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:5FBxWhG0nbBAF6lWgJFklM   \n",
       "valence                                                        0.636   \n",
       "\n",
       "                                                                 226  \\\n",
       "_id                                           6tEwCsVtZ5tI8uHNJSHQ3b   \n",
       "acousticness                                                   0.698   \n",
       "album              {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...   \n",
       "album_id                                      7gDXyW16byCQOgK965BRzn   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/6tEw...   \n",
       "artist_id                                     3WrFJ7ztbogyGnTHbHJFl2   \n",
       "artist_name                                              The Beatles   \n",
       "artists            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                              a taste of honey   \n",
       "danceability                                                    0.42   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   123480   \n",
       "energy                                                         0.372   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBAYE0601421'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/6t...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/6tEwCsVtZ5tI...   \n",
       "id                                            6tEwCsVtZ5tI8uHNJSHQ3b   \n",
       "instrumentalness                                                   0   \n",
       "key                                                                1   \n",
       "liveness                                                       0.104   \n",
       "loudness                                                     -11.416   \n",
       "lyrical_density                                              0.74506   \n",
       "lyrics             a taste of honey! tasting much sweeter than wi...   \n",
       "mode                                                               0   \n",
       "name                              A Taste Of Honey - Remastered 2009   \n",
       "original_lyrics    \\n\\n[Intro]\\nA taste of honey! Tasting much sw...   \n",
       "popularity                                                        40   \n",
       "preview_url        https://p.scdn.co/mp3-preview/dd94439cdf6e7668...   \n",
       "sentiment          {'label': 'pos', 'probability': {'neutral': 0....   \n",
       "speechiness                                                   0.0327   \n",
       "tempo                                                        101.408   \n",
       "time_signature                                                     3   \n",
       "track_href         https://api.spotify.com/v1/tracks/6tEwCsVtZ5tI...   \n",
       "track_number                                                      12   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:6tEwCsVtZ5tI8uHNJSHQ3b   \n",
       "valence                                                        0.378   \n",
       "\n",
       "                                                                 227  \\\n",
       "_id                                           50jq8RgbDfmNNd0NiRnl4L   \n",
       "acousticness                                                   0.629   \n",
       "album              {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...   \n",
       "album_id                                      7gDXyW16byCQOgK965BRzn   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/50jq...   \n",
       "artist_id                                     3WrFJ7ztbogyGnTHbHJFl2   \n",
       "artist_name                                              The Beatles   \n",
       "artists            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "complexity                                                       NaN   \n",
       "ctitle                                                theres a place   \n",
       "danceability                                                   0.455   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   110493   \n",
       "energy                                                         0.582   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBAYE0601422'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/50...   \n",
       "gloom                                                            NaN   \n",
       "href               https://api.spotify.com/v1/tracks/50jq8RgbDfmN...   \n",
       "id                                            50jq8RgbDfmNNd0NiRnl4L   \n",
       "instrumentalness                                            4.22e-06   \n",
       "key                                                                4   \n",
       "liveness                                                       0.172   \n",
       "loudness                                                     -10.009   \n",
       "lyrical_density                                             0.895984   \n",
       "lyrics             there is a place where i can go when i feel lo...   \n",
       "mode                                                               1   \n",
       "name                               There's A Place - Remastered 2009   \n",
       "original_lyrics    \\n\\n[Verse 1]\\nThere is a place\\nWhere I can g...   \n",
       "popularity                                                        43   \n",
       "preview_url        https://p.scdn.co/mp3-preview/5260a1d4f12c23ac...   \n",
       "sentiment          {'label': 'neg', 'probability': {'neutral': 0....   \n",
       "speechiness                                                   0.0292   \n",
       "tempo                                                        140.928   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/50jq8RgbDfmN...   \n",
       "track_number                                                      13   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:50jq8RgbDfmNNd0NiRnl4L   \n",
       "valence                                                        0.928   \n",
       "\n",
       "                                                                 228  \n",
       "_id                                           4Z1fbYp0HuxLBje4MOZcSD  \n",
       "acousticness                                                   0.641  \n",
       "album              {'id': '7gDXyW16byCQOgK965BRzn', 'uri': 'spoti...  \n",
       "album_id                                      7gDXyW16byCQOgK965BRzn  \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/4Z1f...  \n",
       "artist_id                                     3WrFJ7ztbogyGnTHbHJFl2  \n",
       "artist_name                                              The Beatles  \n",
       "artists            [{'id': '3WrFJ7ztbogyGnTHbHJFl2', 'type': 'art...  \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...  \n",
       "complexity                                                       NaN  \n",
       "ctitle                                               twist and shout  \n",
       "danceability                                                   0.482  \n",
       "disc_number                                                        1  \n",
       "duration_ms                                                   155227  \n",
       "energy                                                         0.849  \n",
       "explicit                                                       False  \n",
       "external_ids                                {'isrc': 'GBAYE0601423'}  \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/4Z...  \n",
       "gloom                                                            NaN  \n",
       "href               https://api.spotify.com/v1/tracks/4Z1fbYp0HuxL...  \n",
       "id                                            4Z1fbYp0HuxLBje4MOZcSD  \n",
       "instrumentalness                                            7.74e-06  \n",
       "key                                                                2  \n",
       "liveness                                                      0.0414  \n",
       "loudness                                                      -9.198  \n",
       "lyrical_density                                              1.70075  \n",
       "lyrics             well shake it up baby now (shake it up baby) t...  \n",
       "mode                                                               1  \n",
       "name                               Twist And Shout - Remastered 2009  \n",
       "original_lyrics    \\n\\n[Verse 1]\\nWell shake it up baby now (shak...  \n",
       "popularity                                                        64  \n",
       "preview_url        https://p.scdn.co/mp3-preview/b7e3bc96b46e4dcc...  \n",
       "sentiment          {'label': 'pos', 'probability': {'neutral': 0....  \n",
       "speechiness                                                   0.0452  \n",
       "tempo                                                        124.631  \n",
       "time_signature                                                     4  \n",
       "track_href         https://api.spotify.com/v1/tracks/4Z1fbYp0HuxL...  \n",
       "track_number                                                      14  \n",
       "type                                                  audio_features  \n",
       "uri                             spotify:track:4Z1fbYp0HuxLBje4MOZcSD  \n",
       "valence                                                        0.942  \n",
       "\n",
       "[41 rows x 229 columns]"
      ]
     },
     "execution_count": 37,
     "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": 33,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>...</th>\n",
       "      <th>265</th>\n",
       "      <th>266</th>\n",
       "      <th>267</th>\n",
       "      <th>268</th>\n",
       "      <th>269</th>\n",
       "      <th>270</th>\n",
       "      <th>271</th>\n",
       "      <th>272</th>\n",
       "      <th>273</th>\n",
       "      <th>274</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>_id</th>\n",
       "      <td>3u06WsJ1KtvEqmmmZqy76J</td>\n",
       "      <td>1lLK53LFXWvPzPYtlJIvt0</td>\n",
       "      <td>74tlMxJ8wF0sNp93GBEPdK</td>\n",
       "      <td>1jgefM2ZP7RnPVShhy1eUM</td>\n",
       "      <td>4HKaTAMIXT88muGU1JN9lI</td>\n",
       "      <td>7FagS2T3y5XwDpYvyHfvmc</td>\n",
       "      <td>0B5CEdw4WBs91yn444ZP27</td>\n",
       "      <td>19LYBNYOMwmDKXvhwq5Ggv</td>\n",
       "      <td>281J4XFm5DLfVt1nKNBsPn</td>\n",
       "      <td>56ljxn1tdisThe4xcVe4px</td>\n",
       "      <td>...</td>\n",
       "      <td>2BxO4VLPjzrApKTHZjpz9G</td>\n",
       "      <td>6L7tmFIPKy98Js8ytCB1pT</td>\n",
       "      <td>2gB58ki3GMqyNsdsPpDECH</td>\n",
       "      <td>6C0au9ut1avz4zhryYHudG</td>\n",
       "      <td>1NvBOki5VmSSVelycoMo96</td>\n",
       "      <td>31KuT5lcyp6NlDBjp3EVTp</td>\n",
       "      <td>3u0cZhyEPYIe9qDKPEeS4g</td>\n",
       "      <td>6gVXeA52q3FbLANm6gW0Ma</td>\n",
       "      <td>2rNBqTve7unpL01DuTyX3P</td>\n",
       "      <td>3Ey71ndsJ2GDMgT0hVJlPs</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>acousticness</th>\n",
       "      <td>0.107</td>\n",
       "      <td>0.536</td>\n",
       "      <td>0.00352</td>\n",
       "      <td>0.148</td>\n",
       "      <td>0.0328</td>\n",
       "      <td>0.000552</td>\n",
       "      <td>0.347</td>\n",
       "      <td>0.109</td>\n",
       "      <td>0.0391</td>\n",
       "      <td>0.024</td>\n",
       "      <td>...</td>\n",
       "      <td>0.181</td>\n",
       "      <td>0.0207</td>\n",
       "      <td>0.00742</td>\n",
       "      <td>0.0184</td>\n",
       "      <td>0.002</td>\n",
       "      <td>0.000283</td>\n",
       "      <td>0.395</td>\n",
       "      <td>0.147</td>\n",
       "      <td>0.474</td>\n",
       "      <td>0.173</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>album</th>\n",
       "      <td>{'id': '6FjXxl9VLURGuubdXUn2J3', 'type': 'albu...</td>\n",
       "      <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
       "      <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
       "      <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
       "      <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
       "      <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
       "      <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
       "      <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
       "      <td>{'id': '3CHu7qW160uqPZHW3TMZ1l', 'type': 'albu...</td>\n",
       "      <td>{'id': '3CHu7qW160uqPZHW3TMZ1l', 'type': 'albu...</td>\n",
       "      <td>...</td>\n",
       "      <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
       "      <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
       "      <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
       "      <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
       "      <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
       "      <td>{'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...</td>\n",
       "      <td>{'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...</td>\n",
       "      <td>{'id': '62ZT16LY1phGM0O8x5qW1z', 'type': 'albu...</td>\n",
       "      <td>{'id': '4g9Jfls8z2nbQxj5PiXkiy', 'type': 'albu...</td>\n",
       "      <td>{'id': '4fhWcu56Bbh5wALuTouFVW', 'type': 'albu...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>album_id</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
       "      <td>3CHu7qW160uqPZHW3TMZ1l</td>\n",
       "      <td>3CHu7qW160uqPZHW3TMZ1l</td>\n",
       "      <td>...</td>\n",
       "      <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
       "      <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
       "      <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
       "      <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
       "      <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
       "      <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>62ZT16LY1phGM0O8x5qW1z</td>\n",
       "      <td>4g9Jfls8z2nbQxj5PiXkiy</td>\n",
       "      <td>4fhWcu56Bbh5wALuTouFVW</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>analysis_url</th>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/3u06...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/1lLK...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/74tl...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/1jge...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/4HKa...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/7Fag...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/0B5C...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/19LY...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/281J...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/56lj...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/2BxO...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/6L7t...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/2gB5...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/6C0a...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/1NvB...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/31Ku...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/3u0c...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/6gVX...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/2rNB...</td>\n",
       "      <td>https://api.spotify.com/v1/audio-analysis/3Ey7...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>artist_id</th>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>...</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "      <td>22bE4uQ6baNwSHPVcDxLCe</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>artist_name</th>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>...</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>artists</th>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "      <td>[{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>available_markets</th>\n",
       "      <td>[AD, AR, AT, AU, BG, BO, BR, CL, CO, CR, CY, C...</td>\n",
       "      <td>[GB]</td>\n",
       "      <td>[GB]</td>\n",
       "      <td>[GB]</td>\n",
       "      <td>[GB]</td>\n",
       "      <td>[GB]</td>\n",
       "      <td>[GB]</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[GB]</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...</td>\n",
       "      <td>[AD, AR, AT, AU, BE, BG, BO, CH, CL, CO, CR, C...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>danceability</th>\n",
       "      <td>0.216</td>\n",
       "      <td>0.395</td>\n",
       "      <td>0.367</td>\n",
       "      <td>0.282</td>\n",
       "      <td>0.427</td>\n",
       "      <td>0.318</td>\n",
       "      <td>0.42</td>\n",
       "      <td>0.243</td>\n",
       "      <td>0.303</td>\n",
       "      <td>0.412</td>\n",
       "      <td>...</td>\n",
       "      <td>0.46</td>\n",
       "      <td>0.44</td>\n",
       "      <td>0.438</td>\n",
       "      <td>0.245</td>\n",
       "      <td>0.124</td>\n",
       "      <td>0.213</td>\n",
       "      <td>0.262</td>\n",
       "      <td>0.486</td>\n",
       "      <td>0.416</td>\n",
       "      <td>0.282</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>disc_number</th>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>duration_ms</th>\n",
       "      <td>180280</td>\n",
       "      <td>305280</td>\n",
       "      <td>293773</td>\n",
       "      <td>191787</td>\n",
       "      <td>409360</td>\n",
       "      <td>303627</td>\n",
       "      <td>291240</td>\n",
       "      <td>246000</td>\n",
       "      <td>262933</td>\n",
       "      <td>399867</td>\n",
       "      <td>...</td>\n",
       "      <td>135040</td>\n",
       "      <td>147040</td>\n",
       "      <td>155600</td>\n",
       "      <td>164320</td>\n",
       "      <td>148560</td>\n",
       "      <td>189600</td>\n",
       "      <td>291253</td>\n",
       "      <td>144867</td>\n",
       "      <td>286680</td>\n",
       "      <td>929458</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>energy</th>\n",
       "      <td>0.669</td>\n",
       "      <td>0.733</td>\n",
       "      <td>0.962</td>\n",
       "      <td>0.883</td>\n",
       "      <td>0.944</td>\n",
       "      <td>0.976</td>\n",
       "      <td>0.951</td>\n",
       "      <td>0.978</td>\n",
       "      <td>0.951</td>\n",
       "      <td>0.934</td>\n",
       "      <td>...</td>\n",
       "      <td>0.976</td>\n",
       "      <td>0.932</td>\n",
       "      <td>0.912</td>\n",
       "      <td>0.964</td>\n",
       "      <td>0.92</td>\n",
       "      <td>0.929</td>\n",
       "      <td>0.835</td>\n",
       "      <td>0.451</td>\n",
       "      <td>0.672</td>\n",
       "      <td>0.898</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>explicit</th>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>True</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>...</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "      <td>False</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>external_ids</th>\n",
       "      <td>{'isrc': 'GBUM71109053'}</td>\n",
       "      <td>{'isrc': 'GBCBR1500394'}</td>\n",
       "      <td>{'isrc': 'GBCBR1500392'}</td>\n",
       "      <td>{'isrc': 'GBCBR1500391'}</td>\n",
       "      <td>{'isrc': 'GBCBR1500396'}</td>\n",
       "      <td>{'isrc': 'GBCBR1500401'}</td>\n",
       "      <td>{'isrc': 'GBCBR1500404'}</td>\n",
       "      <td>{'isrc': 'USA171210012'}</td>\n",
       "      <td>{'isrc': 'GBUM70802505'}</td>\n",
       "      <td>{'isrc': 'GBUM70802502'}</td>\n",
       "      <td>...</td>\n",
       "      <td>{'isrc': 'USA171210005'}</td>\n",
       "      <td>{'isrc': 'USA171210006'}</td>\n",
       "      <td>{'isrc': 'USA171210008'}</td>\n",
       "      <td>{'isrc': 'USA171210009'}</td>\n",
       "      <td>{'isrc': 'USA171210010'}</td>\n",
       "      <td>{'isrc': 'USA171210011'}</td>\n",
       "      <td>{'isrc': 'GBCBR1500395'}</td>\n",
       "      <td>{'isrc': 'GBUM70909519'}</td>\n",
       "      <td>{'isrc': 'GBUM71604631'}</td>\n",
       "      <td>{'isrc': 'GBCBR1600265'}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>external_urls</th>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/3u...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/1l...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/74...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/1j...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/4H...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/7F...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/0B...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/19...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/28...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/56...</td>\n",
       "      <td>...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/2B...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/6L...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/2g...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/6C...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/1N...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/31...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/3u...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/6g...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/2r...</td>\n",
       "      <td>{'spotify': 'https://open.spotify.com/track/3E...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>href</th>\n",
       "      <td>https://api.spotify.com/v1/tracks/3u06WsJ1KtvE...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1lLK53LFXWvP...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/74tlMxJ8wF0s...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1jgefM2ZP7Rn...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/4HKaTAMIXT88...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/7FagS2T3y5Xw...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/0B5CEdw4WBs9...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/19LYBNYOMwmD...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/281J4XFm5DLf...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/56ljxn1tdisT...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2BxO4VLPjzrA...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/6L7tmFIPKy98...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2gB58ki3GMqy...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/6C0au9ut1avz...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1NvBOki5VmSS...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/31KuT5lcyp6N...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/3u0cZhyEPYIe...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/6gVXeA52q3Fb...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2rNBqTve7unp...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/3Ey71ndsJ2GD...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>id</th>\n",
       "      <td>3u06WsJ1KtvEqmmmZqy76J</td>\n",
       "      <td>1lLK53LFXWvPzPYtlJIvt0</td>\n",
       "      <td>74tlMxJ8wF0sNp93GBEPdK</td>\n",
       "      <td>1jgefM2ZP7RnPVShhy1eUM</td>\n",
       "      <td>4HKaTAMIXT88muGU1JN9lI</td>\n",
       "      <td>7FagS2T3y5XwDpYvyHfvmc</td>\n",
       "      <td>0B5CEdw4WBs91yn444ZP27</td>\n",
       "      <td>19LYBNYOMwmDKXvhwq5Ggv</td>\n",
       "      <td>281J4XFm5DLfVt1nKNBsPn</td>\n",
       "      <td>56ljxn1tdisThe4xcVe4px</td>\n",
       "      <td>...</td>\n",
       "      <td>2BxO4VLPjzrApKTHZjpz9G</td>\n",
       "      <td>6L7tmFIPKy98Js8ytCB1pT</td>\n",
       "      <td>2gB58ki3GMqyNsdsPpDECH</td>\n",
       "      <td>6C0au9ut1avz4zhryYHudG</td>\n",
       "      <td>1NvBOki5VmSSVelycoMo96</td>\n",
       "      <td>31KuT5lcyp6NlDBjp3EVTp</td>\n",
       "      <td>3u0cZhyEPYIe9qDKPEeS4g</td>\n",
       "      <td>6gVXeA52q3FbLANm6gW0Ma</td>\n",
       "      <td>2rNBqTve7unpL01DuTyX3P</td>\n",
       "      <td>3Ey71ndsJ2GDMgT0hVJlPs</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>instrumentalness</th>\n",
       "      <td>0.00432</td>\n",
       "      <td>1.57e-06</td>\n",
       "      <td>0.000172</td>\n",
       "      <td>0.00116</td>\n",
       "      <td>1.16e-05</td>\n",
       "      <td>0.000973</td>\n",
       "      <td>0.0296</td>\n",
       "      <td>0.762</td>\n",
       "      <td>0.0905</td>\n",
       "      <td>0.00914</td>\n",
       "      <td>...</td>\n",
       "      <td>0.744</td>\n",
       "      <td>0.913</td>\n",
       "      <td>0.848</td>\n",
       "      <td>0.411</td>\n",
       "      <td>0.963</td>\n",
       "      <td>0.269</td>\n",
       "      <td>3.15e-05</td>\n",
       "      <td>0.000541</td>\n",
       "      <td>0.463</td>\n",
       "      <td>0.122</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>key</th>\n",
       "      <td>5</td>\n",
       "      <td>5</td>\n",
       "      <td>0</td>\n",
       "      <td>9</td>\n",
       "      <td>7</td>\n",
       "      <td>4</td>\n",
       "      <td>11</td>\n",
       "      <td>2</td>\n",
       "      <td>11</td>\n",
       "      <td>2</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>7</td>\n",
       "      <td>2</td>\n",
       "      <td>4</td>\n",
       "      <td>9</td>\n",
       "      <td>0</td>\n",
       "      <td>9</td>\n",
       "      <td>4</td>\n",
       "      <td>9</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>liveness</th>\n",
       "      <td>0.443</td>\n",
       "      <td>0.965</td>\n",
       "      <td>0.962</td>\n",
       "      <td>0.969</td>\n",
       "      <td>0.983</td>\n",
       "      <td>0.97</td>\n",
       "      <td>0.952</td>\n",
       "      <td>0.763</td>\n",
       "      <td>0.985</td>\n",
       "      <td>0.918</td>\n",
       "      <td>...</td>\n",
       "      <td>0.824</td>\n",
       "      <td>0.891</td>\n",
       "      <td>0.702</td>\n",
       "      <td>0.93</td>\n",
       "      <td>0.616</td>\n",
       "      <td>0.932</td>\n",
       "      <td>0.761</td>\n",
       "      <td>0.295</td>\n",
       "      <td>0.263</td>\n",
       "      <td>0.914</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>loudness</th>\n",
       "      <td>-4.303</td>\n",
       "      <td>-8.658</td>\n",
       "      <td>-5.589</td>\n",
       "      <td>-7.634</td>\n",
       "      <td>-5.342</td>\n",
       "      <td>-5.105</td>\n",
       "      <td>-6.494</td>\n",
       "      <td>-5.918</td>\n",
       "      <td>-3.822</td>\n",
       "      <td>-3.937</td>\n",
       "      <td>...</td>\n",
       "      <td>-6.162</td>\n",
       "      <td>-5.23</td>\n",
       "      <td>-5.511</td>\n",
       "      <td>-5.626</td>\n",
       "      <td>-4.728</td>\n",
       "      <td>-4.779</td>\n",
       "      <td>-6.423</td>\n",
       "      <td>-10.86</td>\n",
       "      <td>-4.932</td>\n",
       "      <td>-5.708</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>mode</th>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>name</th>\n",
       "      <td>You Win Again</td>\n",
       "      <td>Faraway Eyes - Live</td>\n",
       "      <td>Honky Tonk Women - Live</td>\n",
       "      <td>Not Fade Away - Live</td>\n",
       "      <td>I Go Wild - Live</td>\n",
       "      <td>Jumpin' Jack Flash - Live</td>\n",
       "      <td>Street Fighting Man - Live</td>\n",
       "      <td>Everybody Needs Somebody To Love (Finale) - Li...</td>\n",
       "      <td>Jumping Jack Flash - Live At The Beacon Theatr...</td>\n",
       "      <td>Just My Imagination - Live At The Beacon Theat...</td>\n",
       "      <td>...</td>\n",
       "      <td>I'm Alright - Live In Ireland / 1965</td>\n",
       "      <td>Off The Hook - Live In Ireland / 1965</td>\n",
       "      <td>Little Red Rooster - Live In Ireland / 1965</td>\n",
       "      <td>Route 66 - Live In Ireland / 1965</td>\n",
       "      <td>I'm Moving On - Live In Ireland / 1965</td>\n",
       "      <td>The Last Time - Live In Ireland / 1965</td>\n",
       "      <td>Shine a Light - Live</td>\n",
       "      <td>The Worst - 2009 Re-Mastered Digital Version</td>\n",
       "      <td>All Of Your Love</td>\n",
       "      <td>Midnight Rambler - Live</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>popularity</th>\n",
       "      <td>17</td>\n",
       "      <td>16</td>\n",
       "      <td>19</td>\n",
       "      <td>18</td>\n",
       "      <td>15</td>\n",
       "      <td>15</td>\n",
       "      <td>18</td>\n",
       "      <td>27</td>\n",
       "      <td>37</td>\n",
       "      <td>28</td>\n",
       "      <td>...</td>\n",
       "      <td>26</td>\n",
       "      <td>26</td>\n",
       "      <td>27</td>\n",
       "      <td>28</td>\n",
       "      <td>24</td>\n",
       "      <td>26</td>\n",
       "      <td>17</td>\n",
       "      <td>29</td>\n",
       "      <td>49</td>\n",
       "      <td>34</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>preview_url</th>\n",
       "      <td>https://p.scdn.co/mp3-preview/21de20d8795c3d60...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/5afdaabfa28e067f...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/671f51874a70b3f7...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/bba1991141c6e594...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/dc5e2c9ed7a5ae3d...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/17aed72343067677...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/9e13894d09e23cff...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/b051b48d71a46bd5...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/6f8c3efc615a554b...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/707e111a5eef5440...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/63e454d027fa6809...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/2b9e3ebd8aec9ab2...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/7fd37df80648f4d8...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/bb4461680e5ab01d...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/64c62c7e8f7eb6bf...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/4e412cd1b893a89b...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/feac308c8b6794c2...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/e2a9e826d6585979...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/1d796622e5630f76...</td>\n",
       "      <td>https://p.scdn.co/mp3-preview/20b0c963ec9199d1...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>speechiness</th>\n",
       "      <td>0.0313</td>\n",
       "      <td>0.0411</td>\n",
       "      <td>0.11</td>\n",
       "      <td>0.0936</td>\n",
       "      <td>0.0779</td>\n",
       "      <td>0.0806</td>\n",
       "      <td>0.0597</td>\n",
       "      <td>0.421</td>\n",
       "      <td>0.0667</td>\n",
       "      <td>0.0728</td>\n",
       "      <td>...</td>\n",
       "      <td>0.12</td>\n",
       "      <td>0.0562</td>\n",
       "      <td>0.0757</td>\n",
       "      <td>0.152</td>\n",
       "      <td>0.103</td>\n",
       "      <td>0.059</td>\n",
       "      <td>0.0687</td>\n",
       "      <td>0.033</td>\n",
       "      <td>0.0329</td>\n",
       "      <td>0.074</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>tempo</th>\n",
       "      <td>84.544</td>\n",
       "      <td>106.226</td>\n",
       "      <td>114.303</td>\n",
       "      <td>99.59</td>\n",
       "      <td>112.123</td>\n",
       "      <td>141.754</td>\n",
       "      <td>127.952</td>\n",
       "      <td>181.122</td>\n",
       "      <td>140.183</td>\n",
       "      <td>113.354</td>\n",
       "      <td>...</td>\n",
       "      <td>117.236</td>\n",
       "      <td>76.844</td>\n",
       "      <td>115.7</td>\n",
       "      <td>166.196</td>\n",
       "      <td>162.889</td>\n",
       "      <td>180.024</td>\n",
       "      <td>78.569</td>\n",
       "      <td>69.393</td>\n",
       "      <td>75.354</td>\n",
       "      <td>129.742</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>time_signature</th>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>...</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>track_href</th>\n",
       "      <td>https://api.spotify.com/v1/tracks/3u06WsJ1KtvE...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1lLK53LFXWvP...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/74tlMxJ8wF0s...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1jgefM2ZP7Rn...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/4HKaTAMIXT88...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/7FagS2T3y5Xw...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/0B5CEdw4WBs9...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/19LYBNYOMwmD...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/281J4XFm5DLf...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/56ljxn1tdisT...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2BxO4VLPjzrA...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/6L7tmFIPKy98...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2gB58ki3GMqy...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/6C0au9ut1avz...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/1NvBOki5VmSS...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/31KuT5lcyp6N...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/3u0cZhyEPYIe...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/6gVXeA52q3Fb...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/2rNBqTve7unp...</td>\n",
       "      <td>https://api.spotify.com/v1/tracks/3Ey71ndsJ2GD...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>track_number</th>\n",
       "      <td>11</td>\n",
       "      <td>4</td>\n",
       "      <td>2</td>\n",
       "      <td>1</td>\n",
       "      <td>6</td>\n",
       "      <td>11</td>\n",
       "      <td>14</td>\n",
       "      <td>13</td>\n",
       "      <td>1</td>\n",
       "      <td>8</td>\n",
       "      <td>...</td>\n",
       "      <td>6</td>\n",
       "      <td>7</td>\n",
       "      <td>9</td>\n",
       "      <td>10</td>\n",
       "      <td>11</td>\n",
       "      <td>12</td>\n",
       "      <td>5</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>11</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>type</th>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>...</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "      <td>audio_features</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>uri</th>\n",
       "      <td>spotify:track:3u06WsJ1KtvEqmmmZqy76J</td>\n",
       "      <td>spotify:track:1lLK53LFXWvPzPYtlJIvt0</td>\n",
       "      <td>spotify:track:74tlMxJ8wF0sNp93GBEPdK</td>\n",
       "      <td>spotify:track:1jgefM2ZP7RnPVShhy1eUM</td>\n",
       "      <td>spotify:track:4HKaTAMIXT88muGU1JN9lI</td>\n",
       "      <td>spotify:track:7FagS2T3y5XwDpYvyHfvmc</td>\n",
       "      <td>spotify:track:0B5CEdw4WBs91yn444ZP27</td>\n",
       "      <td>spotify:track:19LYBNYOMwmDKXvhwq5Ggv</td>\n",
       "      <td>spotify:track:281J4XFm5DLfVt1nKNBsPn</td>\n",
       "      <td>spotify:track:56ljxn1tdisThe4xcVe4px</td>\n",
       "      <td>...</td>\n",
       "      <td>spotify:track:2BxO4VLPjzrApKTHZjpz9G</td>\n",
       "      <td>spotify:track:6L7tmFIPKy98Js8ytCB1pT</td>\n",
       "      <td>spotify:track:2gB58ki3GMqyNsdsPpDECH</td>\n",
       "      <td>spotify:track:6C0au9ut1avz4zhryYHudG</td>\n",
       "      <td>spotify:track:1NvBOki5VmSSVelycoMo96</td>\n",
       "      <td>spotify:track:31KuT5lcyp6NlDBjp3EVTp</td>\n",
       "      <td>spotify:track:3u0cZhyEPYIe9qDKPEeS4g</td>\n",
       "      <td>spotify:track:6gVXeA52q3FbLANm6gW0Ma</td>\n",
       "      <td>spotify:track:2rNBqTve7unpL01DuTyX3P</td>\n",
       "      <td>spotify:track:3Ey71ndsJ2GDMgT0hVJlPs</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>valence</th>\n",
       "      <td>0.524</td>\n",
       "      <td>0.482</td>\n",
       "      <td>0.426</td>\n",
       "      <td>0.672</td>\n",
       "      <td>0.432</td>\n",
       "      <td>0.362</td>\n",
       "      <td>0.433</td>\n",
       "      <td>0.185</td>\n",
       "      <td>0.413</td>\n",
       "      <td>0.436</td>\n",
       "      <td>...</td>\n",
       "      <td>0.284</td>\n",
       "      <td>0.549</td>\n",
       "      <td>0.431</td>\n",
       "      <td>0.588</td>\n",
       "      <td>0.244</td>\n",
       "      <td>0.484</td>\n",
       "      <td>0.5</td>\n",
       "      <td>0.245</td>\n",
       "      <td>0.303</td>\n",
       "      <td>0.363</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>34 rows × 275 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                 0    \\\n",
       "_id                                           3u06WsJ1KtvEqmmmZqy76J   \n",
       "acousticness                                                   0.107   \n",
       "album              {'id': '6FjXxl9VLURGuubdXUn2J3', 'type': 'albu...   \n",
       "album_id                                      6FjXxl9VLURGuubdXUn2J3   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/3u06...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BG, BO, BR, CL, CO, CR, CY, C...   \n",
       "danceability                                                   0.216   \n",
       "disc_number                                                        2   \n",
       "duration_ms                                                   180280   \n",
       "energy                                                         0.669   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBUM71109053'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/3u...   \n",
       "href               https://api.spotify.com/v1/tracks/3u06WsJ1KtvE...   \n",
       "id                                            3u06WsJ1KtvEqmmmZqy76J   \n",
       "instrumentalness                                             0.00432   \n",
       "key                                                                5   \n",
       "liveness                                                       0.443   \n",
       "loudness                                                      -4.303   \n",
       "mode                                                               1   \n",
       "name                                                   You Win Again   \n",
       "popularity                                                        17   \n",
       "preview_url        https://p.scdn.co/mp3-preview/21de20d8795c3d60...   \n",
       "speechiness                                                   0.0313   \n",
       "tempo                                                         84.544   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/3u06WsJ1KtvE...   \n",
       "track_number                                                      11   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:3u06WsJ1KtvEqmmmZqy76J   \n",
       "valence                                                        0.524   \n",
       "\n",
       "                                                                 1    \\\n",
       "_id                                           1lLK53LFXWvPzPYtlJIvt0   \n",
       "acousticness                                                   0.536   \n",
       "album              {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...   \n",
       "album_id                                      3PbRKFafwE7Of8e4dTee72   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/1lLK...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets                                               [GB]   \n",
       "danceability                                                   0.395   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   305280   \n",
       "energy                                                         0.733   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBCBR1500394'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/1l...   \n",
       "href               https://api.spotify.com/v1/tracks/1lLK53LFXWvP...   \n",
       "id                                            1lLK53LFXWvPzPYtlJIvt0   \n",
       "instrumentalness                                            1.57e-06   \n",
       "key                                                                5   \n",
       "liveness                                                       0.965   \n",
       "loudness                                                      -8.658   \n",
       "mode                                                               1   \n",
       "name                                             Faraway Eyes - Live   \n",
       "popularity                                                        16   \n",
       "preview_url        https://p.scdn.co/mp3-preview/5afdaabfa28e067f...   \n",
       "speechiness                                                   0.0411   \n",
       "tempo                                                        106.226   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/1lLK53LFXWvP...   \n",
       "track_number                                                       4   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:1lLK53LFXWvPzPYtlJIvt0   \n",
       "valence                                                        0.482   \n",
       "\n",
       "                                                                 2    \\\n",
       "_id                                           74tlMxJ8wF0sNp93GBEPdK   \n",
       "acousticness                                                 0.00352   \n",
       "album              {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...   \n",
       "album_id                                      3PbRKFafwE7Of8e4dTee72   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/74tl...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets                                               [GB]   \n",
       "danceability                                                   0.367   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   293773   \n",
       "energy                                                         0.962   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBCBR1500392'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/74...   \n",
       "href               https://api.spotify.com/v1/tracks/74tlMxJ8wF0s...   \n",
       "id                                            74tlMxJ8wF0sNp93GBEPdK   \n",
       "instrumentalness                                            0.000172   \n",
       "key                                                                0   \n",
       "liveness                                                       0.962   \n",
       "loudness                                                      -5.589   \n",
       "mode                                                               1   \n",
       "name                                         Honky Tonk Women - Live   \n",
       "popularity                                                        19   \n",
       "preview_url        https://p.scdn.co/mp3-preview/671f51874a70b3f7...   \n",
       "speechiness                                                     0.11   \n",
       "tempo                                                        114.303   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/74tlMxJ8wF0s...   \n",
       "track_number                                                       2   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:74tlMxJ8wF0sNp93GBEPdK   \n",
       "valence                                                        0.426   \n",
       "\n",
       "                                                                 3    \\\n",
       "_id                                           1jgefM2ZP7RnPVShhy1eUM   \n",
       "acousticness                                                   0.148   \n",
       "album              {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...   \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            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets                                               [GB]   \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",
       "instrumentalness                                             0.00116   \n",
       "key                                                                9   \n",
       "liveness                                                       0.969   \n",
       "loudness                                                      -7.634   \n",
       "mode                                                               1   \n",
       "name                                            Not Fade Away - Live   \n",
       "popularity                                                        18   \n",
       "preview_url        https://p.scdn.co/mp3-preview/bba1991141c6e594...   \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.672   \n",
       "\n",
       "                                                                 4    \\\n",
       "_id                                           4HKaTAMIXT88muGU1JN9lI   \n",
       "acousticness                                                  0.0328   \n",
       "album              {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...   \n",
       "album_id                                      3PbRKFafwE7Of8e4dTee72   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/4HKa...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets                                               [GB]   \n",
       "danceability                                                   0.427   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   409360   \n",
       "energy                                                         0.944   \n",
       "explicit                                                        True   \n",
       "external_ids                                {'isrc': 'GBCBR1500396'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/4H...   \n",
       "href               https://api.spotify.com/v1/tracks/4HKaTAMIXT88...   \n",
       "id                                            4HKaTAMIXT88muGU1JN9lI   \n",
       "instrumentalness                                            1.16e-05   \n",
       "key                                                                7   \n",
       "liveness                                                       0.983   \n",
       "loudness                                                      -5.342   \n",
       "mode                                                               1   \n",
       "name                                                I Go Wild - Live   \n",
       "popularity                                                        15   \n",
       "preview_url        https://p.scdn.co/mp3-preview/dc5e2c9ed7a5ae3d...   \n",
       "speechiness                                                   0.0779   \n",
       "tempo                                                        112.123   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/4HKaTAMIXT88...   \n",
       "track_number                                                       6   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:4HKaTAMIXT88muGU1JN9lI   \n",
       "valence                                                        0.432   \n",
       "\n",
       "                                                                 5    \\\n",
       "_id                                           7FagS2T3y5XwDpYvyHfvmc   \n",
       "acousticness                                                0.000552   \n",
       "album              {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...   \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            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets                                               [GB]   \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",
       "instrumentalness                                            0.000973   \n",
       "key                                                                4   \n",
       "liveness                                                        0.97   \n",
       "loudness                                                      -5.105   \n",
       "mode                                                               1   \n",
       "name                                       Jumpin' Jack Flash - Live   \n",
       "popularity                                                        15   \n",
       "preview_url        https://p.scdn.co/mp3-preview/17aed72343067677...   \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.362   \n",
       "\n",
       "                                                                 6    \\\n",
       "_id                                           0B5CEdw4WBs91yn444ZP27   \n",
       "acousticness                                                   0.347   \n",
       "album              {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...   \n",
       "album_id                                      3PbRKFafwE7Of8e4dTee72   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/0B5C...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets                                               [GB]   \n",
       "danceability                                                    0.42   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   291240   \n",
       "energy                                                         0.951   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBCBR1500404'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/0B...   \n",
       "href               https://api.spotify.com/v1/tracks/0B5CEdw4WBs9...   \n",
       "id                                            0B5CEdw4WBs91yn444ZP27   \n",
       "instrumentalness                                              0.0296   \n",
       "key                                                               11   \n",
       "liveness                                                       0.952   \n",
       "loudness                                                      -6.494   \n",
       "mode                                                               1   \n",
       "name                                      Street Fighting Man - Live   \n",
       "popularity                                                        18   \n",
       "preview_url        https://p.scdn.co/mp3-preview/9e13894d09e23cff...   \n",
       "speechiness                                                   0.0597   \n",
       "tempo                                                        127.952   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/0B5CEdw4WBs9...   \n",
       "track_number                                                      14   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:0B5CEdw4WBs91yn444ZP27   \n",
       "valence                                                        0.433   \n",
       "\n",
       "                                                                 7    \\\n",
       "_id                                           19LYBNYOMwmDKXvhwq5Ggv   \n",
       "acousticness                                                   0.109   \n",
       "album              {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...   \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            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \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",
       "instrumentalness                                               0.762   \n",
       "key                                                                2   \n",
       "liveness                                                       0.763   \n",
       "loudness                                                      -5.918   \n",
       "mode                                                               1   \n",
       "name               Everybody Needs Somebody To Love (Finale) - Li...   \n",
       "popularity                                                        27   \n",
       "preview_url        https://p.scdn.co/mp3-preview/b051b48d71a46bd5...   \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.185   \n",
       "\n",
       "                                                                 8    \\\n",
       "_id                                           281J4XFm5DLfVt1nKNBsPn   \n",
       "acousticness                                                  0.0391   \n",
       "album              {'id': '3CHu7qW160uqPZHW3TMZ1l', 'type': 'albu...   \n",
       "album_id                                      3CHu7qW160uqPZHW3TMZ1l   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/281J...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "danceability                                                   0.303   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   262933   \n",
       "energy                                                         0.951   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBUM70802505'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/28...   \n",
       "href               https://api.spotify.com/v1/tracks/281J4XFm5DLf...   \n",
       "id                                            281J4XFm5DLfVt1nKNBsPn   \n",
       "instrumentalness                                              0.0905   \n",
       "key                                                               11   \n",
       "liveness                                                       0.985   \n",
       "loudness                                                      -3.822   \n",
       "mode                                                               0   \n",
       "name               Jumping Jack Flash - Live At The Beacon Theatr...   \n",
       "popularity                                                        37   \n",
       "preview_url        https://p.scdn.co/mp3-preview/6f8c3efc615a554b...   \n",
       "speechiness                                                   0.0667   \n",
       "tempo                                                        140.183   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/281J4XFm5DLf...   \n",
       "track_number                                                       1   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:281J4XFm5DLfVt1nKNBsPn   \n",
       "valence                                                        0.413   \n",
       "\n",
       "                                                                 9    \\\n",
       "_id                                           56ljxn1tdisThe4xcVe4px   \n",
       "acousticness                                                   0.024   \n",
       "album              {'id': '3CHu7qW160uqPZHW3TMZ1l', 'type': 'albu...   \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            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \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",
       "instrumentalness                                             0.00914   \n",
       "key                                                                2   \n",
       "liveness                                                       0.918   \n",
       "loudness                                                      -3.937   \n",
       "mode                                                               1   \n",
       "name               Just My Imagination - Live At The Beacon Theat...   \n",
       "popularity                                                        28   \n",
       "preview_url        https://p.scdn.co/mp3-preview/707e111a5eef5440...   \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.436   \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",
       "danceability                             ...                           \n",
       "disc_number                              ...                           \n",
       "duration_ms                              ...                           \n",
       "energy                                   ...                           \n",
       "explicit                                 ...                           \n",
       "external_ids                             ...                           \n",
       "external_urls                            ...                           \n",
       "href                                     ...                           \n",
       "id                                       ...                           \n",
       "instrumentalness                         ...                           \n",
       "key                                      ...                           \n",
       "liveness                                 ...                           \n",
       "loudness                                 ...                           \n",
       "mode                                     ...                           \n",
       "name                                     ...                           \n",
       "popularity                               ...                           \n",
       "preview_url                              ...                           \n",
       "speechiness                              ...                           \n",
       "tempo                                    ...                           \n",
       "time_signature                           ...                           \n",
       "track_href                               ...                           \n",
       "track_number                             ...                           \n",
       "type                                     ...                           \n",
       "uri                                      ...                           \n",
       "valence                                  ...                           \n",
       "\n",
       "                                                                 265  \\\n",
       "_id                                           2BxO4VLPjzrApKTHZjpz9G   \n",
       "acousticness                                                   0.181   \n",
       "album              {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...   \n",
       "album_id                                      5eTqRwTGKPBUiUuN1rFaXD   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/2BxO...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "danceability                                                    0.46   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   135040   \n",
       "energy                                                         0.976   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'USA171210005'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/2B...   \n",
       "href               https://api.spotify.com/v1/tracks/2BxO4VLPjzrA...   \n",
       "id                                            2BxO4VLPjzrApKTHZjpz9G   \n",
       "instrumentalness                                               0.744   \n",
       "key                                                                1   \n",
       "liveness                                                       0.824   \n",
       "loudness                                                      -6.162   \n",
       "mode                                                               0   \n",
       "name                            I'm Alright - Live In Ireland / 1965   \n",
       "popularity                                                        26   \n",
       "preview_url        https://p.scdn.co/mp3-preview/63e454d027fa6809...   \n",
       "speechiness                                                     0.12   \n",
       "tempo                                                        117.236   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/2BxO4VLPjzrA...   \n",
       "track_number                                                       6   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:2BxO4VLPjzrApKTHZjpz9G   \n",
       "valence                                                        0.284   \n",
       "\n",
       "                                                                 266  \\\n",
       "_id                                           6L7tmFIPKy98Js8ytCB1pT   \n",
       "acousticness                                                  0.0207   \n",
       "album              {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...   \n",
       "album_id                                      5eTqRwTGKPBUiUuN1rFaXD   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/6L7t...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "danceability                                                    0.44   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   147040   \n",
       "energy                                                         0.932   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'USA171210006'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/6L...   \n",
       "href               https://api.spotify.com/v1/tracks/6L7tmFIPKy98...   \n",
       "id                                            6L7tmFIPKy98Js8ytCB1pT   \n",
       "instrumentalness                                               0.913   \n",
       "key                                                                9   \n",
       "liveness                                                       0.891   \n",
       "loudness                                                       -5.23   \n",
       "mode                                                               1   \n",
       "name                           Off The Hook - Live In Ireland / 1965   \n",
       "popularity                                                        26   \n",
       "preview_url        https://p.scdn.co/mp3-preview/2b9e3ebd8aec9ab2...   \n",
       "speechiness                                                   0.0562   \n",
       "tempo                                                         76.844   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/6L7tmFIPKy98...   \n",
       "track_number                                                       7   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:6L7tmFIPKy98Js8ytCB1pT   \n",
       "valence                                                        0.549   \n",
       "\n",
       "                                                                 267  \\\n",
       "_id                                           2gB58ki3GMqyNsdsPpDECH   \n",
       "acousticness                                                 0.00742   \n",
       "album              {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...   \n",
       "album_id                                      5eTqRwTGKPBUiUuN1rFaXD   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/2gB5...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "danceability                                                   0.438   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   155600   \n",
       "energy                                                         0.912   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'USA171210008'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/2g...   \n",
       "href               https://api.spotify.com/v1/tracks/2gB58ki3GMqy...   \n",
       "id                                            2gB58ki3GMqyNsdsPpDECH   \n",
       "instrumentalness                                               0.848   \n",
       "key                                                                7   \n",
       "liveness                                                       0.702   \n",
       "loudness                                                      -5.511   \n",
       "mode                                                               1   \n",
       "name                     Little Red Rooster - Live In Ireland / 1965   \n",
       "popularity                                                        27   \n",
       "preview_url        https://p.scdn.co/mp3-preview/7fd37df80648f4d8...   \n",
       "speechiness                                                   0.0757   \n",
       "tempo                                                          115.7   \n",
       "time_signature                                                     3   \n",
       "track_href         https://api.spotify.com/v1/tracks/2gB58ki3GMqy...   \n",
       "track_number                                                       9   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:2gB58ki3GMqyNsdsPpDECH   \n",
       "valence                                                        0.431   \n",
       "\n",
       "                                                                 268  \\\n",
       "_id                                           6C0au9ut1avz4zhryYHudG   \n",
       "acousticness                                                  0.0184   \n",
       "album              {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...   \n",
       "album_id                                      5eTqRwTGKPBUiUuN1rFaXD   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/6C0a...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "danceability                                                   0.245   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   164320   \n",
       "energy                                                         0.964   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'USA171210009'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/6C...   \n",
       "href               https://api.spotify.com/v1/tracks/6C0au9ut1avz...   \n",
       "id                                            6C0au9ut1avz4zhryYHudG   \n",
       "instrumentalness                                               0.411   \n",
       "key                                                                2   \n",
       "liveness                                                        0.93   \n",
       "loudness                                                      -5.626   \n",
       "mode                                                               1   \n",
       "name                               Route 66 - Live In Ireland / 1965   \n",
       "popularity                                                        28   \n",
       "preview_url        https://p.scdn.co/mp3-preview/bb4461680e5ab01d...   \n",
       "speechiness                                                    0.152   \n",
       "tempo                                                        166.196   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/6C0au9ut1avz...   \n",
       "track_number                                                      10   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:6C0au9ut1avz4zhryYHudG   \n",
       "valence                                                        0.588   \n",
       "\n",
       "                                                                 269  \\\n",
       "_id                                           1NvBOki5VmSSVelycoMo96   \n",
       "acousticness                                                   0.002   \n",
       "album              {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...   \n",
       "album_id                                      5eTqRwTGKPBUiUuN1rFaXD   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/1NvB...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "danceability                                                   0.124   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   148560   \n",
       "energy                                                          0.92   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'USA171210010'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/1N...   \n",
       "href               https://api.spotify.com/v1/tracks/1NvBOki5VmSS...   \n",
       "id                                            1NvBOki5VmSSVelycoMo96   \n",
       "instrumentalness                                               0.963   \n",
       "key                                                                4   \n",
       "liveness                                                       0.616   \n",
       "loudness                                                      -4.728   \n",
       "mode                                                               1   \n",
       "name                          I'm Moving On - Live In Ireland / 1965   \n",
       "popularity                                                        24   \n",
       "preview_url        https://p.scdn.co/mp3-preview/64c62c7e8f7eb6bf...   \n",
       "speechiness                                                    0.103   \n",
       "tempo                                                        162.889   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/1NvBOki5VmSS...   \n",
       "track_number                                                      11   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:1NvBOki5VmSSVelycoMo96   \n",
       "valence                                                        0.244   \n",
       "\n",
       "                                                                 270  \\\n",
       "_id                                           31KuT5lcyp6NlDBjp3EVTp   \n",
       "acousticness                                                0.000283   \n",
       "album              {'id': '5eTqRwTGKPBUiUuN1rFaXD', 'type': 'albu...   \n",
       "album_id                                      5eTqRwTGKPBUiUuN1rFaXD   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/31Ku...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "danceability                                                   0.213   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   189600   \n",
       "energy                                                         0.929   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'USA171210011'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/31...   \n",
       "href               https://api.spotify.com/v1/tracks/31KuT5lcyp6N...   \n",
       "id                                            31KuT5lcyp6NlDBjp3EVTp   \n",
       "instrumentalness                                               0.269   \n",
       "key                                                                9   \n",
       "liveness                                                       0.932   \n",
       "loudness                                                      -4.779   \n",
       "mode                                                               1   \n",
       "name                          The Last Time - Live In Ireland / 1965   \n",
       "popularity                                                        26   \n",
       "preview_url        https://p.scdn.co/mp3-preview/4e412cd1b893a89b...   \n",
       "speechiness                                                    0.059   \n",
       "tempo                                                        180.024   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/31KuT5lcyp6N...   \n",
       "track_number                                                      12   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:31KuT5lcyp6NlDBjp3EVTp   \n",
       "valence                                                        0.484   \n",
       "\n",
       "                                                                 271  \\\n",
       "_id                                           3u0cZhyEPYIe9qDKPEeS4g   \n",
       "acousticness                                                   0.395   \n",
       "album              {'id': '3PbRKFafwE7Of8e4dTee72', 'type': 'albu...   \n",
       "album_id                                      3PbRKFafwE7Of8e4dTee72   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/3u0c...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets                                               [GB]   \n",
       "danceability                                                   0.262   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   291253   \n",
       "energy                                                         0.835   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBCBR1500395'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/3u...   \n",
       "href               https://api.spotify.com/v1/tracks/3u0cZhyEPYIe...   \n",
       "id                                            3u0cZhyEPYIe9qDKPEeS4g   \n",
       "instrumentalness                                            3.15e-05   \n",
       "key                                                                0   \n",
       "liveness                                                       0.761   \n",
       "loudness                                                      -6.423   \n",
       "mode                                                               1   \n",
       "name                                            Shine a Light - Live   \n",
       "popularity                                                        17   \n",
       "preview_url        https://p.scdn.co/mp3-preview/feac308c8b6794c2...   \n",
       "speechiness                                                   0.0687   \n",
       "tempo                                                         78.569   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/3u0cZhyEPYIe...   \n",
       "track_number                                                       5   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:3u0cZhyEPYIe9qDKPEeS4g   \n",
       "valence                                                          0.5   \n",
       "\n",
       "                                                                 272  \\\n",
       "_id                                           6gVXeA52q3FbLANm6gW0Ma   \n",
       "acousticness                                                   0.147   \n",
       "album              {'id': '62ZT16LY1phGM0O8x5qW1z', 'type': 'albu...   \n",
       "album_id                                      62ZT16LY1phGM0O8x5qW1z   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/6gVX...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "danceability                                                   0.486   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   144867   \n",
       "energy                                                         0.451   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBUM70909519'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/6g...   \n",
       "href               https://api.spotify.com/v1/tracks/6gVXeA52q3Fb...   \n",
       "id                                            6gVXeA52q3FbLANm6gW0Ma   \n",
       "instrumentalness                                            0.000541   \n",
       "key                                                                9   \n",
       "liveness                                                       0.295   \n",
       "loudness                                                      -10.86   \n",
       "mode                                                               1   \n",
       "name                    The Worst - 2009 Re-Mastered Digital Version   \n",
       "popularity                                                        29   \n",
       "preview_url        https://p.scdn.co/mp3-preview/e2a9e826d6585979...   \n",
       "speechiness                                                    0.033   \n",
       "tempo                                                         69.393   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/6gVXeA52q3Fb...   \n",
       "track_number                                                       4   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:6gVXeA52q3FbLANm6gW0Ma   \n",
       "valence                                                        0.245   \n",
       "\n",
       "                                                                 273  \\\n",
       "_id                                           2rNBqTve7unpL01DuTyX3P   \n",
       "acousticness                                                   0.474   \n",
       "album              {'id': '4g9Jfls8z2nbQxj5PiXkiy', 'type': 'albu...   \n",
       "album_id                                      4g9Jfls8z2nbQxj5PiXkiy   \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/2rNB...   \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe   \n",
       "artist_name                                       The Rolling Stones   \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...   \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, BR, CH, CL, CO, C...   \n",
       "danceability                                                   0.416   \n",
       "disc_number                                                        1   \n",
       "duration_ms                                                   286680   \n",
       "energy                                                         0.672   \n",
       "explicit                                                       False   \n",
       "external_ids                                {'isrc': 'GBUM71604631'}   \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/2r...   \n",
       "href               https://api.spotify.com/v1/tracks/2rNBqTve7unp...   \n",
       "id                                            2rNBqTve7unpL01DuTyX3P   \n",
       "instrumentalness                                               0.463   \n",
       "key                                                                4   \n",
       "liveness                                                       0.263   \n",
       "loudness                                                      -4.932   \n",
       "mode                                                               0   \n",
       "name                                                All Of Your Love   \n",
       "popularity                                                        49   \n",
       "preview_url        https://p.scdn.co/mp3-preview/1d796622e5630f76...   \n",
       "speechiness                                                   0.0329   \n",
       "tempo                                                         75.354   \n",
       "time_signature                                                     4   \n",
       "track_href         https://api.spotify.com/v1/tracks/2rNBqTve7unp...   \n",
       "track_number                                                       4   \n",
       "type                                                  audio_features   \n",
       "uri                             spotify:track:2rNBqTve7unpL01DuTyX3P   \n",
       "valence                                                        0.303   \n",
       "\n",
       "                                                                 274  \n",
       "_id                                           3Ey71ndsJ2GDMgT0hVJlPs  \n",
       "acousticness                                                   0.173  \n",
       "album              {'id': '4fhWcu56Bbh5wALuTouFVW', 'type': 'albu...  \n",
       "album_id                                      4fhWcu56Bbh5wALuTouFVW  \n",
       "analysis_url       https://api.spotify.com/v1/audio-analysis/3Ey7...  \n",
       "artist_id                                     22bE4uQ6baNwSHPVcDxLCe  \n",
       "artist_name                                       The Rolling Stones  \n",
       "artists            [{'id': '22bE4uQ6baNwSHPVcDxLCe', 'type': 'art...  \n",
       "available_markets  [AD, AR, AT, AU, BE, BG, BO, CH, CL, CO, CR, C...  \n",
       "danceability                                                   0.282  \n",
       "disc_number                                                        1  \n",
       "duration_ms                                                   929458  \n",
       "energy                                                         0.898  \n",
       "explicit                                                       False  \n",
       "external_ids                                {'isrc': 'GBCBR1600265'}  \n",
       "external_urls      {'spotify': 'https://open.spotify.com/track/3E...  \n",
       "href               https://api.spotify.com/v1/tracks/3Ey71ndsJ2GD...  \n",
       "id                                            3Ey71ndsJ2GDMgT0hVJlPs  \n",
       "instrumentalness                                               0.122  \n",
       "key                                                                9  \n",
       "liveness                                                       0.914  \n",
       "loudness                                                      -5.708  \n",
       "mode                                                               1  \n",
       "name                                         Midnight Rambler - Live  \n",
       "popularity                                                        34  \n",
       "preview_url        https://p.scdn.co/mp3-preview/20b0c963ec9199d1...  \n",
       "speechiness                                                    0.074  \n",
       "tempo                                                        129.742  \n",
       "time_signature                                                     4  \n",
       "track_href         https://api.spotify.com/v1/tracks/3Ey71ndsJ2GD...  \n",
       "track_number                                                      11  \n",
       "type                                                  audio_features  \n",
       "uri                             spotify:track:3Ey71ndsJ2GDMgT0hVJlPs  \n",
       "valence                                                        0.363  \n",
       "\n",
       "[34 rows x 275 columns]"
      ]
     },
     "execution_count": 33,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "stones_tracks = pd.DataFrame(list(tracks.find({'artist_id': stones_id})))\n",
    "stones_tracks.T"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "How happy are the Beatles and Stones tracks?"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 38,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7f6dd7dddda0>"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXUAAAEACAYAAABMEua6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAEzdJREFUeJzt3X+MbHdZx/H3Uy+0aCl7+dUt3tKVUFrEHwsmpf6IDD8C\nVIVC4kVIwK5WRYNKJDG0/NMQEmP/IBCDiImFexFJQZC2CNpCLgckiICl0EApVbltL9jlR7k01Uhb\n7uMfM7uzbOfunN2ZOd8zZ96vZJI5c2f2+5wnZ5979jNzdiMzkSR1wymlC5AkTY9DXZI6xKEuSR3i\nUJekDnGoS1KHONQlqUP21XlSRBwFvgecAO7PzAsiYj/wHuAc4Cjwksz83ozqlCTVUPdM/QTQy8yn\nZuYFg8cuAz6amecBR4DLZ1GgJKm+ukM9Rjz3YuDw4P5h4EXTKkqStDd1h3oC10fEZyPidwaPnZmZ\n6wCZeRfwmFkUKEmqr1amDvxCZt4VEY8BboiIW+kPeklSi9Qa6oMzcTLzWxFxDXABsB4RZ2bmekQs\nA98c9dqIcPhL0h5kZuz2NWPjl4j40Yg4fXD/x4DnAjcD1wFrg6ddAly7Q2HeMrniiiuK19CWm72w\nF/Zi59te1TlTPxP4wOCMex/wd5l5Q0R8DnhvRPw2cAdwcM9VLIijR4+WLqE17MWQvRiyF5MbO9Qz\n82vA6ojH7waeM4uiJEl74xWlDVpbWytdQmvYiyF7MWQvJheTZDe1FojIWa8hSV0TEeQs3ijV9FRV\nVbqE1rAXQ/ZiyF5MzqEuSR1i/CJJLWT8IklyqDfJvHDIXgzZiyF7MTmHuiR1iJm6JLWQmbokyaHe\nJPPCIXsxZC+G7MXkHOqS1CFm6pLUQmbq0pxaXl4hIorclpdXSu++psyh3iDzwiF7MbS+fjv9vw7Z\n/K2/dnt4XEzOoS5JHWKmLhUWEZT7O+4x0Z9O0+yYqUuSHOpNMi8cshcaxeNicg51SeoQM3WpMDN1\njWKmLklyqDfJvHDIXmiUJo+Lrl70tW9mX1mSWmx40VeJtXedqtRmpi4VZqZeRtv7bqYuSXKoN8kc\necheaBSPi8k51CWpQ8zUpcLanu12Vdv7bqYuSXKoN8m8cMheaBSPi8k51CWpQ8zUpcLanu12Vdv7\nbqYuSXKoN8m8cMheaBSPi8k51CWpQ2pn6hFxCvA54FhmvjAiVoCrgf3AjcArMvOBEa8zU5d20PZs\nt6va3vcmMvVXA1/esn0l8MbMPA84Dly628UlSdNVa6hHxAHgV4C/2fLws4D3D+4fBl483dK6x7xw\nyF5oFI+LydU9U38T8KcMflaJiEcB383ME4N/PwY8bvrlSZJ2Y+wfyYiIXwXWM/OmiOhtPDy4bXXS\ngGhtbY2VlRUAlpaWWF1dpdfrf6mN/5kXYbvX67WqHrfbsz20sd1raLtfQ+n939huup7m+72xzYPq\nqaqKQ4cOAWzOy70Y+0ZpRPwZ8HLgAeBhwMOBa4DnAsuZeSIiLgSuyMyLRrzeN0qlHbT9Dbuuanvf\nZ/ZGaWa+LjMfn5lPAF4KHMnMlwMfAw4OnnYJcO1uF180Dz4rW1z2QqN4XExuks+pXwa8JiK+CjwS\nuGo6JUmS9srf/SIV1vYYoKva3nd/94skyaHeJPPCIXuhUTwuJudQl6QOMVOXCmt7tttVbe+7mbok\nyaHeJPPCIXuhUTwuJudQl6QOMVOXCmt7tttVbe+7mbokyaHeJPPCIXuhUTwuJudQl6QOMVOXCmt7\ntttVbe+7mbokyaHeJPPCIXuhUTwuJudQl6QOMVOXCmt7tttVbe+7mbokyaHeJPPCIXuhUTwuJrev\ndAGSFtfy8grr67eXLqNTzNSlwtqe7c509cL73ua+m6lLkhzqTTIvHLIXGq0qXcDcc6hLUoeYqUuF\nlc6VzdTLrG2mLkkay6HeIHPkIXuh0arSBcw9h7okdYiZulRY6VzZTL3M2mbqkqSxHOoNMkceshca\nrSpdwNxzqEtSh5ipS4WVzpXN1MusbaYuSRrLod4gc+Qhe6HRqtIFzD2HuiR1yNhMPSJOBT4BPJT+\nH9V4X2a+PiJWgKuB/cCNwCsy84ERrzdTl3ZQOlc2Uy+zdrFMPTO/DzwzM58KrAIXRcTTgSuBN2bm\necBx4NLdLi5Jmq5a8Utm/u/g7qn0z9YTeCbw/sHjh4EXT726jjFHHrIXGq0qXcDcqzXUI+KUiPg8\ncBfwEeA/geOZeWLwlGPA42ZToiSprl19Tj0izgA+AFwBvD0znzR4/ADwocz82RGvMVOXdlA6VzZT\nL7P2rDL1fbt5cmbeExEfBy4EliLilMHZ+gHgGyd73draGisrKwAsLS2xurpKr9cDhj+Gu+32Im8P\nbWz3Gtp+yGCwllTR3P62ZXuwteV4qKqKQ4cOAWzOy72o8+mXRwP3Z+b3IuJhwPXAnwOXAP+Qme+J\niL8CvpCZbxvxes/UB6qq2vxmXnT2Ymhxz1ZHrV8xHIBNr92ksmfqZwGHI+IU+hn8ezLzwxFxC3B1\nRLwB+Dxw1W4XlyRNl7/7RSrMM/VF3Hd/94skqQaHeoP8bPaQvdBoVekC5p5DXZI6xExdKsxMfRH3\n3UxdklSDQ71B5shD9kKjVaULmHsOdUnqEDN1qTAz9UXcdzN1SVINDvUGmSMP2QuNVpUuYO451CWp\nQ8zUpcLM1Bdx383UJUk1ONQbZI48ZC80WlW6gLnnUJekDjFTlwozU1/EfTdTlyTV4FBvkDnykL3Q\naFXpAuaeQ12SOsRMXSrMTH0R991MXZJUg0O9QebIQ/ZCo1WlC5h7DnVJ6hAzdakwM/VF3HczdUlS\nDQ71BpkjD9kLjVaVLmDuOdQlqUPM1KXCzNQXcd/N1CVJNTjUG2SOPGQvNFpVuoC551CXpA4xU5cK\nM1NfxH03U5ck1eBQb5A58pC90GhV6QLmnkNdkjrETF0qzEx9Efe9YKYeEQci4khEfDkibo6IPx48\nvj8iboiIWyPi+oh4xG4XlyRNV5345QHgNZn5k8DPA6+KiPOBy4CPZuZ5wBHg8tmV2Q3myEP2QqNV\npQuYe2OHembelZk3De7fC9wCHAAuBg4PnnYYeNGsipQk1bOrTD0iVuj/V/pTwJ2ZuX/Lv30nMx81\n4jVm6tIOzNQXcd9b8Dn1iDgdeB/w6sEZu5NaklpmX50nRcQ++gP9bzPz2sHD6xFxZmauR8Qy8M2T\nvX5tbY2VlRUAlpaWWF1dpdfrAcNsdRG2t+bIbain5PbGY22pp/T20MZ2r6HtjceaWm/c+m8GVgvW\n09T2YGvbfDh06BDA5rzci1rxS0S8E/h2Zr5my2NXAndn5pUR8Vpgf2ZeNuK1xi8DVVVtfjMvOnsx\nZPyydf2KHx74Ta7dpNnFL2OHekT8IvAJ4Gb6HUjgdcBngPcCZwN3AAcz8/iI1zvUpR041Bdx3wsO\n9Uk51KWdOdQXcd9b8EapJudns4e292J5eYWIKHJbXl4p0gONUpUuYO7VeqNUmrX19dspdda0vr7r\nkyGptYxf1AqlI4iSx2jpfTd+KbO28YskaSyHeoPM1IfshUarShcw9xzqktQhZupqhdK5spl6KYu6\n72bqkqQaHOoNMkceshcarSpdwNzzc+ratLy8Mvi8uKR5ZaauTYub7Zqpl7Oo+26mLkmqwaHeIHPk\nrarSBaiVqtIFzD0zdYlTBxGINP/M1LVpcbNdc+VyFnXfzdQlSTU41Btkpr5VVboAtVJVuoC551CX\npA4xU9cmM/VS3PdFXNtMXZI0lkO9QWbqW1WlC1ArVaULmHsOdUnqEDN1bTJTL8V9X8S1zdQlSWM5\n1Btkpr5VVboAtVJVuoC551CXpA4xU9cmM/VS3PdFXNtMXZI0lkO9QWbqW1WlC1ArVaULmHsOdUnq\nEDN1bTJTL8V9X8S1zdQlSWM51Btkpr5VVboAtVJVuoC551CXpA4xU9cmM/VS3PdFXNtMXZI01tih\nHhFXRcR6RHxxy2P7I+KGiLg1Iq6PiEfMtszmLC+vEBFFbsvLK6V3v0FV6QLUSlXpAuZenTP1dwDP\n2/bYZcBHM/M84Ahw+bQLK2V9/Xb6P5LN4vaxHf+9v7Yk7V2tTD0izgE+mJk/M9j+CvCMzFyPiGWg\nyszzT/LaucrUS+fKJXtVet8Xc+3S67vvpdZuW6b+2MxcB8jMu4DH7PHrSJKmaF8Ti6ytrbGysgLA\n0tISq6ur9Ho9YPjZ7bZs91VAb8t9prS9cf/kzy+//7vZn0m2Nx7but3k+qPqWcT1Nx5rar1x678Z\nWC1YT1Pbg60t339VVXHo0CGAzXm5F3uNX24Belvil49l5pNP8lrjl00VP3wwP2j1BYpfKn64F4v6\nY3jp9du27xU7f4/Mcu0mlY9fYnDbcB2wNrh/CXDtbhdeTL3SBbRIr3QBaqVe6QLm3tgz9Yh4N/1O\nPwpYB64ArgH+HjgbuAM4mJnHT/J6z9Trr75AZ+oPWn1B1y69vvteau1Znal7Rek2xi/GL4u1ftv2\nvcL4ZfAMryiVJHmmvk3pCGJxztQftPqCrl16ffe91NqeqUuSxnKoN6oqXUCLVKULUCtVpQuYe41c\nfKS6Th1EIJK0N2bq2yxurlx6/UVdu/T67nuptc3UJUljOdQbVZUuoEWq0gWolarSBcw9h7okdYiZ\n+jZm6ou47/a9nEXddzN1SVINDvVGVaULaJGqdAFqpap0AXPPoS5JHWKmvo2Z+iLuu30vZ1H33Uxd\nklSDQ71RVekCWqQqXYBaqSpdwNxzqEtSh5ipb2Omvoj7bt/LWdR9N1OXJNXgUG9UVbqAFqlKF6BW\nqkoXMPcc6pLUIWbq25ipL+K+2/dyFnXfzdQlSTU41BtVlS6gRarSBaiVqtIFzD2HuiR1SOsy9Xvv\nvZd77713hhXt7KyzzmIxM77S6y/q2qXXd99LrT2rTH3fnmuakXPP/WmOH/8fIpr/IeL+++9pfE1J\nmqbWDfW77/4W9913F3B642ufdtqreOCBt85whQrozfDrz5MKe6EHq/C4mIyZuiR1iEO9Ub3SBbRI\nr3QBaqVe6QLmnkNdkjrEod6oqnQBLVKVLkCtVJUuYO451CWpQxzqjeqVLqBFeqULUCv1Shcw9xzq\nktQhEw31iHh+RHwlIr4aEa+dVlHdVZUuoEWq0gWolarSBcy9PQ/16F/y+RbgecBTgJdFxPnTKqyb\nbipdQIvYC43icTGpSc7ULwBuy8zbM/N+4Grg4umU1VXHSxfQIvZCo3hcTGqSof7jwJ1bto8NHpMk\nFTLJ734Z9dvDJv6VZ/v2PYTTTjtIiV9Lc999N894haMz/vrz5GjpAtRKR0sXMPcmmZzHgMdv2T4A\nfGPUE/t/Im43/nmvNU3Jrn/b5S4cLrh2HU2uv70XJfd9kfreprVHrT/ue2SWaze48q7nYs2vu9ff\npx4RPwLcCjwb+G/gM8DLMvOW6ZUnSdqNPZ+pZ+YPIuIPgRvoZ/NXOdAlqayZ/+UjSVJzpnZF6bgL\nkSLioRFxdUTcFhH/GhGPH/V15l2NPvxJRHwpIm6KiI9ExNkl6mxC3YvTIuLXI+JERDytyfqaVKcX\nEfGSwbFxc0S8q+kam1Lje+TsiDgSETcOvk8uKlFnEyLiqohYj4gv7vCcvxjMzZsiYnXsF83MiW/0\n/3P4D+Ac4CH0ryA4f9tz/gB46+D+bwBXT2PtNt1q9uEZwGmD+7/fxT7U7cXgeacDHwc+BTytdN0F\nj4snAv8OnDHYfnTpugv24q+BVw7uPxn4Wum6Z9iPXwJWgS+e5N8vAj40uP904NPjvua0ztTrXIh0\nMcO3td9H/w3Wrhnbh8z8eGb+32Dz03T3s/11L057A3Al8P0mi2tYnV78LvCXmXkPQGZ+u+Eam1Kn\nFyeAMwb3l4CvN1hfozLzk8B3d3jKxcA7B8/9N+AREXHmTl9zWkO9zoVIm8/JzB8AxyPikVNavy12\ne0HWpcA/zbSicsb2YvCj5IHM/HCThRVQ57h4EnBeRHwyIj4VEc9rrLpm1enF64FXRMSdwD8Cf9RQ\nbW20vV9fZ8yJ4LSu8KlzIdL258SI58y72hdkRcTLgZ+jH8d00Y69iP6HdN8EXDLmNV1Q57jYRz+C\n+WX613/8S0Q8ZePMvUPq9OJlwDsy800RcSHwLvq/X2oR7foiz2mdqde5EOlO4GzY/Iz7GZm5048d\n86jWBVkR8RzgcuAFgx9Bu2hcLx5O/xu1ioivARcC13b0zdI6x8Ux4NrMPJGZR+lfA3JuM+U1qk4v\nLgXeC5CZnwZOi4hHN1Ne6xxjMDcHTnqR54ZpDfXPAk+MiHMi4qHAS4Hrtj3ngwzPyg4CR6a0dpuM\n7UNEPBV4G/DCzPxOgRqbsmMvMvOezHxsZj4hM3+C/vsLL8jMGwvVO0t1vj+uAZ4FMBhg5wL/1WiV\nzajTi9uB5wBExJOBUzv8HgP0z8ZP9lPqdcBvAgx+ajmemes7frUpvov7fPpnF7cBlw0eez3wa4P7\np9L/3/c2+t/AK6XfeZ7Ru9nj+vAR+lfg3gh8HrimdM2lerHtuUfo6Kdf6vYCeCPwJeALwMHSNZfq\nBf1PvHyS/idjbgSeXbrmGfbi3fTPvL8P3AH8FvBK4Pe2POct9D8x9IU63yNefCRJHeKfs5OkDnGo\nS1KHONQlqUMc6pLUIQ51SeoQh7okdYhDXZI6xKEuSR3y/3j8kLVGIW87AAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f6dd7e18be0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "beatles_tracks['valence'].hist()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 35,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x7f6de5a1f1d0>"
      ]
     },
     "execution_count": 35,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXUAAAEACAYAAABMEua6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAGLJJREFUeJzt3X+QJHdZx/H35xI8EUg2JHpbGsgAIkZLaoMoKbF0gCgJ\nKEFLNCjCWikEfyKgEvjDE0XLWJVA+QO1JJUNagyKkgR/kUjyBaMGlctB+GEE4QJRbxVM1Gh5FbzH\nP6Z3p+9ud6d3Z6a/3+n+vKqmbrqnZ5+nn5t5tveZ6RlFBGZm1g37cidgZmaz46ZuZtYhbupmZh3i\npm5m1iFu6mZmHeKmbmbWIY2buqR9ku6SdHO1vCbpE9W6Q5KePL80zcysidN3se0rgA8DZ1TLAbw6\nIt4x86zMzGxPGh2pSzoXeA7wlr3c38zM2tG0Kb8R+AlGR+d1b5B0WNJVkh4229TMzGy3JjZ1Sc8F\n1iPiMKDaTVdExPnA1wBnA6+ZT4pmZtZUk5n604HnSXoO8HDgUZLeGhEvBoiIhyRdC7x6qztL8ofL\nmJntQURo8lYnmnikHhGvi4jHRsTjgcuA2yLixZKWASQJeD7woR1+hi8RHDx4MHsOpVxcC9fCtdj5\nsle7effLyX5H0jmMRjKHgZdP8bN64ciRI7lTKIZrMeZajLkW09tVU4+I9wDvqa4/ay4ZmZnZnvkt\niS1aXV3NnUIxXIsx12LMtZieppndNAogxbxjmJl1jSRiHi+U2uyklHKnUAzXYsy1GHMtpuembmbW\nIR6/mJkVyOMXMzNzU2+T54Vj9VosLw+QlOVy2mmPyBZbEsvLAz8ualyL6U1z8pHZTKyv38upnxXX\njuPHlS02wPr6rv+6NtuRZ+qW3eiTJnI9RvI2ddBUp4Rbd3mmbmZmbupt8rxwzLUYcy3GXIvpuamb\nmXWIZ+qWnWfqfn7YqTxTNzMzN/U2eV445lqMuRZjrsX03NTNzDqk8Uxd0j7g74D7IuJ5kgbADcBZ\nwCHgeyPic1vczzN125Fn6n5+2KnamKm/AvhIbflK4KqIeBLwAHD5boObmdlsNWrqks4FngO8pbb6\nmcAfVNevA75ttql1j+eFY67FmGsx5lpMr+mR+huBn6D6O1XS2cD9EXG8uv0+4Itnn56Zme3GxA/0\nkvRcYD0iDksabqyuLnXbDgZXV1cZDAYALC0tsbKywnA4+lEbv5n7sDwcDovKp6TlsY3lYUvLG+va\nirdV/Fomhfx/5FreWFdKPm0up5RYW1sD2OyXezHxhVJJPw+8CPgc8HDgUcCNwDcDyxFxXNKFwMGI\nuGSL+/uFUtuRXyj188NONbcXSiPidRHx2Ih4PHAZcFtEvAi4HXhBtdlLgJt2G7xvTj0q7S/XYsy1\nGHMtpjfN+9SvAF4l6R+ARwPXzCYlMzPbK3/2i2Xn8YufH3aqvY5f/M1HZlntr36pte/AgfM4evRI\nltg2P/6YgBZ5XjjmWmw4xujlqWj9MvoawbL4cTE9N3Uzsw7xTN2y6/tMPee++7lZLn+eupmZuam3\nyfPCMdeiLuVOoBh+XEzPTd3MrEM8U7fsPFP3TN1O5Zm6mZm5qbfJ88Ix16Iu5U6gGH5cTM9N3cys\nQzxTt+w8U/dM3U7lmbqZmbmpt8nzwjHXoi7lTqAYflxMz03dzKxDPFO37DxT90zdTjW3mbqk/ZLe\nJ+kuSXdLOlitv1bSJ6r1hyQ9eS+Jm5nZ7DT5jtJjwDMi4gJgBbhE0tOqm388Ii6IiKdExAfnmWgX\neF445lrUpdwJFMOPi+k1mqlHxP9UV/cz+rak49Vynq9sMTOzLTWaqUvaB7wfeALwqxHxWknXAhcy\n+uqWdwNXRMRDW9zXM3XbkWfqnqnbqeb6HaURcRy4QNIZwDskfQWjJr4u6WHAbwKvAd6w1f1XV1cZ\nDAYALC0tsbKywnA4BMZ/bnm538tjG8vDlpY31rUVr6z4pfz/e3lISom1tTWAzX65F7t+94uknwIe\njIira+u+EXh1RDxvi+19pF5JKW3+Z/ZdvRY+Ur+dE5t8e7FLe276OTI2z3e/nCPpzOr6w4GLgL+X\ntFytE/B84EO7DW5mZrM18Uhd0lcB1zH6BbAPeFtE/JykdwPnMDrUOAy8vPaCav3+PlK3HflI3TN1\nO9Vej9R98pFl56bupm6n8gd6LQC/B3fMtahLuRMohh8X03NTNzPrEI9fLDuPXzx+sVN5/GJmZm7q\nbfK8cMy1qEu5EyiGHxfTa3RGqZnZLC0vD1hfvzdb/AMHzuPo0SPZ4s+TZ+qWnWfq/Zup5/0/h0V4\nPcEzdTMzc1Nvk+eFY65FXcqdQEFS7gQWnpu6mVmHeKZu2Xmm7pl6hgw8Uzczs/K5qbfIc+Qx16Iu\n5U6gICl3AgvPTd3MrEM8U7fsPFP3TD1DBp2dqfuMUrPe2l81V+uSJl9nt1/S+yTdJeluSQer9QNJ\nd0q6R9LvSvIviAk8Rx5zLepSprjHGB0t57hsJ81u93pqYlOPiGPAMyLiAmAFuETS04Argasi4knA\nA8Dlc83UzMwm2tVMXdIXAO8FfhD4I2A5Io5LuhD46Yi4eIv7eKZuO/JMvY/7nr/upfelub5PXdI+\nSXcBR4FbgX8EHoiI49Um9wFfvNvgZmY2W43m4FXzvkDSGcA7gPO32my7+6+urjIYDABYWlpiZWWF\n4XAIjGerfViuz5FLyKe+fNllq1k/CnUsVf8OW1reWNdWvK3ivwn4sUzxcy2zze1vYjTlbSd+Kc+/\njf6wtrYGsNkv92LXb2mU9FPA/wA/yYnjl4MRcckW23v8Ukkpbf5nlqb9EUhi/ETr9xgAbufEJt9m\n7NLqnminFt0dv0xs6pLOAR6KiP+Q9HDgXcAvAC8B/jAi3ibp14APRMSvb3F/N/UF0N+5dglNvY/7\nnr/upfeleTb1rwKuYzR/3we8LSJ+TtLjgBuAs4C7gBdFxENb3N9NfQG4qefS133PX/fS+9Lcmvq0\n3NTHPH6pS3j8shHf45exhMcvI/6URjMz85G6jXj8kktf9z1/3UvvSz5SNzMzN/U2+fNO6lLuBAqS\ncidQkJQ7gYXnpm5m1iGeqRvgmXo+fd33/HUvvS95pm5mZm7qbfJMvS7lTqAgKXcCBUm5E1h4bupm\nZh3imboBnqnn09d9z1/30vuSZ+pmZuam3ibP1OtS7gQKknInUJCUO4GF56ZuZtYhnqkb4Jl6Pn3d\n9/x1L70veaZuZmaTm7qkcyXdJukjku6W9CPV+oOS7pN0qLpcPP90F5tn6nUpdwIFSbkTKEjKncDC\na/LF058DXhURhyU9Eni/pFur266OiKvnl56Zme3GXr54+kbgl4GvBx6MiKsmbO+Z+gLwTD2Xvu57\n/rqX3pdamalLGgArwPuqVT8k6bCkt0g6c7fBzcxstho39Wr08nbgFRHxIPBm4AkRsQIcBTyGmcAz\n9bqUO4GCpNwJFCTlTmDhNZmpI+l0Rg39tyLiJoCI+LfaJr8JvHO7+6+urjIYDABYWlpiZWVl8wuY\nNxqdl/Muj20sD+e8fHK8tuNvLG+sayveVvEPZ4yfa5ltbj/cavxSnn/D4ZCUEmtrawCb/XIvGs3U\nJb0V+ExEvKq2bjkijlbXXwl8TUR89xb39Ux9AXimnktf9z1/3UvvS3udqU9s6pKeDrwXuJvR/0IA\nrwO+m9F8/ThwBHhZRKxvcX839QXgpp5LX/c9f91L70tza+rTclMfSylt/tlVmvabemL8J3G/mwvc\nzonjmDZjl1b3RDu16G5T9xmlZmYd4iN1Azx+yaev+56/7qX3JR+pm5mZm3qb/D71upQ7gYKk3AkU\nJOVOYOG5qZuZdYhn6gZ4pp5PX/c9f91L70ueqZuZmZt6mzxTr0u5EyhIyp1AQVLuBBaem7qZWYd4\npm6AZ+r59HXf89e99L7kmbqZmbmpt2mnmfry8gBJ2S7tSxlilirlTqAgKXcCC6/R56nb/K2v30vu\nP0fNbPF5pl6IvDNt6O981XXvX+xR/NL7kmfqZmbmpt4mv0+9LuVOoCApdwIFSbkTWHgTm7qkcyXd\nJukjku6W9KPV+rMk3SLpHknvknTm/NM1M7OdNPk6u2VgOSIOS3ok8H7gUuD7gM9GxC9Keg1wVkRc\nscX9PVNvwDP1PsbOHb+vsUfxS+9Lc5upR8TRiDhcXX8Q+ChwLqPGfl212XXA83cb3MzMZmtXM3VJ\nA0ZfNn0ncGDji6Yj4ijwhbNOrms8U69LuRMoSMqdQEFS7gQWXuOmXo1e3g68ojpiL/tvFzOzHmp0\n8pGk0xk19N+KiJuq1euSDkTEejV3/9ft7r+6uspgMABgaWmJlZUVhsMhMD567cPycDjc9vaxjeVh\ny8t9jb+xrq14W8Wvazt+rmW2uX1jXTvxS+oPKSXW1tYANvvlXjQ6+UjSW4HPRMSrauuuBP49Iq70\nC6XT8wulfYydO35fY4/il96X5vZCqaSnA98DPFPSXZIOSboYuBL4Jkn3ABcBv7Db4H3jmXpdyp1A\nQVLuBAqSciew8CaOXyLiL4HTtrn5otmmY2Zm0/BnvxTC45c+xs4dv6+xR/FL70v+7BczM3NTb5Nn\n6nUpdwIFSbkTKEjKncDCc1M3M+sQz9QL4Zl6H2Pnjt/X2KP4pfclz9TNzMxNvU2eqdel3AkUJOVO\noCApdwILz03dzKxDPFMvhGfqfYydO35fY4/il96XPFM3MzM39TZ5pl6XcidQkJQ7gYKk3AksPDd1\nM7MO8Uy9EJ6p9zF27vh9jT2KX3pf8kzdzMzc1NvkmXpdyp1AQVLuBAqSciew8NzUzcw6ZOJMXdI1\nwLcA6xHx5GrdQeCljL+X9HUR8Wfb3N8z9QY8U+9j7Nzx+xp7FL/0vjTPmfq1wLO3WH91RDylumzZ\n0M3MrF0Tm3pE3AHcv8VNu/4N0neeqdel3AkUJOVOoCApdwILb5qZ+g9JOizpLZLOnFlGZma2ZxO/\neHobbwZ+JiJC0huAq4HLt9t4dXWVwWAAwNLSEisrKwyHQ2B89FrC8vLygPX1e3fc8flL1b/Dlpf7\nGn9jXVvxtopf13b8XMtsc/vGunbil9R/Ukqsra0BbPbLvWh08pGk84B3brxQ2vS26vaFeaE074uV\n+V846ue+u+79iz2KX3pfmvfJR6I2Q5e0XLvt24EP7TZwP6XcCRQk5U6gICl3AgVJuRNYeBPHL5Ku\nZ/S3y9mSPgUcBJ4haQU4DhwBXjbHHM3MrCF/9kuNxy993HfXvX+xR/FL70t7Hb/s9YVSM7MFtr86\niGvfgQPncfTokbn9fH9MQKtS7gQKknInUJCUO4GCpJbiHGP0l0L7l3m/w85N3cysQzxTr/FMvY/7\n7rr3L3bu+M3m+f48dTMzc1NvV8qdQEFS7gQKknInUJCUO4GF56ZuZtYhnqnXeKbex3133fsXO3d8\nz9TNzKwhN/VWpdwJFCTlTqAgKXcCBUm5E1h4bupmZh3imXqNZ+p93HfXvX+xc8f3TN3MzBpyU29V\nyp1AQVLuBAqScidQkJQ7gYXnpm5m1iGeqdd4pt7HfXfd+xc7d/zMM3VJ10hal/TB2rqzJN0i6R5J\n75J05m4Dm5nZ7DUZv1wLPPukdVcAfx4RTwJuA14768S6KeVOoCApdwIFSbkTKEjKncDCm9jUI+IO\n4P6TVl8KXFddvw54/ozzMjOzPWg0U5d0HvDOiHhytfzvEfHo2u2fjYizt7mvZ+rNomeMnTt+X2Pn\njt/X2Lnjz3em3sp3lK6urjIYDABYWlpiZWWF4XAIQEoJoJjl8Z9/bS8z4XbHn8/yxrq24pUWP9cy\nE27vR/x6/0kpsba2BrDZL/dir0fqHwWGEbEuaRm4PSLO3+a+PlLflDjxyXxC9DnHnqTt+IlxLfp+\nxHg72z8u5h27tLon2qlFd4/Um75PXdVlw83AanX9JcBNuw1sZmazN/FIXdL1jH51ng2sAweBG4Hf\nBx4DfAp4QUQ8sM39faTeLHrG2Lnj9zV27vh9jZ07/nyP1H3yUY2beh/33XXvX+zc8csYv9hMpNwJ\nFCTlTqAgKXcCBUm5E1h4bupmZh3i8UuNxy993HfXvX+xc8f3+MXMzBpyU29Vyp1AQVLuBAqScidQ\nkJQ7gYXnpm5m1iGeqdd4pt7HfXfd+xc7d3zP1M3MrCE39Val3AkUJOVOoCApdwIFSbkTWHhu6mZm\nHeKZeo1n6n3cd9e9f7Fzx/dM3czMGnJTb1XKnUBBUu4ECpJyJ1CQlDuBheembmbWIZ6p13im3sd9\nd937Fzt3fM/UzcysoamauqQjkj4g6S5JfzOrpLor5U6gICl3AgVJuRMoSMqdwMI7fcr7H2f0BdT3\nzyIZMzObzlQzdUmfBJ4aEZ/dYRvP1JtFzxg7d/y+xs4dv6+xc8cve6YewLsk/a2kl075s8zMbErT\njl++LiKOSvpC4FZJH42IO07eaHV1lcFgAMDS0hIrKysMh0MAUkoAxSyPZ3rzWN64vtXtnLTcRj45\n42+syxV/Y3ljXVvxtor/JuDHMsXPtcw2t78JWMkYv63laqnWf1JKrK2tAWz2y72Y2VsaJR0E/isi\nrj5pvccvmxInPplPiD7n2JO0HT8xrkXfxwC3s/3jYt6xS6t7op1adHf8suemLukLgH0R8aCkRwC3\nAK+PiFtO2s5NvVn0jLFzx+9r7Nzx+xo7d/z5NvVpxi8HgHdIiurn/M7JDd3MzNrlM0prPH7x+CVP\nfI9fxhIev1Rb+YxSMzPzkXqNZ+p93HfXvX+xc8f3kbqZmTXkpt6qlDuBgqTcCRQk5U6gICl3Agtv\n2pOPZur663+Pd7/7vbnTMDNbWEXN1J/4xKfy8Y8/Azhvrjlt7VbgZjxjdOz+xO9r7Nzxy32f+px8\nF/DUDHH/m1FTNzNbXJ6ptyrlTqAgKXcCBUm5EyhIyp3AwnNTNzPrEDf1Vg1zJ1CQYe4ECjLMnUBB\nhrkTWHhu6mZmHeKm3qqUO4GCpNwJFCTlTqAgKXcCC89N3cysQ9zUWzXMnUBBhrkTKMgwdwIFGeZO\nYOG5qZuZdchUTV3SxZL+XtI/SHrNrJLqrpQ7gYKk3AkUJOVOoCApdwILb89NXdI+4FeAZwNfCbxQ\n0pfPKrFuOpw7gYK4FmOuxZhrMa1pjtS/FvhYRNwbEQ8BNwCXziatrnogdwIFcS3GXIsx12Ja0zT1\nLwE+XVu+r1pnZmaZTPOBXlt9ethUH3u2f//DeMQjXslppy1N82P25Nixj3Ps2LyjHJl3gAVyJHcC\nBTmSO4GCHMmdwMLb80fvSroQ+OmIuLhavgKIiLjypO0W47vszMwKs5eP3p2mqZ8G3AM8C/gX4G+A\nF0bER/f0A83MbGp7Hr9ExP9J+mHgFkaz+Wvc0M3M8pr7Nx+ZmVl7ZnZG6aQTkSR9nqQbJH1M0l9L\neuysYpemQS1eKenDkg5LulXSY3Lk2YamJ6hJ+g5JxyU9pc382tSkFpK+s3ps3C3pt9vOsS0NniOP\nkXSbpEPV8+SSHHnOm6RrJK1L+uAO2/xS1TcPS1qZ+EMjYuoLo18OH2f05aIPY3QGwZeftM0PAG+u\nrn8XcMMsYpd2aViLbwQ+v7r+8j7XotrukcB7gL8CnpI774yPiy8F3g+cUS2fkzvvjLX4DeBl1fXz\ngU/mzntOtfh6YAX44Da3XwL8cXX9acCdk37mrI7Um5yIdClwXXX97YxeYO2iibWIiPdExP9Wi3fS\n3ff3Nz1B7WeBK4G5v6k0oya1eCnwqxHxnwAR8ZmWc2xLk1ocB86ori8B/9Rifq2JiDuA+3fY5FLg\nrdW27wPOlHRgp585q6be5ESkzW0i4v+AByQ9ekbxS7Lbk7IuB/50rhnlM7EW1Z+T50bEn7SZWAZN\nHhdfBjxJ0h2S/krSs1vLrl1NavF64HslfRr4I+BHWsqtNCfX6p+YcBA4zclHdU1ORDp5G22xTRc0\nPilL0ouAr2Y0jumiHWshScAbgZdMuE8XNHlcnM5oBPMNwGOBv5D0lRtH7h3SpBYvBK6NiDdW58T8\nNqPPmOqbXZ/kOasj9fsYPQg3nAv880nbfBp4DGy+x/2MiNjpz45F1aQWSLoIeC3wrdWfoF00qRaP\nYvRETZI+CVwI3NTRF0ubPC7uA26KiOMRcYTReSBPbCe9VjWpxeXA7wFExJ3A50s6p530inIfVd+s\nbNlP6mbV1P8W+FJJ50n6POAy4OaTtnkn4yOyFwC3zSh2aSbWQtIFwK8Dz4uIz2bIsS071iIi/jMi\nvigiHh8Rj2P0+sK3RsShTPnOU5PnyI3AMwGqBvZE4BOtZtmOJrW4F7gIQNL5wP4Ov8Ygtv8L9Wbg\nxbB5Fv8DEbG+40+b4au4FzM6svgYcEW17vXAt1TX9zP6zfsxRk/eQe5Xnuf4ivakWtzK6CzcQ8Bd\nwI25c85Vi5O2vY2OvvulaS2Aq4APAx8AXpA751y1YPSOlzsYvTPmEPCs3DnPqQ7XMzryPgZ8Cvg+\n4GXA99e2+RVG7xb6QJPnh08+MjPrEH+dnZlZh7ipm5l1iJu6mVmHuKmbmXWIm7qZWYe4qZuZdYib\nuplZh7ipm5l1yP8DII0KXpiILLYAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x7f6de5994f28>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "stones_tracks['valence'].hist()"
   ]
  },
  {
   "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<a name=\"lyricssearch\"></a>\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": 39,
   "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": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "586"
      ]
     },
     "execution_count": 40,
     "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": 41,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "774"
      ]
     },
     "execution_count": 41,
     "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": "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": 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": [
       "<div>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "      <th>1</th>\n",
       "      <th>2</th>\n",
       "      <th>3</th>\n",
       "      <th>4</th>\n",
       "      <th>5</th>\n",
       "      <th>6</th>\n",
       "      <th>7</th>\n",
       "      <th>8</th>\n",
       "      <th>9</th>\n",
       "      <th>...</th>\n",
       "      <th>1061</th>\n",
       "      <th>1062</th>\n",
       "      <th>1063</th>\n",
       "      <th>1064</th>\n",
       "      <th>1065</th>\n",
       "      <th>1066</th>\n",
       "      <th>1067</th>\n",
       "      <th>1068</th>\n",
       "      <th>1069</th>\n",
       "      <th>1070</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>_id</th>\n",
       "      <td>1497768</td>\n",
       "      <td>210315</td>\n",
       "      <td>123533</td>\n",
       "      <td>123537</td>\n",
       "      <td>117722</td>\n",
       "      <td>210284</td>\n",
       "      <td>1336394</td>\n",
       "      <td>107915</td>\n",
       "      <td>1308579</td>\n",
       "      <td>123808</td>\n",
       "      <td>...</td>\n",
       "      <td>310483</td>\n",
       "      <td>313269</td>\n",
       "      <td>313043</td>\n",
       "      <td>2389345</td>\n",
       "      <td>1245984</td>\n",
       "      <td>311907</td>\n",
       "      <td>310293</td>\n",
       "      <td>310289</td>\n",
       "      <td>106069</td>\n",
       "      <td>310543</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>annotation_count</th>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>5</td>\n",
       "      <td>4</td>\n",
       "      <td>6</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>6</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>...</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>4</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>4</td>\n",
       "      <td>1</td>\n",
       "      <td>16</td>\n",
       "      <td>15</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>api_path</th>\n",
       "      <td>/songs/1497768</td>\n",
       "      <td>/songs/210315</td>\n",
       "      <td>/songs/123533</td>\n",
       "      <td>/songs/123537</td>\n",
       "      <td>/songs/117722</td>\n",
       "      <td>/songs/210284</td>\n",
       "      <td>/songs/1336394</td>\n",
       "      <td>/songs/107915</td>\n",
       "      <td>/songs/1308579</td>\n",
       "      <td>/songs/123808</td>\n",
       "      <td>...</td>\n",
       "      <td>/songs/310483</td>\n",
       "      <td>/songs/313269</td>\n",
       "      <td>/songs/313043</td>\n",
       "      <td>/songs/2389345</td>\n",
       "      <td>/songs/1245984</td>\n",
       "      <td>/songs/311907</td>\n",
       "      <td>/songs/310293</td>\n",
       "      <td>/songs/310289</td>\n",
       "      <td>/songs/106069</td>\n",
       "      <td>/songs/310543</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>ctitle</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>full_title</th>\n",
       "      <td>All Together on the Wireless Machine by The Be...</td>\n",
       "      <td>A Little Rhyme by The Beatles (Ft. John &amp; Rodn...</td>\n",
       "      <td>And I Love Her by The Beatles</td>\n",
       "      <td>Any Time at All by The Beatles</td>\n",
       "      <td>A Taste of Honey by The Beatles</td>\n",
       "      <td>Beatle Greetings by The Beatles (Ft. George Ha...</td>\n",
       "      <td>Can You Take Me Back by The Beatles</td>\n",
       "      <td>Carry That Weight by The Beatles</td>\n",
       "      <td>Down in Eastern Australia by The Beatles</td>\n",
       "      <td>Everybody's Trying to Be My Baby by The Beatles</td>\n",
       "      <td>...</td>\n",
       "      <td>You Can't Catch Me by The Rolling Stones</td>\n",
       "      <td>You Don't Have To Mean It by The Rolling Stones</td>\n",
       "      <td>You Got Me Rocking by The Rolling Stones</td>\n",
       "      <td>You Got the Silver by The Rolling Stones (Ft. ...</td>\n",
       "      <td>Don't Look Back by The Rolling Stones</td>\n",
       "      <td>Each and every day of the year by The Rolling ...</td>\n",
       "      <td>I'm A King Bee by The Rolling Stones</td>\n",
       "      <td>Little By Little by The Rolling Stones</td>\n",
       "      <td>Brown Sugar by The Rolling Stones</td>\n",
       "      <td>Citadel by The Rolling Stones</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>header_image_thumbnail_url</th>\n",
       "      <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
       "      <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
       "      <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
       "      <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
       "      <td>https://s3.amazonaws.com/rapgenius/1360709432_...</td>\n",
       "      <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
       "      <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
       "      <td>https://images.genius.com/560d707ac51a528c952d...</td>\n",
       "      <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
       "      <td>https://images.genius.com/4268a08d2b36372eb6e8...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://images.genius.com/9c0263f14c39b6df59e5...</td>\n",
       "      <td>https://images.genius.com/eb7fd9257058b77179cb...</td>\n",
       "      <td>https://images.genius.com/a8ed1f93846da84943a7...</td>\n",
       "      <td>https://images.rapgenius.com/ac969979ccb91a0d2...</td>\n",
       "      <td>https://images.genius.com/23bbf05f7ee8286a8905...</td>\n",
       "      <td>https://images.genius.com/6c322c96140487d56076...</td>\n",
       "      <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
       "      <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
       "      <td>https://images.genius.com/5b7d4f11893ff2fdeba7...</td>\n",
       "      <td>https://images.genius.com/31323212a74c2a8d99eb...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>header_image_url</th>\n",
       "      <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
       "      <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
       "      <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
       "      <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
       "      <td>https://s3.amazonaws.com/rapgenius/1360709432_...</td>\n",
       "      <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
       "      <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
       "      <td>https://images.genius.com/560d707ac51a528c952d...</td>\n",
       "      <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
       "      <td>https://images.genius.com/4268a08d2b36372eb6e8...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://images.genius.com/9c0263f14c39b6df59e5...</td>\n",
       "      <td>https://images.genius.com/eb7fd9257058b77179cb...</td>\n",
       "      <td>https://images.genius.com/a8ed1f93846da84943a7...</td>\n",
       "      <td>https://images.rapgenius.com/ac969979ccb91a0d2...</td>\n",
       "      <td>https://images.genius.com/23bbf05f7ee8286a8905...</td>\n",
       "      <td>https://images.genius.com/6c322c96140487d56076...</td>\n",
       "      <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
       "      <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
       "      <td>https://images.genius.com/5b7d4f11893ff2fdeba7...</td>\n",
       "      <td>https://images.genius.com/31323212a74c2a8d99eb...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>id</th>\n",
       "      <td>1497768</td>\n",
       "      <td>210315</td>\n",
       "      <td>123533</td>\n",
       "      <td>123537</td>\n",
       "      <td>117722</td>\n",
       "      <td>210284</td>\n",
       "      <td>1336394</td>\n",
       "      <td>107915</td>\n",
       "      <td>1308579</td>\n",
       "      <td>123808</td>\n",
       "      <td>...</td>\n",
       "      <td>310483</td>\n",
       "      <td>313269</td>\n",
       "      <td>313043</td>\n",
       "      <td>2389345</td>\n",
       "      <td>1245984</td>\n",
       "      <td>311907</td>\n",
       "      <td>310293</td>\n",
       "      <td>310289</td>\n",
       "      <td>106069</td>\n",
       "      <td>310543</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>lyrics</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>lyrics_owner_id</th>\n",
       "      <td>1549345</td>\n",
       "      <td>250962</td>\n",
       "      <td>46871</td>\n",
       "      <td>46871</td>\n",
       "      <td>70799</td>\n",
       "      <td>250962</td>\n",
       "      <td>1549345</td>\n",
       "      <td>116340</td>\n",
       "      <td>1549345</td>\n",
       "      <td>22533</td>\n",
       "      <td>...</td>\n",
       "      <td>354383</td>\n",
       "      <td>354608</td>\n",
       "      <td>354382</td>\n",
       "      <td>1217557</td>\n",
       "      <td>1549345</td>\n",
       "      <td>354385</td>\n",
       "      <td>354383</td>\n",
       "      <td>354383</td>\n",
       "      <td>16</td>\n",
       "      <td>354608</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>original_lyrics</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>path</th>\n",
       "      <td>/The-beatles-all-together-on-the-wireless-mach...</td>\n",
       "      <td>/The-beatles-a-little-rhyme-lyrics</td>\n",
       "      <td>/The-beatles-and-i-love-her-lyrics</td>\n",
       "      <td>/The-beatles-any-time-at-all-lyrics</td>\n",
       "      <td>/The-beatles-a-taste-of-honey-lyrics</td>\n",
       "      <td>/The-beatles-beatle-greetings-lyrics</td>\n",
       "      <td>/The-beatles-can-you-take-me-back-lyrics</td>\n",
       "      <td>/The-beatles-carry-that-weight-lyrics</td>\n",
       "      <td>/The-beatles-down-in-eastern-australia-lyrics</td>\n",
       "      <td>/The-beatles-everybodys-trying-to-be-my-baby-l...</td>\n",
       "      <td>...</td>\n",
       "      <td>/The-rolling-stones-you-cant-catch-me-lyrics</td>\n",
       "      <td>/The-rolling-stones-you-dont-have-to-mean-it-l...</td>\n",
       "      <td>/The-rolling-stones-you-got-me-rocking-lyrics</td>\n",
       "      <td>/The-rolling-stones-you-got-the-silver-lyrics</td>\n",
       "      <td>/The-rolling-stones-dont-look-back-lyrics</td>\n",
       "      <td>/The-rolling-stones-each-and-every-day-of-the-...</td>\n",
       "      <td>/The-rolling-stones-im-a-king-bee-lyrics</td>\n",
       "      <td>/The-rolling-stones-little-by-little-lyrics</td>\n",
       "      <td>/The-rolling-stones-brown-sugar-lyrics</td>\n",
       "      <td>/The-rolling-stones-citadel-lyrics</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>primary_artist</th>\n",
       "      <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 586, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>...</td>\n",
       "      <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
       "      <td>{'id': 774, 'image_url': 'https://images.geniu...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>pyongs_count</th>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>15</td>\n",
       "      <td>2</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>1</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>...</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>NaN</td>\n",
       "      <td>7</td>\n",
       "      <td>NaN</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>song_art_image_thumbnail_url</th>\n",
       "      <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
       "      <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
       "      <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
       "      <td>https://images.genius.com/68c11c7f5b6b66194d77...</td>\n",
       "      <td>https://s3.amazonaws.com/rapgenius/1360709432_...</td>\n",
       "      <td>https://s3.amazonaws.com/rapgenius/110537_cda_...</td>\n",
       "      <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
       "      <td>https://images.genius.com/560d707ac51a528c952d...</td>\n",
       "      <td>https://images.genius.com/ad1f59e8a03be4eb521e...</td>\n",
       "      <td>https://images.genius.com/4268a08d2b36372eb6e8...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://images.genius.com/9c0263f14c39b6df59e5...</td>\n",
       "      <td>https://images.genius.com/eb7fd9257058b77179cb...</td>\n",
       "      <td>https://images.genius.com/a8ed1f93846da84943a7...</td>\n",
       "      <td>https://images.rapgenius.com/ac969979ccb91a0d2...</td>\n",
       "      <td>https://images.genius.com/23bbf05f7ee8286a8905...</td>\n",
       "      <td>https://images.genius.com/6c322c96140487d56076...</td>\n",
       "      <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
       "      <td>https://images.genius.com/076d49bcc219432b68b4...</td>\n",
       "      <td>https://images.genius.com/5b7d4f11893ff2fdeba7...</td>\n",
       "      <td>https://images.genius.com/31323212a74c2a8d99eb...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>stats</th>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False, 'p...</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False, 'p...</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>...</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False}</td>\n",
       "      <td>{'unreviewed_annotations': 0, 'hot': False, 'p...</td>\n",
       "      <td>{'unreviewed_annotations': 14, 'hot': False}</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>title</th>\n",
       "      <td>All Together on the Wireless Machine</td>\n",
       "      <td>A Little Rhyme</td>\n",
       "      <td>And I Love Her</td>\n",
       "      <td>Any Time at All</td>\n",
       "      <td>A Taste of Honey</td>\n",
       "      <td>Beatle Greetings</td>\n",
       "      <td>Can You Take Me Back</td>\n",
       "      <td>Carry That Weight</td>\n",
       "      <td>Down in Eastern Australia</td>\n",
       "      <td>Everybody's Trying to Be My Baby</td>\n",
       "      <td>...</td>\n",
       "      <td>You Can't Catch Me</td>\n",
       "      <td>You Don't Have To Mean It</td>\n",
       "      <td>You Got Me Rocking</td>\n",
       "      <td>You Got the Silver</td>\n",
       "      <td>Don't Look Back</td>\n",
       "      <td>Each and every day of the year</td>\n",
       "      <td>I'm A King Bee</td>\n",
       "      <td>Little By Little</td>\n",
       "      <td>Brown Sugar</td>\n",
       "      <td>Citadel</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>url</th>\n",
       "      <td>https://genius.com/The-beatles-all-together-on...</td>\n",
       "      <td>https://genius.com/The-beatles-a-little-rhyme-...</td>\n",
       "      <td>https://genius.com/The-beatles-and-i-love-her-...</td>\n",
       "      <td>https://genius.com/The-beatles-any-time-at-all...</td>\n",
       "      <td>https://genius.com/The-beatles-a-taste-of-hone...</td>\n",
       "      <td>https://genius.com/The-beatles-beatle-greeting...</td>\n",
       "      <td>https://genius.com/The-beatles-can-you-take-me...</td>\n",
       "      <td>https://genius.com/The-beatles-carry-that-weig...</td>\n",
       "      <td>https://genius.com/The-beatles-down-in-eastern...</td>\n",
       "      <td>https://genius.com/The-beatles-everybodys-tryi...</td>\n",
       "      <td>...</td>\n",
       "      <td>https://genius.com/The-rolling-stones-you-cant...</td>\n",
       "      <td>https://genius.com/The-rolling-stones-you-dont...</td>\n",
       "      <td>https://genius.com/The-rolling-stones-you-got-...</td>\n",
       "      <td>https://genius.com/The-rolling-stones-you-got-...</td>\n",
       "      <td>https://genius.com/The-rolling-stones-dont-loo...</td>\n",
       "      <td>https://genius.com/The-rolling-stones-each-and...</td>\n",
       "      <td>https://genius.com/The-rolling-stones-im-a-kin...</td>\n",
       "      <td>https://genius.com/The-rolling-stones-little-b...</td>\n",
       "      <td>https://genius.com/The-rolling-stones-brown-su...</td>\n",
       "      <td>https://genius.com/The-rolling-stones-citadel-...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>18 rows × 1071 columns</p>\n",
       "</div>"
      ],
      "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": 47,
   "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",
    "    l2 = re.sub('\\[[^\\]]*\\]', '', lyrics)\n",
    "    l3 = re.sub('\\[|\\]', '', l2)\n",
    "    l4 = re.sub('(\\s)+', ' ', l3)\n",
    "    return l4.strip().lower(), lyrics"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "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 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]\\n\\n[Chorus 2]\\n\\n[Chorus 3]\\n\\n[Chorus 4]\\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": 48,
     "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": 49,
   "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": 49,
     "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": 50,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'original_lyrics_text'"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "genius_tracks.create_index([('original_lyrics', pymongo.TEXT)])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "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": 51,
     "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<a name=\"matchingdatasets\"></a>\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": 8,
   "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": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'a hard days night'"
      ]
     },
     "execution_count": 9,
     "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": 12,
   "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": 81,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('fight', ['Fight', 'Fight - Remastered 2009']),\n",
       " ('eight days a week',\n",
       "  ['Eight Days A Week - Remastered 2015',\n",
       "   'Eight Days A Week - Remastered 2009']),\n",
       " ('yesterday', ['Yesterday - Remastered 2015', 'Yesterday - Remastered 2009']),\n",
       " ('had it with you', ['Had It With You', 'Had It With You - Remastered 2009']),\n",
       " ('little red rooster',\n",
       "  ['Little Red Rooster - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Little Red Rooster - Live In Ireland / 1965']),\n",
       " ('sympathy for the devil',\n",
       "  ['Sympathy For The Devil - Live At Beacon Theatre, New York / 2006',\n",
       "   'Sympathy For The Devil - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Sympathy For The Devil - 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",
       " ('worried about you',\n",
       "  ['Worried About You - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
       "   'Worried About You - 2009 Re-Mastered Digital Version']),\n",
       " ('you cant do that',\n",
       "  [\"You Can't Do That - Live / Bonus Track\",\n",
       "   \"You Can't Do That - Remastered 2009\"]),\n",
       " ('when the whip comes down',\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",
       " ('babys in black',\n",
       "  [\"Baby's In Black - Live / Bonus Track\",\n",
       "   \"Baby's In Black - Remastered 2009\"]),\n",
       " ('slipping away',\n",
       "  ['Slipping Away - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Slipping Away - 2009 Re-Mastered Digital 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 - Remastered 2015']),\n",
       " ('yellow submarine',\n",
       "  ['Yellow Submarine - Remastered 2015',\n",
       "   'Yellow Submarine - Remastered 2009',\n",
       "   'Yellow Submarine - Remastered 2009']),\n",
       " ('one hit to the body',\n",
       "  ['One Hit (To The Body)', 'One Hit (To The Body) - Remastered 2009']),\n",
       " ('shine a light',\n",
       "  ['Shine A Light - Live At The Beacon Theatre, New York / 2006',\n",
       "   'Shine A Light - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Shine a Light - Live']),\n",
       " ('its only rock n roll but i like it',\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",
       " ('out of control',\n",
       "  ['Out Of Control - 2009 Digital Remaster', 'Out Of Control - Live']),\n",
       " ('respectable', ['Respectable - Remastered', 'Respectable - Remastered']),\n",
       " ('winning ugly', ['Winning Ugly', 'Winning Ugly - Remastered 2009']),\n",
       " ('harlem shuffle', ['Harlem Shuffle', 'Harlem Shuffle - Remastered 2009']),\n",
       " ('like a rolling stone',\n",
       "  ['Like a Rolling Stone - Live',\n",
       "   'Like A Rolling Stone - Live - 2009 Re-Mastered Digital Version']),\n",
       " ('too rude', ['Too Rude', 'Too Rude - Remastered 2009']),\n",
       " ('hello goodbye',\n",
       "  ['Hello, Goodbye - Remastered 2015', 'Hello, Goodbye - Remastered 2009']),\n",
       " ('tumbling dice',\n",
       "  ['Tumbling Dice - Live At The Beacon Theatre, New York / 2006',\n",
       "   'Tumbling Dice - Live']),\n",
       " ('everybody needs somebody to love',\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",
       " ('let it be', ['Let It Be - Remastered 2015', 'Let It Be - Remastered 2009']),\n",
       " ('i will', ['I Will - Remastered 2009', 'I Will']),\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 - 2009 Re-Mastered Digital Version',\n",
       "   'Paint It Black - Live']),\n",
       " ('start me up',\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 - 2009 Re-Mastered Digital Version',\n",
       "   'Start Me Up - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Start Me Up - 2009 Re-Mastered Digital Version',\n",
       "   'Start Me Up - Live']),\n",
       " ('dead flowers',\n",
       "  ['Dead Flowers - Live',\n",
       "   'Dead Flowers - Live - 2009 Re-Mastered Digital Version']),\n",
       " ('love me do',\n",
       "  ['Love Me Do - Mono / Remastered 2015', 'Love Me Do - Remastered 2009']),\n",
       " ('key to the highway',\n",
       "  ['Key To The Highway - Piano Instrumental',\n",
       "   'Key To The Highway - Piano Instrumental/Remastered 2009']),\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 - 2009 Digital Remaster\"]),\n",
       " ('shattered',\n",
       "  ['Shattered - Remastered',\n",
       "   'Shattered - Remastered',\n",
       "   'Shattered - Live At The Beacon Theatre, New York / 2006',\n",
       "   'Shattered - Live - 2009 Re-Mastered Digital Version']),\n",
       " ('ticket to ride',\n",
       "  ['Ticket To Ride - Live / Remastered',\n",
       "   'Ticket To Ride - Remastered 2015',\n",
       "   'Ticket To Ride - Remastered 2009']),\n",
       " ('hold back', ['Hold Back', 'Hold Back - Remastered 2009']),\n",
       " ('all my loving',\n",
       "  ['All My Loving - Live / Remastered', 'All My Loving - Remastered 2009']),\n",
       " ('angie',\n",
       "  ['Angie - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
       "   'Angie - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Angie - Live']),\n",
       " ('faraway eyes',\n",
       "  ['Faraway Eyes - Live',\n",
       "   'Faraway Eyes - Live At The Beacon Theatre, New York / 2006']),\n",
       " ('roll over beethoven',\n",
       "  ['Roll Over Beethoven - Live / Remastered',\n",
       "   'Roll Over Beethoven - Remastered 2009']),\n",
       " ('something', ['Something - Remastered 2015', 'Something - Remastered 2009']),\n",
       " ('miss you',\n",
       "  ['Miss You - Remastered',\n",
       "   'Miss You - Live',\n",
       "   'Miss You - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Miss You - Remastered',\n",
       "   'Miss You - Live']),\n",
       " ('get back', ['Get Back - Remastered 2015', 'Get Back - Remastered 2009']),\n",
       " ('midnight rambler', ['Midnight Rambler - Live', 'Midnight Rambler - Live']),\n",
       " ('time is on my side',\n",
       "  ['Time Is On My Side - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Time Is On My Side - Live In Ireland / 1965']),\n",
       " ('you cant always get what you want',\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 - 2009 Re-Mastered Digital Version\",\n",
       "   'You Can’t Always Get What You Want - Live']),\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 - 2009 Re-Mastered Digital Version',\n",
       "   'Just My Imagination (Running Away With Me) - Remastered']),\n",
       " ('all down the line',\n",
       "  ['All Down The Line - Live At The Beacon Theatre, New York / 2006',\n",
       "   'All Down The Line - Live']),\n",
       " ('sgt peppers lonely hearts club band',\n",
       "  [\"Sgt. Pepper's Lonely Hearts Club Band - Remastered 2009\",\n",
       "   \"Sgt. Pepper's Lonely Hearts Club Band - Reprise / Remastered 2009\"]),\n",
       " ('street fighting man',\n",
       "  ['Street Fighting Man - Live',\n",
       "   'Street Fighting Man - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
       "   'Street Fighting Man - Live - 2009 Re-Mastered Digital Version']),\n",
       " ('little ta',\n",
       "  ['Little T&A - Live At The Beacon Theatre, New York / 2006',\n",
       "   'Little T&A - 2009 Re-Mastered Digital Version']),\n",
       " ('help',\n",
       "  ['Help! - Live / Remastered',\n",
       "   'Help! - Remastered 2015',\n",
       "   'Help! - Remastered 2009']),\n",
       " ('boys', ['Boys - Live / Remastered', 'Boys - Remastered 2009']),\n",
       " ('beast of burden',\n",
       "  ['Beast Of Burden - Remastered',\n",
       "   'Beast Of Burden - Remastered',\n",
       "   'Beast Of Burden - Live Licks Tour - 2009 Re-Mastered Digital Version']),\n",
       " ('brown sugar',\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 - 2009 Re-Mastered Digital Version',\n",
       "   'Brown Sugar - Live']),\n",
       " ('rock and a hard place',\n",
       "  ['Rock And A Hard Place - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Rock And A Hard Place - 2009 Re-Mastered Digital Version']),\n",
       " ('gimme shelter',\n",
       "  ['Gimme Shelter - Live',\n",
       "   'Gimme Shelter - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
       "   'Gimme Shelter - 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",
       " ('twist and shout',\n",
       "  ['Twist And Shout - Live / Remastered',\n",
       "   'Twist And Shout - Remastered 2009']),\n",
       " ('im free',\n",
       "  [\"I'm Free - Live At The Beacon Theatre, New York / 2006\",\n",
       "   \"I'm Free - Live - 2009 Re-Mastered Digital Version\"]),\n",
       " ('things we said today',\n",
       "  ['Things We Said Today - Live / Remastered',\n",
       "   'Things We Said Today - Remastered 2009']),\n",
       " ('honky tonk women',\n",
       "  ['Honky Tonk Women - Live',\n",
       "   'Honky Tonk Women - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
       "   'Honky Tonk Women - Live']),\n",
       " ('neighbours',\n",
       "  ['Neighbours - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
       "   'Neighbours - 2009 Re-Mastered Digital Version']),\n",
       " ('eleanor rigby',\n",
       "  ['Eleanor Rigby - Remastered 2015', 'Eleanor Rigby - Remastered 2009']),\n",
       " ('some girls',\n",
       "  ['Some Girls - Remastered',\n",
       "   'Some Girls - Live At The Beacon Theatre, New York / 2006',\n",
       "   'Some Girls - Remastered']),\n",
       " ('sad sad sad',\n",
       "  ['Sad Sad Sad - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Sad Sad Sad - 2009 Re-Mastered Digital Version']),\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 2009\"]),\n",
       " ('sleep tonight', ['Sleep Tonight', 'Sleep Tonight - Remastered 2009']),\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 2009\"]),\n",
       " ('dirty work', ['Dirty Work', 'Dirty Work - Remastered 2009']),\n",
       " ('the long and winding road',\n",
       "  ['The Long And Winding Road - Remastered 2015',\n",
       "   'The Long And Winding Road - Remastered 2009']),\n",
       " ('far away eyes',\n",
       "  ['Far Away Eyes - Remastered', 'Far Away Eyes - Remastered']),\n",
       " ('i go wild',\n",
       "  ['I Go Wild - Live', 'I Go Wild - 2009 Re-Mastered Digital Version']),\n",
       " ('continental drift',\n",
       "  ['Continental Drift - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Continental Drift - 2009 Re-Mastered Digital Version']),\n",
       " ('come together',\n",
       "  ['Come Together - Remastered 2015', 'Come Together - Remastered 2009']),\n",
       " ('penny lane',\n",
       "  ['Penny Lane - Remastered 2015', 'Penny Lane - Remastered 2009']),\n",
       " ('cant be seen',\n",
       "  [\"Can't Be Seen - Live - 2009 Re-Mastered Digital Version\",\n",
       "   \"Can't Be Seen - 2009 Re-Mastered Digital Version\"]),\n",
       " ('jumpin jack flash',\n",
       "  [\"Jumpin' Jack Flash - Live\",\n",
       "   \"Jumpin' Jack Flash - Live - 2009 Re-Mastered Digital Version\",\n",
       "   \"Jumpin' Jack Flash - Live\"]),\n",
       " ('i cant get no satisfaction',\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 - 2009 Re-Mastered Digital Version\",\n",
       "   \"(I Can't Get No) Satisfaction - Live - 2009 Re-Mastered Digital Version\",\n",
       "   \"(I Can't Get No) Satisfaction - Live - 2009 Re-Mastered Digital Version\",\n",
       "   \"(I Can't Get No) Satisfaction - 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 2009\"]),\n",
       " ('let me go',\n",
       "  ['Let Me Go - Live - 2009 Re-Mastered Digital Version',\n",
       "   'Let Me Go - 2009 Re-Mastered Digital Version']),\n",
       " ('not fade away',\n",
       "  ['Not Fade Away - Live',\n",
       "   'Not Fade Away - Live - 2009 Re-Mastered Digital Version']),\n",
       " ('dizzy miss lizzy',\n",
       "  ['Dizzy Miss Lizzy - Live / Remastered',\n",
       "   'Dizzy Miss Lizzy - Remastered 2009']),\n",
       " ('she loves you',\n",
       "  ['She Loves You - Live / Remastered',\n",
       "   'She Loves You - Mono / Remastered 2015']),\n",
       " ('back to zero', ['Back To Zero', 'Back To Zero - Remastered 2009']),\n",
       " ('lies', ['Lies - Remastered', 'Lies - Remastered']),\n",
       " ('she was hot',\n",
       "  ['She Was Hot - Live At The Beacon Theatre, New York / 2006',\n",
       "   'She Was Hot - 2009 Re-Mastered Digital Version']),\n",
       " ('all you need is love',\n",
       "  ['All You Need Is Love - Remastered 2015',\n",
       "   'All You Need Is Love - Remastered 2009',\n",
       "   'All You Need Is Love - Remastered 2009'])]"
      ]
     },
     "execution_count": 81,
     "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": 84,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('eight days a week',\n",
       "  [('Eight Days A Week - Remastered 2015', 0.215),\n",
       "   ('Eight Days A Week - Remastered 2009', 0.119)]),\n",
       " ('yesterday',\n",
       "  [('Yesterday - Remastered 2015', 0.0968),\n",
       "   ('Yesterday - Remastered 2009', 0.0886)]),\n",
       " ('had it with you',\n",
       "  [('Had It With You', 0.0655),\n",
       "   ('Had It With You - Remastered 2009', 0.0744)]),\n",
       " ('worried about you',\n",
       "  [('Worried About You - Live Licks Tour - 2009 Re-Mastered Digital Version',\n",
       "    0.47),\n",
       "   ('Worried About You - 2009 Re-Mastered Digital Version', 0.0865)]),\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",
       " ('slipping away',\n",
       "  [('Slipping Away - Live - 2009 Re-Mastered Digital Version', 0.106),\n",
       "   ('Slipping Away - 2009 Re-Mastered Digital Version', 0.421)]),\n",
       " ('yellow submarine',\n",
       "  [('Yellow Submarine - Remastered 2015', 0.543),\n",
       "   ('Yellow Submarine - Remastered 2009', 0.528),\n",
       "   ('Yellow Submarine - Remastered 2009', 0.438)]),\n",
       " ('one hit to the body',\n",
       "  [('One Hit (To The Body)', 0.62),\n",
       "   ('One Hit (To The Body) - Remastered 2009', 0.688)]),\n",
       " ('respectable',\n",
       "  [('Respectable - Remastered', 0.0677),\n",
       "   ('Respectable - Remastered', 0.0677)]),\n",
       " ('winning ugly',\n",
       "  [('Winning Ugly', 0.693), ('Winning Ugly - Remastered 2009', 0.689)]),\n",
       " ('harlem shuffle',\n",
       "  [('Harlem Shuffle', 0.224), ('Harlem Shuffle - Remastered 2009', 0.319)]),\n",
       " ('too rude', [('Too Rude', 0.0245), ('Too Rude - Remastered 2009', 0.0231)]),\n",
       " ('hello goodbye',\n",
       "  [('Hello, Goodbye - Remastered 2015', 0.525),\n",
       "   ('Hello, Goodbye - Remastered 2009', 0.414)]),\n",
       " ('let it be',\n",
       "  [('Let It Be - Remastered 2015', 0.112),\n",
       "   ('Let It Be - Remastered 2009', 0.111)]),\n",
       " ('i will', [('I Will - Remastered 2009', 0.0822), ('I Will', 0.113)]),\n",
       " ('love me do',\n",
       "  [('Love Me Do - Mono / Remastered 2015', 0.154),\n",
       "   ('Love Me Do - Remastered 2009', 0.227)]),\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",
       " ('shattered',\n",
       "  [('Shattered - Remastered', 0.124), ('Shattered - Remastered', 0.122)]),\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 2009', 0.233)]),\n",
       " ('hold back', [('Hold Back', 0.343), ('Hold Back - Remastered 2009', 0.368)]),\n",
       " ('roll over beethoven',\n",
       "  [('Roll Over Beethoven - Live / Remastered', 0.634),\n",
       "   ('Roll Over Beethoven - Remastered 2009', 0.0952)]),\n",
       " ('something',\n",
       "  [('Something - Remastered 2015', 0.144),\n",
       "   ('Something - Remastered 2009', 0.138)]),\n",
       " ('miss you',\n",
       "  [('Miss You - Remastered', 0.364),\n",
       "   ('Miss You - Remastered', 0.236),\n",
       "   ('Miss You - Live', 0.646)]),\n",
       " ('get back',\n",
       "  [('Get Back - Remastered 2015', 0.0959),\n",
       "   ('Get Back - Remastered 2009', 0.61)]),\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",
       " ('help',\n",
       "  [('Help! - Remastered 2015', 0.0776), ('Help! - Remastered 2009', 0.0994)]),\n",
       " ('beast of burden',\n",
       "  [('Beast Of Burden - Remastered', 0.0389),\n",
       "   ('Beast Of Burden - Remastered', 0.0382)]),\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",
       " ('twist and shout',\n",
       "  [('Twist And Shout - Live / Remastered', 0.508),\n",
       "   ('Twist And Shout - Remastered 2009', 0.0414)]),\n",
       " ('eleanor rigby',\n",
       "  [('Eleanor Rigby - Remastered 2015', 0.359),\n",
       "   ('Eleanor Rigby - Remastered 2009', 0.305)]),\n",
       " ('some girls',\n",
       "  [('Some Girls - Remastered', 0.409), ('Some Girls - Remastered', 0.51)]),\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 2009\", 0.134)]),\n",
       " ('sleep tonight',\n",
       "  [('Sleep Tonight', 0.273), ('Sleep Tonight - Remastered 2009', 0.297)]),\n",
       " ('cant buy me love',\n",
       "  [(\"Can't Buy Me Love - Remastered 2015\", 0.325),\n",
       "   (\"Can't Buy Me Love - Remastered 2009\", 0.321)]),\n",
       " ('dirty work',\n",
       "  [('Dirty Work', 0.0878), ('Dirty Work - Remastered 2009', 0.0808)]),\n",
       " ('the long and winding road',\n",
       "  [('The Long And Winding Road - Remastered 2015', 0.0718),\n",
       "   ('The Long And Winding Road - Remastered 2009', 0.0559)]),\n",
       " ('far away eyes',\n",
       "  [('Far Away Eyes - Remastered', 0.258),\n",
       "   ('Far Away Eyes - Remastered', 0.232)]),\n",
       " ('come together',\n",
       "  [('Come Together - Remastered 2015', 0.1),\n",
       "   ('Come Together - Remastered 2009', 0.0926)]),\n",
       " ('penny lane',\n",
       "  [('Penny Lane - Remastered 2015', 0.16),\n",
       "   ('Penny Lane - Remastered 2009', 0.136)]),\n",
       " ('i cant get no satisfaction',\n",
       "  [(\"(I Can't Get No) Satisfaction - Live - 2009 Re-Mastered Digital Version\",\n",
       "    0.511),\n",
       "   (\"(I Can't Get No) Satisfaction - Live\", 0.357)]),\n",
       " ('a hard days night',\n",
       "  [(\"A Hard Day's Night - Remastered 2015\", 0.0983),\n",
       "   (\"A Hard Day's Night - Remastered 2009\", 0.0996)]),\n",
       " ('dizzy miss lizzy',\n",
       "  [('Dizzy Miss Lizzy - Live / Remastered', 0.496),\n",
       "   ('Dizzy Miss Lizzy - Remastered 2009', 0.0962)]),\n",
       " ('back to zero',\n",
       "  [('Back To Zero', 0.064), ('Back To Zero - Remastered 2009', 0.0767)]),\n",
       " ('lies', [('Lies - Remastered', 0.524), ('Lies - Remastered', 0.472)]),\n",
       " ('all you need is love',\n",
       "  [('All You Need Is Love - Remastered 2015', 0.263),\n",
       "   ('All You Need Is Love - Remastered 2009', 0.286),\n",
       "   ('All You Need Is Love - Remastered 2009', 0.155)])]"
      ]
     },
     "execution_count": 84,
     "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": 74,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('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 2015', 'Love Me Do'),\n",
       " ('love me do',\n",
       "  'Love Me Do - Mono / Remastered 2015',\n",
       "  'Love Me Do - Spankox Liverpool Remix'),\n",
       " ('she loves you', 'She Loves You - Mono / Remastered 2015', 'She Loves You'),\n",
       " ('she loves you',\n",
       "  'She Loves You - Mono / Remastered 2015',\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 2009', 'I Will'),\n",
       " ('i will', 'I Will - Remastered 2009', 'I Will'),\n",
       " ('youve got to hide your love away',\n",
       "  \"You've Got To Hide Your Love Away - Remastered 2009\",\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 2009\",\n",
       "  \"You've Got To Hide Your Love Away - Take 5, Mono\"),\n",
       " ('yesterday', 'Yesterday - Remastered 2009', 'Yesterday'),\n",
       " ('yesterday', 'Yesterday - Remastered 2009', '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 2009',\n",
       "  'Roll Over Beethoven'),\n",
       " ('roll over beethoven',\n",
       "  'Roll Over Beethoven - Remastered 2009',\n",
       "  'Roll Over Beethoven'),\n",
       " ('i wanna be your man',\n",
       "  'I Wanna Be Your Man - Remastered 2009',\n",
       "  'I Wanna Be Your Man'),\n",
       " ('i wanna be your man',\n",
       "  'I Wanna Be Your Man - Remastered 2009',\n",
       "  'I Wanna Be Your Man'),\n",
       " ('money thats what i want',\n",
       "  \"Money (That's What I Want) - Remastered 2009\",\n",
       "  \"Money (That's What I Want)\"),\n",
       " ('money thats what i want',\n",
       "  \"Money (That's What I Want) - Remastered 2009\",\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',\n",
       "  'Wild Horses - Live - 2009 Re-Mastered Digital Version',\n",
       "  'Wild Horses'),\n",
       " ('wild horses',\n",
       "  'Wild Horses - Live - 2009 Re-Mastered Digital Version',\n",
       "  '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": 74,
     "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": 35,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(499, 563, 57)"
      ]
     },
     "execution_count": 35,
     "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": 36,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('bloom jamie xx rework', 'Radiohead'),\n",
       " ('sea of monsters', 'George Martin'),\n",
       " ('just my imagination', 'The Rolling Stones'),\n",
       " ('jumping jack flash', 'The Rolling Stones'),\n",
       " ('pepperland laid waste', 'George Martin'),\n",
       " ('little ta', 'The Rolling Stones'),\n",
       " ('kansas city heyheyheyhey', 'The Beatles'),\n",
       " ('bullet proof i wish i was', 'Radiohead'),\n",
       " ('sea of holes', 'George Martin'),\n",
       " ('packt like sardines in a crushed tin box', 'Radiohead'),\n",
       " ('codex illum sphere', 'Radiohead'),\n",
       " ('outro', 'Jimi Hendrix'),\n",
       " ('pepperland', 'George Martin'),\n",
       " ('key to the highway', 'The Rolling Stones'),\n",
       " ('march of the meanies', 'George Martin'),\n",
       " ('dollars cents', 'Radiohead'),\n",
       " ('little by little shed', 'Radiohead'),\n",
       " ('sea of time', 'George Martin'),\n",
       " ('faraway eyes', 'The Rolling Stones'),\n",
       " ('i will los angeles version', 'Radiohead'),\n",
       " ('everybody needs somebody to love finale', 'The Rolling Stones'),\n",
       " ('a punch up at a wedding', 'Radiohead'),\n",
       " ('revolution 1', 'The Beatles'),\n",
       " ('untitled', 'Radiohead'),\n",
       " ('when im sixty four', 'The Beatles')]"
      ]
     },
     "execution_count": 36,
     "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": 37,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('ladies and gentlemen the rolling stones', 'The Rolling Stones'),\n",
       " ('the butcher', 'Radiohead'),\n",
       " ('eds scary song', 'Radiohead'),\n",
       " ('long long while', 'The Rolling Stones'),\n",
       " ('till the next goodbye', 'The Rolling Stones'),\n",
       " ('wicked child', 'Radiohead'),\n",
       " ('bishops robes', 'Radiohead'),\n",
       " ('hey crawdaddy', 'The Rolling Stones'),\n",
       " ('baby please dont go', 'The Rolling Stones'),\n",
       " ('ready teddy', 'The Beatles'),\n",
       " ('somewhere', 'Ali brustofski'),\n",
       " ('fool to cry', 'The Rolling Stones'),\n",
       " ('john lennon vs bill oreilly', 'Nice Peter'),\n",
       " ('stray cat blues', 'The Rolling Stones'),\n",
       " ('because i know you love me so', 'The Beatles'),\n",
       " ('2120 south michigan avenue', 'The Rolling Stones'),\n",
       " ('jump on top of me', 'The Rolling Stones'),\n",
       " ('cinnamon girl', 'Radiohead'),\n",
       " ('john wesley harding', 'The Rolling Stones'),\n",
       " ('the honeymoon song', 'The Beatles'),\n",
       " ('dont ever change', 'The Beatles'),\n",
       " ('mantua', 'Radiohead'),\n",
       " ('fanny mae', 'The Rolling Stones'),\n",
       " ('paint it blacker', 'Plan B'),\n",
       " ('i froze up', 'Radiohead'),\n",
       " ('permanent daylight', 'Radiohead'),\n",
       " ('johnny b goode', 'The Beatles'),\n",
       " ('silver train', 'The Rolling Stones'),\n",
       " ('junk', 'The Beatles'),\n",
       " ('please go home', 'The Rolling Stones'),\n",
       " ('sie liebt dich', 'The Beatles'),\n",
       " ('come togetherdear prudence', 'The Beatles'),\n",
       " ('some other guy', 'The Beatles'),\n",
       " ('i call your name', 'The Beatles'),\n",
       " ('mona', 'The Rolling Stones'),\n",
       " ('complicated', 'The Rolling Stones'),\n",
       " ('little queenie', 'The Rolling Stones'),\n",
       " ('memphis', 'The Beatles'),\n",
       " ('glad all over', 'The Beatles'),\n",
       " ('all sold out', 'The Rolling Stones'),\n",
       " ('sympathy for the devil the neptunes remix', 'The Rolling Stones'),\n",
       " ('blue turns to grey', 'The Rolling Stones'),\n",
       " ('we are wasting time', 'The Rolling Stones'),\n",
       " ('its for you', 'The Beatles'),\n",
       " ('good times bad times', 'The Rolling Stones'),\n",
       " ('ooh my soul', 'The Beatles'),\n",
       " ('cry to me', 'The Rolling Stones'),\n",
       " ('egyptian song', 'Radiohead'),\n",
       " ('stoned', 'The Rolling Stones'),\n",
       " ('i dont know why aka dont know why i love you', 'The Rolling Stones'),\n",
       " ('get off of my cloud', 'The Rolling Stones'),\n",
       " ('star star', 'The Rolling Stones'),\n",
       " ('just a rumour', 'The Beatles'),\n",
       " ('id much rather be with the boys', 'The Rolling Stones'),\n",
       " ('petrol gang', 'The Rolling Stones'),\n",
       " ('in another land', 'The Rolling Stones'),\n",
       " ('you know what to do', 'The Beatles'),\n",
       " ('can you hear the music', 'The Rolling Stones'),\n",
       " ('you cant catch me', 'The Rolling Stones'),\n",
       " ('my bonnie', 'The Beatles'),\n",
       " ('money', 'The Rolling Stones'),\n",
       " ('honest i do', 'The Rolling Stones'),\n",
       " ('everything is turning to gold', 'The Rolling Stones'),\n",
       " ('cut a hole', 'Radiohead'),\n",
       " ('susie q', 'The Rolling Stones'),\n",
       " ('ooh my arms', 'The Beatles'),\n",
       " ('on the beach', 'Radiohead'),\n",
       " ('sha la la la la', 'The Beatles'),\n",
       " ('yesterdays papers', 'The Rolling Stones'),\n",
       " ('my girl', 'The Rolling Stones'),\n",
       " ('dear doctor', 'The Rolling Stones'),\n",
       " ('i want to know', 'On A Friday'),\n",
       " ('a moon shaped pool tracklist album cover', 'Radiohead'),\n",
       " ('four guys', 'James Richards'),\n",
       " ('i get a kick out of you', 'The Rolling Stones'),\n",
       " ('shout', 'The Beatles'),\n",
       " ('let it rock', 'The Rolling Stones'),\n",
       " ('travellin man', 'The Rolling Stones'),\n",
       " ('stealing my heart', 'The Rolling Stones'),\n",
       " ('when im sixtyfour', 'The Beatles'),\n",
       " ('criss cross man', 'The Rolling Stones'),\n",
       " ('come on', 'The Rolling Stones'),\n",
       " ('union city blue', 'Radiohead'),\n",
       " ('doom and gloom', 'The Rolling Stones'),\n",
       " ('baby whats wrong', 'The Rolling Stones'),\n",
       " ('nobodys child', 'The Beatles'),\n",
       " ('sweet little sixteen', 'The Beatles'),\n",
       " ('within you without youtomorrow never knows', 'The Beatles'),\n",
       " ('so divine aladdin story', 'The Rolling Stones'),\n",
       " ('upside down', 'Radiohead'),\n",
       " ('all things must pass', 'The Beatles'),\n",
       " ('besame mucho', 'The Beatles'),\n",
       " ('anyway you look at it', 'The Rolling Stones'),\n",
       " ('carol', 'The Rolling Stones'),\n",
       " ('winter', 'The Rolling Stones'),\n",
       " ('gangsters maul', 'The Rolling Stones'),\n",
       " ('what goes on girl', 'The Beatles'),\n",
       " ('lonesome tears in my eyes', 'The Beatles'),\n",
       " ('meet me in the bottom', 'The Rolling Stones'),\n",
       " ('missing links bootleg', 'Plan B'),\n",
       " ('through the lonely nights', 'The Rolling Stones'),\n",
       " ('no expectations', 'The Rolling Stones'),\n",
       " ('shake your hips', 'The Rolling Stones'),\n",
       " ('ill get you', 'The Beatles'),\n",
       " ('the beatles seventh christmas record', 'The Beatles'),\n",
       " ('words of love ep', 'The Beatles'),\n",
       " ('falling in love again', 'The Beatles'),\n",
       " ('dont let me down', 'The Beatles'),\n",
       " ('somebody else', 'Radiohead'),\n",
       " ('reminiscing', 'The Beatles'),\n",
       " ('the hippy hippy shake', 'The Beatles'),\n",
       " ('ya ya', 'The Beatles'),\n",
       " ('im down', 'The Beatles'),\n",
       " ('cry for a shadow', 'The Beatles'),\n",
       " ('doo doo doo doo doo heartbreaker', 'The Rolling Stones'),\n",
       " ('pop is dead', 'Radiohead'),\n",
       " ('love of the loved', 'The Beatles'),\n",
       " ('dancing with mr d', 'The Rolling Stones'),\n",
       " ('the thief', 'Radiohead'),\n",
       " ('jazz piano song', 'The Beatles'),\n",
       " ('da doo ron ron', 'The Rolling Stones'),\n",
       " ('lets dance', 'The Beatles'),\n",
       " ('one more try', 'The Rolling Stones'),\n",
       " ('andrews blues', 'The Rolling Stones'),\n",
       " ('memphis tennessee', 'The Beatles'),\n",
       " ('sister morphine', 'The Rolling Stones'),\n",
       " ('give it up', 'On A Friday'),\n",
       " ('blackbirdyesterday', 'The Beatles'),\n",
       " ('title 5', 'The Rolling Stones'),\n",
       " ('sad day', 'The Rolling Stones'),\n",
       " ('i am waiting', 'The Rolling Stones'),\n",
       " ('a picture of you', 'The Beatles'),\n",
       " ('dance', 'The Rolling Stones'),\n",
       " ('revolution', 'The Beatles'),\n",
       " ('youll be mine', 'The Beatles'),\n",
       " ('lewis mistreated', 'Radiohead'),\n",
       " ('keep your hands off my baby', 'The Beatles'),\n",
       " ('lady jane', 'The Rolling Stones'),\n",
       " ('following the river', 'The Rolling Stones'),\n",
       " ('the lantern', 'The Rolling Stones'),\n",
       " ('i got a woman', 'The Beatles'),\n",
       " ('walking through the sleepy city', 'The Rolling Stones'),\n",
       " ('aint that loving you baby', 'The Rolling Stones'),\n",
       " ('sing this all together', 'The Rolling Stones'),\n",
       " ('im gonna sit right down and cry over you', 'The Beatles'),\n",
       " ('in spite of all the danger', 'The Beatles'),\n",
       " ('crying waiting hoping', 'The Beatles'),\n",
       " ('we want the stones', 'The Rolling Stones'),\n",
       " ('the beatles 1968 christmas record', 'The Beatles'),\n",
       " ('miss amanda jones', 'The Rolling Stones'),\n",
       " ('wish i never met you', 'The Rolling Stones'),\n",
       " ('sweet georgia brown', 'The Beatles'),\n",
       " ('inside my head', 'Radiohead'),\n",
       " ('old brown shoe', 'The Beatles'),\n",
       " ('yes i am', 'Radiohead'),\n",
       " ('beatle greetings', 'The Beatles'),\n",
       " ('just a rumour speech', 'The Beatles'),\n",
       " ('nothin shakin', 'The Beatles'),\n",
       " ('hound dog', 'The Rolling Stones'),\n",
       " ('stuck out all alone', 'The Rolling Stones'),\n",
       " ('nothin shakin but the leaves on the trees', 'The Beatles'),\n",
       " ('2000 light years from home', 'The Rolling Stones'),\n",
       " ('ladytron', 'Radiohead'),\n",
       " ('shes a rainbow', 'The Rolling Stones'),\n",
       " ('no reply demo', 'The Beatles'),\n",
       " ('im not signifying', 'The Rolling Stones'),\n",
       " ('i want to be loved', 'The Rolling Stones'),\n",
       " ('bebopalula', 'The Beatles'),\n",
       " ('walking the dog', 'The Rolling Stones'),\n",
       " ('stop breaking down', 'The Rolling Stones'),\n",
       " ('whos been sleeping here', 'The Rolling Stones'),\n",
       " ('downtown suzie', 'The Rolling Stones'),\n",
       " ('real love', 'The Beatles'),\n",
       " ('keep strong', 'On A Friday'),\n",
       " ('yove got to hide your love away', 'The Beatles'),\n",
       " ('this boy', 'The Beatles'),\n",
       " ('the beatles third christmas record', 'The Beatles'),\n",
       " ('the harder they come', 'The Rolling Stones'),\n",
       " ('try a little harder', 'The Rolling Stones'),\n",
       " ('kid a tracklist album cover', 'Radiohead'),\n",
       " ('big boots', 'Radiohead'),\n",
       " ('aint too proud to beg', 'The Rolling Stones'),\n",
       " ('flight 505', 'The Rolling Stones'),\n",
       " ('ill be on my way', 'The Beatles'),\n",
       " ('cant get next to you', 'The Rolling Stones'),\n",
       " ('im coming up', 'On A Friday'),\n",
       " ('backstreet girl', 'The Rolling Stones'),\n",
       " ('final show', 'Beatles Candlestick Park Setlist'),\n",
       " ('wonderwall', 'Radiohead'),\n",
       " ('down in the bottom', 'The Rolling Stones'),\n",
       " ('you better move on', 'The Rolling Stones'),\n",
       " ('each and every day of the year', 'The Rolling Stones'),\n",
       " ('give peace a chance', 'The Beatles'),\n",
       " ('a punchup at a wedding', 'Radiohead'),\n",
       " ('why', 'The Beatles'),\n",
       " ('goodbye', 'The Beatles'),\n",
       " ('im gonna drive', 'The Rolling Stones'),\n",
       " ('short and curlies', 'The Rolling Stones'),\n",
       " ('3', 'The Rolling Stones'),\n",
       " ('19th nervous breakdown', 'The Rolling Stones'),\n",
       " ('pay your dues', 'The Rolling Stones'),\n",
       " ('melody', 'The Rolling Stones'),\n",
       " ('rhinestone cowboy', 'Radiohead'),\n",
       " ('spectre', 'Radiohead'),\n",
       " ('supercollider', 'Radiohead'),\n",
       " ('if you cant rock me', 'The Rolling Stones'),\n",
       " ('reelin and rockin', 'The Rolling Stones'),\n",
       " ('its not easy', 'The Rolling Stones'),\n",
       " ('think', 'The Rolling Stones'),\n",
       " ('eleanor rigbyjulia transition', 'The Beatles'),\n",
       " ('mannish boy', 'The Rolling Stones'),\n",
       " ('phillipa chicken', 'Radiohead'),\n",
       " ('cherry oh baby', 'The Rolling Stones'),\n",
       " ('its all over now', 'The Rolling Stones'),\n",
       " ('talkin about you', 'The Rolling Stones'),\n",
       " ('matchbox', 'The Beatles'),\n",
       " ('revolution i', 'The Beatles'),\n",
       " ('ooh my arms speech', 'The Beatles'),\n",
       " ('whatd i say', 'The Beatles'),\n",
       " ('saints when the saints go marching in', 'The Beatles'),\n",
       " ('bad boy', 'The Beatles'),\n",
       " ('bitches talkin', 'Frank Ocean'),\n",
       " ('congratulations', 'The Rolling Stones'),\n",
       " ('good times', 'The Rolling Stones'),\n",
       " ('thatll be the day', 'The Beatles'),\n",
       " ('gnik nus', 'The Beatles'),\n",
       " ('around and around', 'The Rolling Stones'),\n",
       " ('ive been loving you too long', 'The Rolling Stones'),\n",
       " ('i want none of this', 'Radiohead'),\n",
       " ('saints', 'The Beatles'),\n",
       " ('something happened to me yesterday', 'The Rolling Stones'),\n",
       " ('what is that you say', 'Radiohead'),\n",
       " ('glass onion love remix', 'The Beatles'),\n",
       " ('gotta get away', 'The Rolling Stones'),\n",
       " ('what a shame', 'The Rolling Stones'),\n",
       " ('i promise', 'Radiohead'),\n",
       " ('climbing up a bloody great hill', 'Radiohead'),\n",
       " ('down in eastern australia', 'The Beatles'),\n",
       " ('meeting in the aisle', 'Radiohead'),\n",
       " ('one and one is two', 'The Beatles'),\n",
       " ('love these goon shows', 'The Beatles'),\n",
       " ('nothing from nothing', 'The Rolling Stones'),\n",
       " ('bullet proofi wish i was', 'Radiohead'),\n",
       " ('play with fire', 'The Rolling Stones'),\n",
       " ('dear wack', 'The Beatles'),\n",
       " ('crushed pearl', 'The Rolling Stones'),\n",
       " ('the sheik of araby', 'The Beatles'),\n",
       " ('aint she sweet', 'The Beatles'),\n",
       " ('highway child', 'The Rolling Stones'),\n",
       " ('how can you be sure', 'Radiohead'),\n",
       " ('burning bush', 'Radiohead'),\n",
       " ('salt of the earth', 'The Rolling Stones'),\n",
       " ('not guilty', 'The Beatles'),\n",
       " ('soldier of love', 'The Beatles'),\n",
       " ('i aint superstitious', 'The Rolling Stones'),\n",
       " ('three cool cats', 'The Beatles'),\n",
       " ('confessin the blues', 'The Rolling Stones'),\n",
       " ('under the board walk', 'The Rolling Stones'),\n",
       " ('hoochie coochie man', 'The Rolling Stones'),\n",
       " ('thank you girl', 'The Beatles'),\n",
       " ('follow me around', 'Radiohead'),\n",
       " ('talk show host', 'Radiohead'),\n",
       " ('you know my name look up the number', 'The Beatles'),\n",
       " ('how i made my millions', 'Radiohead'),\n",
       " ('watching rainbows', 'The Beatles'),\n",
       " ('grown up wrong', 'The Rolling Stones'),\n",
       " ('crinsk dee night', 'The Beatles'),\n",
       " ('hello little girl', 'The Beatles'),\n",
       " ('september in the rain', 'The Beatles'),\n",
       " ('cool calm and collected', 'The Rolling Stones'),\n",
       " ('komm gib mir deine hand', 'The Beatles'),\n",
       " ('open pick', 'Radiohead'),\n",
       " ('moonlight mile', 'The Rolling Stones'),\n",
       " ('step inside love', 'The Beatles'),\n",
       " ('dream baby', 'The Beatles'),\n",
       " ('casino boogie', 'The Rolling Stones'),\n",
       " ('child of nature', 'The Beatles'),\n",
       " ('hitch hike', 'The Rolling Stones'),\n",
       " ('mr b', 'Radiohead'),\n",
       " ('im a king bee', 'The Rolling Stones'),\n",
       " ('parachute woman', 'The Rolling Stones'),\n",
       " ('goin home', 'The Rolling Stones'),\n",
       " ('ruby baby', 'The Beatles'),\n",
       " ('sinking ship', 'On A Friday'),\n",
       " ('the fool on the hill demo', 'The Beatles'),\n",
       " ('have a banana', 'The Beatles'),\n",
       " ('yes it is', 'The Beatles'),\n",
       " ('jingle bells', 'The Beatles'),\n",
       " ('prodigal son', 'The Rolling Stones'),\n",
       " ('untogether', 'Radiohead'),\n",
       " ('let it loose', 'The Rolling Stones'),\n",
       " ('everybody lies through their teeth', 'On A Friday'),\n",
       " ('blood red wine', 'The Rolling Stones'),\n",
       " ('the trickster', 'Radiohead'),\n",
       " ('palo alto', 'Radiohead'),\n",
       " ('worrywort', 'Radiohead'),\n",
       " ('i just dont understand', 'The Beatles'),\n",
       " ('what is it that you say', 'On A Friday'),\n",
       " ('step inside love los paranoias', 'The Beatles'),\n",
       " ('i think im going mad', 'The Rolling Stones'),\n",
       " ('youve got a hold on me', 'The Beatles'),\n",
       " ('some things just stick in your mind', 'The Rolling Stones'),\n",
       " ('empty heart', 'The Rolling Stones'),\n",
       " ('the beatles christmas record', 'The Beatles'),\n",
       " ('packt like sardines in a crushd tin box', 'Radiohead'),\n",
       " ('beautiful dreamer', 'The Beatles'),\n",
       " ('i need you baby mona', 'The Rolling Stones'),\n",
       " ('blue suede shoes', 'The Beatles'),\n",
       " ('sour milk sea', 'The Beatles'),\n",
       " ('sleepy city', 'The Rolling Stones'),\n",
       " ('family', 'The Rolling Stones'),\n",
       " ('lend me your comb', 'The Beatles'),\n",
       " ('ventilator blues', 'The Rolling Stones'),\n",
       " ('still a fool', 'The Rolling Stones'),\n",
       " ('con le mie lacrime', 'The Rolling Stones'),\n",
       " ('all together on the wireless machine', 'The Beatles'),\n",
       " ('whats the new mary jane', 'The Beatles'),\n",
       " ('dont look back', 'The Rolling Stones'),\n",
       " ('stupid girl', 'The Rolling Stones'),\n",
       " ('child of the moon', 'The Rolling Stones'),\n",
       " ('you can make it if you try', 'The Rolling Stones'),\n",
       " ('how do you do it', 'The Beatles'),\n",
       " ('kansas city', 'The Beatles'),\n",
       " ('hiheel sneakers', 'The Rolling Stones'),\n",
       " ('summertime blues', 'The Rolling Stones'),\n",
       " ('im going down', 'The Rolling Stones'),\n",
       " ('pearly', 'Radiohead'),\n",
       " ('so how come no one loves me', 'The Beatles'),\n",
       " ('we love you', 'The Rolling Stones'),\n",
       " ('she smiled sweetly', 'The Rolling Stones'),\n",
       " ('little t a', 'The Rolling Stones'),\n",
       " ('banana co', 'Radiohead'),\n",
       " ('clarabella', 'The Beatles'),\n",
       " ('wish you were here', 'Radiohead'),\n",
       " ('sing a song for you', 'Radiohead'),\n",
       " ('hallelujah i love her so', 'The Beatles'),\n",
       " ('luxury', 'The Rolling Stones'),\n",
       " ('the storm', 'The Rolling Stones'),\n",
       " ('the daily mail', 'Radiohead'),\n",
       " ('something with blue jay way transition', 'The Beatles'),\n",
       " ('big ideas', 'Radiohead'),\n",
       " ('heart of stone', 'The Rolling Stones'),\n",
       " ('i just want to make love to you', 'The Rolling Stones'),\n",
       " ('what to do', 'The Rolling Stones'),\n",
       " ('road runner', 'The Rolling Stones'),\n",
       " ('if i was a dancer dance part 2', 'The Rolling Stones'),\n",
       " ('fancyman blues', 'The Rolling Stones'),\n",
       " ('transatlantic drawl', 'Radiohead'),\n",
       " ('the rocky road to dublin', 'The Chieftains'),\n",
       " ('teddy boy', 'The Beatles'),\n",
       " ('fingerprint file', 'The Rolling Stones'),\n",
       " ('memphis tennessee', 'The Rolling Stones'),\n",
       " ('cocksucker blues', 'The Rolling Stones'),\n",
       " ('if you let me', 'The Rolling Stones'),\n",
       " ('mercy mercy', 'The Rolling Stones'),\n",
       " ('i got to find my baby', 'The Beatles'),\n",
       " ('the singer not the song', 'The Rolling Stones'),\n",
       " ('killer cars', 'Radiohead'),\n",
       " ('slow down', 'The Beatles'),\n",
       " ('my bonnie', 'Tony Sheridan'),\n",
       " ('heavys pizza', 'Dallas Smart'),\n",
       " ('drift away', 'The Rolling Stones'),\n",
       " ('lift', 'Radiohead'),\n",
       " ('sure to fall in love with you', 'The Beatles'),\n",
       " ('molasses', 'Radiohead'),\n",
       " ('tell me why ep', 'The Beatles'),\n",
       " ('ill wear it proudly', 'Radiohead'),\n",
       " ('melatonin', 'Radiohead'),\n",
       " ('rain', 'The Beatles'),\n",
       " ('india', 'The Beatles'),\n",
       " ('being for the benefit of mr kitei want you shes so heavyhelter skelter',\n",
       "  'The Beatles'),\n",
       " ('one more shot', 'The Rolling Stones'),\n",
       " ('stupid car', 'Radiohead'),\n",
       " ('jiving sister fanny', 'The Rolling Stones'),\n",
       " ('another beatles christmas record', 'The Beatles'),\n",
       " ('were wastin time', 'The Rolling Stones'),\n",
       " ('punchdrunk lovesick singalong', 'Radiohead'),\n",
       " ('can i get a witness', 'The Rolling Stones'),\n",
       " ('happy song', 'On A Friday'),\n",
       " ('100 years ago', 'The Rolling Stones'),\n",
       " ('riding on a bus', 'The Beatles'),\n",
       " ('india rubber', 'Radiohead'),\n",
       " ('on with the show', 'The Rolling Stones'),\n",
       " ('hey negrita', 'The Rolling Stones'),\n",
       " ('moonlight', 'The Beatles'),\n",
       " ('polyethylene parts 1 2', 'Radiohead'),\n",
       " ('sympathy for the devil fatboy slim remix', 'The Rolling Stones'),\n",
       " ('sweet black angel', 'The Rolling Stones'),\n",
       " ('if you love me baby', 'The Beatles'),\n",
       " ('sweet little sixteen', 'The Rolling Stones'),\n",
       " ('1822', 'The Beatles'),\n",
       " ('everyone needs someone to hate', 'On A Friday'),\n",
       " ('leave my kitten alone', 'The Beatles'),\n",
       " ('citadel', 'The Rolling Stones'),\n",
       " ('country honk', 'The Rolling Stones'),\n",
       " ('hot stuff', 'The Rolling Stones'),\n",
       " ('someone else', 'On A Friday'),\n",
       " ('hide your love', 'The Rolling Stones'),\n",
       " ('look what youve done', 'The Rolling Stones'),\n",
       " ('dance little sister', 'The Rolling Stones'),\n",
       " ('tell me youre coming back', 'The Rolling Stones'),\n",
       " ('dancing in the light', 'The Rolling Stones'),\n",
       " ('i dont know why', 'The Rolling Stones'),\n",
       " ('mothers little helper', 'The Rolling Stones'),\n",
       " ('jigsaw puzzle', 'The Rolling Stones'),\n",
       " ('2000 man', 'The Rolling Stones'),\n",
       " ('from us to you', 'The Beatles'),\n",
       " ('here comes the sunthe inner light transition', 'The Beatles'),\n",
       " ('down home girl', 'The Rolling Stones'),\n",
       " ('you never wash up after yourself', 'Radiohead'),\n",
       " ('commonwealth', 'The Beatles'),\n",
       " ('bye bye johnny', 'The Rolling Stones'),\n",
       " ('diddley daddy', 'The Rolling Stones'),\n",
       " ('crackin up', 'The Rolling Stones'),\n",
       " ('i just want to see his face', 'The Rolling Stones'),\n",
       " ('set fire to that lot speech', 'The Beatles'),\n",
       " ('the new generation', 'Radiohead'),\n",
       " ('to be a brilliant light', 'On A Friday'),\n",
       " ('a little rhyme', 'The Beatles'),\n",
       " ('these are my twisted words', 'Radiohead'),\n",
       " ('rain fall down william remix', 'The Rolling Stones'),\n",
       " ('across the universe wildlife version', 'The Beatles'),\n",
       " ('i cant help it', 'The Rolling Stones'),\n",
       " ('the happy rishikesh song', 'The Beatles'),\n",
       " ('blue moon of kentucky', 'The Beatles'),\n",
       " ('dollars and cents', 'Radiohead'),\n",
       " ('it should be you', 'The Rolling Stones'),\n",
       " ('goodbye girl', 'The Rolling Stones'),\n",
       " ('corinna', 'The Rolling Stones'),\n",
       " ('million dollar question', 'Radiohead'),\n",
       " ('bitch', 'The Rolling Stones'),\n",
       " ('she said yeah', 'The Rolling Stones'),\n",
       " ('maquiladora', 'Radiohead'),\n",
       " ('sway', 'The Rolling Stones'),\n",
       " ('oh baby we got a good thing goin', 'The Rolling Stones'),\n",
       " ('wake up in the morning', 'The Rolling Stones'),\n",
       " ('who am i', 'The Rolling Stones'),\n",
       " ('memory motel', 'The Rolling Stones'),\n",
       " ('my obsession', 'The Rolling Stones'),\n",
       " ('sure to fall', 'The Beatles'),\n",
       " ('im talking about you', 'The Beatles'),\n",
       " ('faithless the wonderboy', 'Radiohead'),\n",
       " ('i got the blues', 'The Rolling Stones'),\n",
       " ('carol', 'The Beatles'),\n",
       " ('sgt peppers lonely hearts club band band documentary multimedia',\n",
       "  'The Beatles'),\n",
       " ('the under assistant west coast promotion man', 'The Rolling Stones'),\n",
       " ('have you seen your mother baby standing in the shadow',\n",
       "  'The Rolling Stones'),\n",
       " ('suzy parker', 'The Beatles'),\n",
       " ('jerusalem', 'On A Friday'),\n",
       " ('plundered my soul', 'The Rolling Stones'),\n",
       " ('mailman bring me no more blues', 'The Beatles'),\n",
       " ('memo from turner', 'The Rolling Stones'),\n",
       " ('it hurts me too', 'The Rolling Stones'),\n",
       " ('stranger in my arms', 'The Beatles'),\n",
       " ('young blood', 'The Beatles'),\n",
       " ('soul survivor', 'The Rolling Stones'),\n",
       " ('torn and frayed', 'The Rolling Stones'),\n",
       " ('sittin on a fence', 'The Rolling Stones'),\n",
       " ('doncha bother me', 'The Rolling Stones'),\n",
       " ('fasttrack', 'Radiohead'),\n",
       " ('ride on baby', 'The Rolling Stones'),\n",
       " ('that girl belongs to yesterday', 'The Rolling Stones'),\n",
       " ('james bond theme', 'The Beatles'),\n",
       " ('love', 'The Beatles'),\n",
       " ('hear me lord harrison', 'The Beatles'),\n",
       " ('i forgot to remember to forget', 'The Beatles'),\n",
       " ('a reminder', 'Radiohead'),\n",
       " ('set fire to that lot', 'The Beatles'),\n",
       " ('ceremony', 'Radiohead'),\n",
       " ('harlem shuffle ny mix', 'The Rolling Stones'),\n",
       " ('if you need me', 'The Rolling Stones'),\n",
       " ('lozenge of love', 'Radiohead'),\n",
       " ('shake rattle and roll', 'The Beatles'),\n",
       " ('to know her is to love her', 'The Beatles'),\n",
       " ('pedro the fisherman', 'The Beatles'),\n",
       " ('harry patch in memory of', 'Radiohead'),\n",
       " ('nothing touches me', 'Radiohead'),\n",
       " ('dont lie to me', 'The Rolling Stones'),\n",
       " ('christmas time is here again', 'The Beatles'),\n",
       " ('cook cook blues', 'The Rolling Stones'),\n",
       " ('losing my touch', 'The Rolling Stones'),\n",
       " ('fortune teller', 'The Rolling Stones'),\n",
       " ('have a banana speech', 'The Beatles'),\n",
       " ('coming down again', 'The Rolling Stones'),\n",
       " ('ill wind', 'Radiohead'),\n",
       " ('lull', 'Radiohead'),\n",
       " ('you gotta move', 'The Rolling Stones'),\n",
       " ('the inner light', 'The Beatles'),\n",
       " ('hand of fate', 'The Rolling Stones'),\n",
       " ('staircase', 'Radiohead'),\n",
       " ('dont stop', 'The Rolling Stones'),\n",
       " ('get back aka no pakistanis', 'The Beatles'),\n",
       " ('lucille', 'The Beatles'),\n",
       " ('that means a lot', 'The Beatles'),\n",
       " ('gomper', 'The Rolling Stones'),\n",
       " ('tell me', 'The Rolling Stones'),\n",
       " ('moonlight bay', 'The Beatles'),\n",
       " ('stand by me', 'The Beatles'),\n",
       " ('manowar', 'Radiohead'),\n",
       " ('bad to me', 'The Beatles'),\n",
       " ('miss you dr dre remix 2002', 'The Rolling Stones'),\n",
       " ('too much monkey business', 'The Beatles'),\n",
       " ('poison ivy', 'The Rolling Stones'),\n",
       " ('free as a bird', 'The Beatles'),\n",
       " ('cuttooth', 'Radiohead'),\n",
       " ('come and get it', 'The Beatles'),\n",
       " ('turd on the run', 'The Rolling Stones'),\n",
       " ('i cant be satisfied', 'The Rolling Stones'),\n",
       " ('time waits for no one', 'The Rolling Stones'),\n",
       " ('if you really want to be my friend', 'The Rolling Stones'),\n",
       " ('dandelion', 'The Rolling Stones'),\n",
       " ('swanee river', 'The Beatles'),\n",
       " ('tell me baby how many times', 'The Rolling Stones'),\n",
       " ('you know my name', 'The Beatles'),\n",
       " ('bright lights big city', 'The Rolling Stones'),\n",
       " ('beautiful delilah', 'The Rolling Stones'),\n",
       " ('when the saints go marchin in', 'The Beatles'),\n",
       " ('nobody does it better', 'Radiohead'),\n",
       " ('like dreamers do', 'The Beatles'),\n",
       " ('searchin', 'The Beatles'),\n",
       " ('thats alright mama', 'The Beatles'),\n",
       " ('crazy mama', 'The Rolling Stones'),\n",
       " ('good time women', 'The Rolling Stones'),\n",
       " ('keys to your love', 'The Rolling Stones'),\n",
       " ('whos driving your plane', 'The Rolling Stones'),\n",
       " ('drive my carthe wordwhat youre doing', 'The Beatles'),\n",
       " ('out of time', 'The Rolling Stones'),\n",
       " ('cops and robbers', 'The Rolling Stones'),\n",
       " ('pass the wine sophia loren', 'The Rolling Stones'),\n",
       " ('linda lu', 'The Rolling Stones'),\n",
       " ('from fluff to you', 'The Beatles'),\n",
       " ('surprise surprise', 'The Rolling Stones'),\n",
       " ('pantomime everywhere its christmas', 'The Beatles'),\n",
       " ('coke babies', 'Radiohead'),\n",
       " ('fog', 'Radiohead'),\n",
       " ('sgt peppers lonely hearts club band reprise', 'The Beatles'),\n",
       " ('if youve got trouble', 'The Beatles'),\n",
       " ('a shot of rhythm and blues', 'The Beatles'),\n",
       " ('looking tired', 'The Rolling Stones'),\n",
       " ('the amazing sounds of orgy', 'Radiohead'),\n",
       " ('sing this all together see what happens', 'The Rolling Stones')]"
      ]
     },
     "execution_count": 37,
     "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": 38,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('revolution', 'The Beatles'), ('revolution i', 'The Beatles')]"
      ]
     },
     "execution_count": 38,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "[t for t in genius_only if 'revolution' in t[0]]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 39,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[('revolution 1', 'The Beatles')]"
      ]
     },
     "execution_count": 39,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "[t for t in spotify_only if 'revolution' in t[0]]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "([], [('jumping jack flash', 'The Rolling Stones')])"
      ]
     },
     "execution_count": 40,
     "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": 42,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "i might be wrong live [('i might be wrong live', 'Radiohead')] []\n",
      "losing my touch [] [('losing my touch', 'The Rolling Stones')]\n",
      "burning bush [] [('burning bush', 'Radiohead')]\n",
      "just a rumour [] [('just a rumour', 'The Beatles')]\n",
      "eight days a week [('eight days a week', 'The Beatles'), ('eight days a week', 'The Beatles')] [('eight days a week', 'The Beatles')]\n",
      "little by little caribou rmx [('little by little caribou rmx', 'Radiohead')] []\n",
      "yesterdays papers [] [('yesterdays papers', 'The Rolling Stones')]\n",
      "con le mie lacrime [] [('con le mie lacrime', 'The Rolling Stones')]\n",
      "come on [] [('come on', 'The Rolling Stones')]\n",
      "fortune teller [] [('fortune teller', 'The Rolling Stones')]\n",
      "cinnamon girl [] [('cinnamon girl', 'Radiohead')]\n",
      "lewis mistreated [] [('lewis mistreated', 'Radiohead')]\n",
      "bright lights big city [] [('bright lights big city', 'The Rolling Stones')]\n",
      "johnny b goode [] [('johnny b goode', 'The Beatles')]\n",
      "give it up [] [('give it up', 'On A Friday')]\n",
      "crinsk dee night [] [('crinsk dee night', 'The Beatles')]\n",
      "hoochie coochie man [] [('hoochie coochie man', 'The Rolling Stones')]\n",
      "union city blue [] [('union city blue', 'Radiohead')]\n",
      "yesterday [('yesterday', 'The Beatles'), ('yesterday', 'The Beatles')] [('yesterday', 'Yusdrew'), ('yesterday', '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",
      "gnik nus [] [('gnik nus', 'The Beatles')]\n",
      "bullet proof i wish i was [('bullet proof i wish i was', 'Radiohead')] []\n",
      "child of nature [] [('child of nature', 'The Beatles')]\n",
      "dont stop [] [('dont stop', 'The Rolling Stones')]\n",
      "kansas city heyheyheyhey [('kansas city heyheyheyhey', 'The Beatles')] []\n",
      "dance [] [('dance', 'The Rolling Stones')]\n",
      "besame mucho [] [('besame mucho', 'The Beatles')]\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",
      "march of the meanies [('march of the meanies', 'George Martin')] []\n",
      "stupid girl [] [('stupid girl', 'The Rolling Stones')]\n",
      "child of the moon [] [('child of the moon', 'The Rolling Stones')]\n",
      "stoned [] [('stoned', 'The Rolling Stones')]\n",
      "good time women [] [('good time women', 'The Rolling Stones')]\n",
      "you can make it if you try [] [('you can make it if you try', 'The Rolling Stones')]\n",
      "christmas time is here again [] [('christmas time is here again', 'The Beatles')]\n",
      "everyone needs someone to hate [] [('everyone needs someone to hate', 'On A Friday')]\n",
      "its not easy [] [('its not easy', 'The Rolling Stones')]\n",
      "worried about you [('worried about you', 'The Rolling Stones'), ('worried about you', 'Bob Clearmountain')] [('worried about you', 'The Rolling Stones')]\n",
      "i promise [] [('i promise', 'Radiohead')]\n",
      "charlie watts introduction of marianne faithfull [] [('charlie watts introduction of marianne faithfull', 'The Rolling Stones')]\n",
      "out of time [] [('out of time', 'The Rolling Stones'), ('out of time', 'The Rolling Stones')]\n",
      "play with fire [] [('play with fire', 'The Rolling Stones')]\n",
      "the storm [] [('the storm', 'The Rolling Stones')]\n",
      "hiheel sneakers [] [('hiheel sneakers', 'The Rolling Stones')]\n",
      "ill wind [] [('ill wind', 'Radiohead')]\n",
      "walking through the sleepy city [] [('walking through the sleepy city', 'The Rolling Stones')]\n",
      "maquiladora [] [('maquiladora', 'Radiohead')]\n",
      "when the whip comes down [('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",
      "worrywort [] [('worrywort', 'Radiohead')]\n",
      "a moon shaped pool tracklist album cover [] [('a moon shaped pool tracklist album cover', 'Radiohead')]\n",
      "ill be on my way [] [('ill be on my way', 'The Beatles')]\n",
      "sure to fall in love with you [] [('sure to fall in love with you', 'The Beatles')]\n",
      "i wanna be your man [('i wanna be your man', 'The Beatles')] [('i wanna be your man', 'The Beatles'), ('i wanna be your man', 'The Rolling Stones')]\n",
      "glad all over [] [('glad all over', 'The Beatles')]\n",
      "goin home [] [('goin home', 'The Rolling Stones')]\n",
      "i am waiting [] [('i am waiting', 'The Rolling Stones')]\n",
      "high and dry [('high and dry', 'Radiohead')] [('high and dry', 'Radiohead'), ('high and dry', 'The Rolling Stones')]\n",
      "highway child [] [('highway child', 'The Rolling Stones')]\n",
      "sgt peppers lonely hearts club band band documentary multimedia [] [('sgt peppers lonely hearts club band band documentary multimedia', 'The Beatles')]\n",
      "gangsters maul [] [('gangsters maul', 'The Rolling Stones')]\n",
      "ooh my arms speech [] [('ooh my arms speech', 'The Beatles')]\n",
      "from us to you [] [('from us to you', 'The Beatles')]\n",
      "why [] [('why', 'The Beatles')]\n",
      "yellow submarine [('yellow submarine', 'The Beatles'), ('yellow submarine', 'The Beatles'), ('yellow submarine', 'The Beatles')] [('yellow submarine', 'The Beatles')]\n",
      "im gonna drive [] [('im gonna drive', 'The Rolling Stones')]\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",
      "nobodys child [] [('nobodys child', 'The Beatles')]\n",
      "sweet little sixteen [] [('sweet little sixteen', 'The Beatles'), ('sweet little sixteen', 'The Rolling Stones')]\n",
      "you better move on [] [('you better move on', 'The Rolling Stones')]\n",
      "paranoid android [('paranoid android', 'Radiohead')] [('paranoid android', 'Sia'), ('paranoid android', 'Radiohead')]\n",
      "keep your hands off my baby [] [('keep your hands off my baby', 'The Beatles')]\n",
      "eleanor rigbyjulia transition [] [('eleanor rigbyjulia transition', 'The Beatles')]\n",
      "dear wack [] [('dear wack', 'The Beatles')]\n",
      "fingerprint file [] [('fingerprint file', 'The Rolling Stones')]\n",
      "everything in its right place live in france [('everything in its right place live in france', 'Radiohead')] []\n",
      "mailman bring me no more blues [] [('mailman bring me no more blues', 'The Beatles')]\n",
      "till the next goodbye [] [('till the next goodbye', 'The Rolling Stones')]\n",
      "another beatles christmas record [] [('another beatles christmas record', 'The Beatles')]\n",
      "harlem shuffle [('harlem shuffle', 'The Rolling Stones'), ('harlem shuffle', 'The Rolling Stones')] [('harlem shuffle', 'The Rolling Stones')]\n",
      "that means a lot [] [('that means a lot', 'The Beatles')]\n",
      "tell me baby how many times [] [('tell me baby how many times', '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')]\n",
      "you know what to do [] [('you know what to do', 'The Beatles')]\n",
      "too rude [('too rude', 'The Rolling Stones'), ('too rude', 'The Rolling Stones')] [('too rude', 'The Rolling Stones')]\n",
      "drive my carthe wordwhat youre doing [] [('drive my carthe wordwhat youre doing', 'The Beatles')]\n",
      "everybody lies through their teeth [] [('everybody lies through their teeth', 'On A Friday')]\n",
      "ladytron [] [('ladytron', 'Radiohead')]\n",
      "open pick [] [('open pick', 'Radiohead')]\n",
      "i want none of this [] [('i want none of this', 'Radiohead')]\n",
      "whos been sleeping here [] [('whos been sleeping here', 'The Rolling Stones')]\n",
      "being for the benefit of mr kitei want you shes so heavyhelter skelter [] [('being for the benefit of mr kitei want you shes so heavyhelter skelter', 'The Beatles')]\n",
      "james bond theme [] [('james bond theme', 'The Beatles')]\n",
      "what to do [] [('what to do', 'The Rolling Stones')]\n",
      "ruby baby [] [('ruby baby', 'The Beatles')]\n",
      "still a fool [] [('still a fool', 'The Rolling Stones')]\n",
      "pedro the fisherman [] [('pedro the fisherman', 'The Beatles')]\n",
      "watching rainbows [] [('watching rainbows', 'The Beatles')]\n",
      "if you love me baby [] [('if you love me baby', 'The Beatles')]\n",
      "if you cant rock me [] [('if you cant rock me', 'The Rolling Stones')]\n",
      "bitches talkin [] [('bitches talkin', 'Frank Ocean')]\n",
      "fog [] [('fog', 'Radiohead')]\n",
      "strawberry fields forever take 7 edit piece [] [('strawberry fields forever take 7 edit piece', 'The Beatles')]\n",
      "fanny mae [] [('fanny mae', 'The Rolling Stones')]\n",
      "band introductions [('band introductions', 'The Rolling Stones')] []\n",
      "nothing touches me [] [('nothing touches me', 'Radiohead')]\n",
      "the national anthem live in france [('the national anthem live in france', 'Radiohead')] []\n",
      "bloom harmonic 313 rmx [('bloom harmonic 313 rmx', 'Radiohead')] []\n",
      "hey negrita [] [('hey negrita', 'The Rolling Stones')]\n",
      "give up the ghost thriller houseghost remix [('give up the ghost thriller houseghost remix', 'Radiohead')] []\n",
      "if you need me [] [('if you need me', 'The Rolling Stones')]\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "the daily mail [] [('the daily mail', 'Radiohead')]\n",
      "try a little harder [] [('try a little harder', 'The Rolling Stones')]\n",
      "bishops robes [] [('bishops robes', 'Radiohead')]\n",
      "casino boogie [] [('casino boogie', 'The Rolling Stones')]\n",
      "fool to cry [] [('fool to cry', 'The Rolling Stones')]\n",
      "outro [('outro', 'Jimi Hendrix')] []\n",
      "i will [('i will', 'The Beatles'), ('i will', 'Radiohead')] [('i will', 'Radiohead'), ('i will', 'The Beatles')]\n",
      "the fool on the hill demo [] [('the fool on the hill demo', 'The Beatles')]\n",
      "yes it is [] [('yes it is', 'The Beatles')]\n",
      "the butcher [] [('the butcher', 'Radiohead')]\n",
      "blood red wine [] [('blood red wine', 'The Rolling Stones')]\n",
      "youll be mine [] [('youll be mine', 'The Beatles')]\n",
      "luxury [] [('luxury', 'The Rolling Stones')]\n",
      "tell me youre coming back [] [('tell me youre coming back', '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",
      "start me up [('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",
      "dead flowers [('dead flowers', 'The Rolling Stones'), ('dead flowers', 'The Rolling Stones')] [('dead flowers', 'The Rolling Stones')]\n",
      "stuck out all alone [] [('stuck out all alone', 'The Rolling Stones')]\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",
      "can i get a witness [] [('can i get a witness', 'The Rolling Stones')]\n",
      "have you seen your mother baby standing in the shadow [] [('have you seen your mother baby standing in the shadow', 'The Rolling Stones')]\n",
      "cherry oh baby [] [('cherry oh baby', 'The Rolling Stones')]\n",
      "hear me lord harrison [] [('hear me lord harrison', 'The Beatles')]\n",
      "crushed pearl [] [('crushed pearl', 'The Rolling Stones')]\n",
      "criss cross man [] [('criss cross man', 'The Rolling Stones')]\n",
      "citadel [] [('citadel', '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')]\n",
      "wake up in the morning [] [('wake up in the morning', 'The Rolling Stones')]\n",
      "lets dance [] [('lets dance', 'The Beatles')]\n",
      "surprise surprise [] [('surprise surprise', 'The Rolling Stones')]\n",
      "have a banana speech [] [('have a banana speech', 'The Beatles')]\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",
      "all my loving [('all my loving', 'The Beatles'), ('all my loving', 'The Beatles')] [('all my loving', 'The Beatles')]\n",
      "goodbye girl [] [('goodbye girl', 'The Rolling Stones')]\n",
      "turd on the run [] [('turd on the run', 'The Rolling Stones')]\n",
      "codex illum sphere [('codex illum sphere', 'Radiohead')] []\n",
      "the amazing sounds of orgy [] [('the amazing sounds of orgy', 'Radiohead')]\n",
      "a shot of rhythm and blues [] [('a shot of rhythm and blues', 'The Beatles')]\n",
      "blue turns to grey [] [('blue turns to grey', 'The Rolling Stones')]\n",
      "faraway eyes [('faraway eyes', 'The Rolling Stones'), ('faraway eyes', 'The Rolling Stones')] []\n",
      "dandelion [] [('dandelion', 'The Rolling Stones')]\n",
      "down in the bottom [] [('down in the bottom', 'The Rolling Stones')]\n",
      "transatlantic drawl [] [('transatlantic drawl', 'Radiohead')]\n",
      "dollars cents [('dollars cents', 'Radiohead')] []\n",
      "i got to find my baby [] [('i got to find my baby', 'The Beatles')]\n",
      "mantua [] [('mantua', 'Radiohead')]\n",
      "being for the benefit of mr kite take 7 [] [('being for the benefit of mr kite take 7', 'The Beatles')]\n",
      "get back [('get back', 'Billy Preston'), ('get back', 'The Beatles')] [('get back', 'The Beatles')]\n",
      "all things must pass [] [('all things must pass', 'The Beatles')]\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",
      "slow down [] [('slow down', 'The Beatles')]\n",
      "crackin up [] [('crackin up', 'The Rolling Stones')]\n",
      "i just want to see his face [] [('i just want to see his face', 'The Rolling Stones')]\n",
      "down home girl [] [('down home girl', 'The Rolling Stones')]\n",
      "dont ever change [] [('dont ever change', 'The Beatles')]\n",
      "all together on the wireless machine [] [('all together on the wireless machine', 'The Beatles')]\n",
      "lift [] [('lift', 'Radiohead')]\n",
      "glass onion love remix [] [('glass onion love remix', 'The Beatles')]\n",
      "martin scorsese intro [('martin scorsese intro', 'The Rolling Stones')] []\n",
      "good times bad times [] [('good times bad times', 'The Rolling Stones')]\n",
      "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')]\n",
      "2 2 5 live at earls court [('2 2 5 live at earls court', 'Radiohead')] []\n",
      "separator four tet rmx [('separator four tet rmx', 'Radiohead')] []\n",
      "all down the line [('all down the line', 'The Rolling Stones'), ('all down the line', 'The Rolling Stones')] [('all down the line', 'The Rolling Stones')]\n",
      "baby whats wrong [] [('baby whats wrong', 'The Rolling Stones')]\n",
      "beautiful dreamer [] [('beautiful dreamer', 'The Beatles')]\n",
      "reelin and rockin [] [('reelin and rockin', 'The Rolling Stones')]\n",
      "looking tired [] [('looking tired', 'The Rolling Stones')]\n",
      "matchbox [] [('matchbox', 'The Beatles')]\n",
      "september in the rain [] [('september in the rain', 'The Beatles')]\n",
      "hound dog [] [('hound dog', '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')]\n",
      "downtown suzie [] [('downtown suzie', 'The Rolling Stones')]\n",
      "lend me your comb [] [('lend me your comb', 'The Beatles')]\n",
      "my bonnie english intro [] [('my bonnie english intro', 'The Beatles')]\n",
      "sing a song for you [] [('sing a song for you', 'Radiohead')]\n",
      "staircase [] [('staircase', 'Radiohead')]\n",
      "across the universe wildlife version [] [('across the universe wildlife version', 'The Beatles')]\n",
      "little ta [('little ta', 'The Rolling Stones'), ('little ta', 'The Rolling Stones')] []\n",
      "in another land [] [('in another land', 'The Rolling Stones')]\n",
      "the beatles 1968 christmas record [] [('the beatles 1968 christmas record', 'The Beatles')]\n",
      "lady jane [] [('lady jane', 'The Rolling Stones')]\n",
      "stray cat blues [] [('stray cat blues', 'The Rolling Stones')]\n",
      "bad to me [] [('bad to me', 'The Beatles')]\n",
      "soul survivor [] [('soul survivor', 'The Rolling Stones')]\n",
      "keith richards introduction of the who [] [('keith richards introduction of the who', 'The Rolling Stones')]\n",
      "bloom blawan rmx [('bloom blawan rmx', 'Radiohead')] []\n",
      "love [] [('love', 'The Beatles')]\n",
      "dont let me down [] [('dont let me down', 'The Beatles')]\n",
      "melatonin [] [('melatonin', 'Radiohead')]\n",
      "the harder they come [] [('the harder they come', 'The Rolling Stones')]\n",
      "someone else [] [('someone else', 'On A Friday')]\n",
      "pearly [] [('pearly', 'Radiohead')]\n",
      "no expectations [] [('no expectations', 'The Rolling Stones')]\n",
      "dont look back [] [('dont look back', 'The Rolling Stones')]\n",
      "lull [] [('lull', 'Radiohead')]\n",
      "million dollar question [] [('million dollar question', 'Radiohead')]\n",
      "gomper [] [('gomper', 'The Rolling Stones')]\n",
      "a picture of you [] [('a picture of you', 'The Beatles')]\n",
      "sympathy for the devil fatboy slim remix [] [('sympathy for the devil fatboy slim remix', 'The Rolling Stones')]\n",
      "revolution [] [('revolution', 'The Beatles')]\n",
      "what a shame [] [('what a shame', 'The Rolling Stones')]\n",
      "coming down again [] [('coming down again', 'The Rolling Stones')]\n",
      "fasttrack [] [('fasttrack', 'Radiohead')]\n",
      "cuttooth [] [('cuttooth', 'Radiohead')]\n",
      "morning bell live in oxford [('morning bell live in oxford', 'Radiohead')] []\n",
      "heavys pizza [] [('heavys pizza', 'Dallas Smart')]\n",
      "i forgot to remember to forget [] [('i forgot to remember to forget', 'The Beatles')]\n",
      "set fire to that lot [] [('set fire to that lot', 'The Beatles')]\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "good times [] [('good times', 'The Rolling Stones')]\n",
      "meeting in the aisle [] [('meeting in the aisle', 'Radiohead')]\n",
      "lozenge of love [] [('lozenge of love', 'Radiohead')]\n",
      "hitch hike [] [('hitch hike', 'The Rolling Stones')]\n",
      "to be a brilliant light [] [('to be a brilliant light', 'On A Friday')]\n",
      "separator anstam rmx [('separator anstam rmx', 'Radiohead')] []\n",
      "doo doo doo doo doo heartbreaker [] [('doo doo doo doo doo heartbreaker', 'The Rolling Stones')]\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')]\n",
      "medley kansas cityhey hey hey hey [] [('medley kansas cityhey hey hey hey', 'The Beatles')]\n",
      "bloom objekt rmx [('bloom objekt rmx', 'Radiohead')] []\n",
      "intro take the a train [('intro take the a train', 'Duke Ellington')] []\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",
      "how do you do it [] [('how do you do it', 'The Beatles')]\n",
      "soldier of love [] [('soldier of love', 'The Beatles')]\n",
      "wish i never met you [] [('wish i never met you', 'The Rolling Stones')]\n",
      "remyxomatosis cristian vogel rmx [('remyxomatosis cristian vogel rmx', 'Radiohead')] []\n",
      "bebopalula [] [('bebopalula', 'The Beatles')]\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",
      "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",
      "jazz piano song [] [('jazz piano song', 'The Beatles')]\n",
      "spectre [] [('spectre', 'Radiohead')]\n",
      "within you without youtomorrow never knows [] [('within you without youtomorrow never knows', 'The Beatles')]\n",
      "im free [('im free', 'The Rolling Stones'), ('im free', 'The Rolling Stones')] [('im free', 'The Rolling Stones')]\n",
      "things we said today [('things we said today', 'The Beatles'), ('things we said today', 'The Beatles')] [('things we said today', 'The Beatles')]\n",
      "nobody does it better [] [('nobody does it better', 'Radiohead')]\n",
      "country honk [] [('country honk', 'The Rolling Stones')]\n",
      "suzy parker [] [('suzy parker', 'The Beatles')]\n",
      "hide your love [] [('hide your love', 'The Rolling Stones')]\n",
      "charlies intro to little red rooster [('charlies intro to little red rooster', 'The Rolling Stones')] []\n",
      "honky tonk women [('honky tonk women', 'The Rolling Stones'), ('honky tonk women', 'Sheryl Crow'), ('honky tonk women', 'The Rolling Stones')] [('honky tonk women', 'The Rolling Stones')]\n",
      "here comes the sunthe inner light transition [] [('here comes the sunthe inner light transition', 'The Beatles')]\n",
      "dear doctor [] [('dear doctor', 'The Rolling Stones')]\n",
      "little t a [] [('little t a', 'The Rolling Stones')]\n",
      "title 5 [] [('title 5', 'The Rolling Stones')]\n",
      "saints when the saints go marching in [] [('saints when the saints go marching in', 'The Beatles')]\n",
      "happy song [] [('happy song', 'On A Friday')]\n",
      "neighbours [('neighbours', 'The Rolling Stones'), ('neighbours', 'Bob Clearmountain')] [('neighbours', 'The Rolling Stones')]\n",
      "wonderwall [] [('wonderwall', 'Radiohead')]\n",
      "i got the blues [] [('i got the blues', 'The Rolling Stones')]\n",
      "the new generation [] [('the new generation', 'Radiohead')]\n",
      "sleep tonight [('sleep tonight', 'The Rolling Stones'), ('sleep tonight', 'The Rolling Stones')] [('sleep tonight', 'The Rolling Stones')]\n",
      "like spinning plates live [('like spinning plates live', 'Radiohead')] []\n",
      "what is it that you say [] [('what is it that you say', 'On A Friday')]\n",
      "teddy boy [] [('teddy boy', 'The Beatles')]\n",
      "the beatles seventh christmas record [] [('the beatles seventh christmas record', 'The Beatles')]\n",
      "harry patch in memory of [] [('harry patch in memory of', 'Radiohead')]\n",
      "through the lonely nights [] [('through the lonely nights', 'The Rolling Stones')]\n",
      "pepperland laid waste [('pepperland laid waste', 'George Martin')] []\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",
      "look what youve done [] [('look what youve done', 'The Rolling Stones')]\n",
      "can you take me back [] [('can you take me back', 'The Beatles')]\n",
      "dirty work [('dirty work', 'The Rolling Stones'), ('dirty work', 'The Rolling Stones')] [('dirty work', 'The Rolling Stones')]\n",
      "heart of stone [] [('heart of stone', 'The Rolling Stones')]\n",
      "moonlight [] [('moonlight', 'The Beatles')]\n",
      "in spite of all the danger [] [('in spite of all the danger', 'The Beatles')]\n",
      "im down [] [('im down', 'The Beatles')]\n",
      "walking the dog [] [('walking the dog', 'The Rolling Stones')]\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",
      "mick jaggers and john lennons introduction of the dirty mac [] [('mick jaggers and john lennons introduction of the dirty mac', 'The Rolling Stones')]\n",
      "get off of my cloud [] [('get off of my cloud', 'The Rolling Stones')]\n",
      "coke babies [] [('coke babies', 'Radiohead')]\n",
      "ps i love you [('ps i love you', 'The Beatles')] [('ps i love you', 'The Beatles'), ('ps i love you', 'The Beatles')]\n",
      "stupid car [] [('stupid car', 'Radiohead')]\n",
      "nothin shakin but the leaves on the trees [] [('nothin shakin but the leaves on the trees', 'The Beatles')]\n",
      "strawberry fields forever take 1 [] [('strawberry fields forever take 1', 'The Beatles')]\n",
      "far away eyes [('far away eyes', 'The Rolling Stones'), ('far away eyes', 'The Rolling Stones')] [('far away eyes', 'The Rolling Stones')]\n",
      "were wastin time [] [('were wastin time', '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')]\n",
      "have a banana [] [('have a banana', 'The Beatles')]\n",
      "sea of time [('sea of time', 'George Martin')] []\n",
      "continental drift [('continental drift', 'The Rolling Stones'), ('continental drift', 'The Rolling Stones')] [('continental drift', 'The Rolling Stones')]\n",
      "its all over now [] [('its all over now', 'The Rolling Stones')]\n",
      "come together [('come together', 'The Beatles'), ('come together', 'The Beatles')] [('come together', 'The Beatles')]\n",
      "sway [] [('sway', 'The Rolling Stones')]\n",
      "somewhere [] [('somewhere', 'Ali brustofski')]\n",
      "penny lane [('penny lane', 'The Beatles'), ('penny lane', 'The Beatles')] [('penny lane', 'The Beatles')]\n",
      "beatles movie medley [] [('beatles movie medley', 'The Beatles')]\n",
      "the thief [] [('the thief', 'Radiohead')]\n",
      "mercy mercy [] [('mercy mercy', 'The Rolling Stones')]\n",
      "egyptian song [] [('egyptian song', 'Radiohead')]\n",
      "love of the loved [] [('love of the loved', 'The Beatles')]\n",
      "i just dont understand [] [('i just dont understand', 'The Beatles')]\n",
      "from fluff to you [] [('from fluff to you', 'The Beatles')]\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",
      "jumpin jack flash [('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",
      "gotta get away [] [('gotta get away', 'The Rolling Stones')]\n",
      "give peace a chance [] [('give peace a chance', 'The Beatles')]\n",
      "let it rock [] [('let it rock', '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')]\n",
      "falling in love again [] [('falling in love again', 'The Beatles')]\n",
      "let me go [('let me go', 'The Rolling Stones'), ('let me go', 'The Rolling Stones')] [('let me go', 'The Rolling Stones')]\n",
      "corinna [] [('corinna', 'The Rolling Stones')]\n",
      "dollars and cents [] [('dollars and cents', 'Radiohead')]\n",
      "lucille [] [('lucille', 'The Beatles')]\n",
      "jumping jack flash [('jumping jack flash', 'The Rolling Stones')] []\n",
      "you know my name look up the number [] [('you know my name look up the number', 'The Beatles')]\n",
      "the trickster [] [('the trickster', 'Radiohead')]\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",
      "shes a rainbow [] [('shes a rainbow', 'The Rolling Stones')]\n",
      "jiving sister fanny [] [('jiving sister fanny', 'The Rolling Stones')]\n",
      "im gonna sit right down and cry over you [] [('im gonna sit right down and cry over you', 'The Beatles')]\n",
      "paint it blacker [] [('paint it blacker', 'Plan B')]\n",
      "when the saints go marchin in [] [('when the saints go marchin in', 'The Beatles')]\n",
      "how can you be sure [] [('how can you be sure', 'Radiohead')]\n",
      "if you really want to be my friend [] [('if you really want to be my friend', 'The Rolling Stones')]\n",
      "sgt peppers lonely hearts club band reprise [] [('sgt peppers lonely hearts club band reprise', 'The Beatles')]\n",
      "dollars cents live [('dollars cents live', 'Radiohead')] []\n",
      "get back aka no pakistanis [] [('get back aka no pakistanis', 'The Beatles')]\n",
      "give up the ghost brokenchord rmx [('give up the ghost brokenchord rmx', 'Radiohead')] []\n",
      "each and every day of the year [] [('each and every day of the year', 'The Rolling Stones')]\n",
      "19th nervous breakdown [] [('19th nervous breakdown', 'The Rolling Stones')]\n",
      "true love waits live in oslo [('true love waits live in oslo', 'Radiohead')] []\n",
      "pay your dues [] [('pay your dues', 'The Rolling Stones')]\n",
      "you never wash up after yourself [] [('you never wash up after yourself', 'Radiohead')]\n",
      "all sold out [] [('all sold out', 'The Rolling Stones')]\n",
      "polyethylene parts 1 2 [] [('polyethylene parts 1 2', 'Radiohead')]\n",
      "love these goon shows [] [('love these goon shows', 'The Beatles')]\n",
      "around and around [] [('around and around', 'The Rolling Stones')]\n",
      "palo alto [] [('palo alto', 'Radiohead')]\n",
      "untogether [] [('untogether', 'Radiohead')]\n",
      "doom and gloom [] [('doom and gloom', 'The Rolling Stones')]\n",
      "the beatles third christmas record [] [('the beatles third christmas record', 'The Beatles')]\n",
      "she smiled sweetly [] [('she smiled sweetly', 'The Rolling Stones')]\n",
      "little queenie [] [('little queenie', 'The Rolling Stones')]\n",
      "because i know you love me so [] [('because i know you love me so', 'The Beatles')]\n",
      "we want the stones [] [('we want the stones', 'The Rolling Stones')]\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "sea of monsters [('sea of monsters', 'George Martin')] []\n",
      "3 [] [('3', 'The Rolling Stones')]\n",
      "linda lu [] [('linda lu', 'The Rolling Stones')]\n",
      "please go home [] [('please go home', 'The Rolling Stones')]\n",
      "tell me why ep [] [('tell me why ep', 'The Beatles')]\n",
      "fight [('fight', 'The Rolling Stones'), ('fight', 'The Rolling Stones')] [('fight', 'The Rolling Stones')]\n",
      "goodbye [] [('goodbye', 'The Beatles')]\n",
      "mr b [] [('mr b', 'Radiohead')]\n",
      "jerusalem [] [('jerusalem', 'On A Friday')]\n",
      "bye bye johnny [] [('bye bye johnny', 'The Rolling Stones')]\n",
      "india [] [('india', 'The Beatles')]\n",
      "eds scary song [] [('eds scary song', 'Radiohead')]\n",
      "beautiful delilah [] [('beautiful delilah', 'The Rolling Stones')]\n",
      "upside down [] [('upside down', 'Radiohead')]\n",
      "hello little girl [] [('hello little girl', 'The Beatles')]\n",
      "meet me in the bottom [] [('meet me in the bottom', 'The Rolling Stones')]\n",
      "feral lone rmx [('feral lone rmx', 'Radiohead')] []\n",
      "aint she sweet [] [('aint she sweet', 'The Beatles')]\n",
      "harlem shuffle ny mix [] [('harlem shuffle ny mix', 'The Rolling Stones')]\n",
      "blue suede shoes [] [('blue suede shoes', 'The Beatles')]\n",
      "road runner [] [('road runner', 'The Rolling Stones')]\n",
      "leave my kitten alone [] [('leave my kitten alone', 'The Beatles')]\n",
      "pantomime everywhere its christmas [] [('pantomime everywhere its christmas', 'The Beatles')]\n",
      "keys to your love [] [('keys to your love', 'The Rolling Stones')]\n",
      "lotus flower sbtrkt rmx [('lotus flower sbtrkt rmx', 'Radiohead')] []\n",
      "little red rooster [('little red rooster', 'The Rolling Stones'), ('little red rooster', 'The Rolling Stones')] [('little red rooster', 'The Rolling Stones')]\n",
      "complicated [] [('complicated', 'The Rolling Stones')]\n",
      "im not signifying [] [('im not signifying', 'The Rolling Stones')]\n",
      "sea of holes [('sea of holes', 'George Martin')] []\n",
      "ooh my arms [] [('ooh my arms', 'The Beatles')]\n",
      "cry to me [] [('cry to me', 'The Rolling Stones')]\n",
      "prodigal son [] [('prodigal son', 'The Rolling Stones')]\n",
      "everybody needs somebody to love finale [('everybody needs somebody to love finale', 'The Rolling Stones')] []\n",
      "stand by me [] [('stand by me', 'The Beatles')]\n",
      "please please me [('please please me', 'The Beatles')] [('please please me', 'The Beatles'), ('please please me', 'The Rolling Stones')]\n",
      "big ideas [] [('big ideas', 'Radiohead')]\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",
      "pepperland [('pepperland', 'George Martin')] []\n",
      "crying waiting hoping [] [('crying waiting hoping', 'The Beatles')]\n",
      "punchdrunk lovesick singalong [] [('punchdrunk lovesick singalong', 'Radiohead')]\n",
      "i dont know why aka dont know why i love you [] [('i dont know why aka dont know why i love you', 'The Rolling Stones')]\n",
      "when im sixtyfour [] [('when im sixtyfour', 'The Beatles')]\n",
      "a reminder [] [('a reminder', 'Radiohead')]\n",
      "come togetherdear prudence [] [('come togetherdear prudence', 'The Beatles')]\n",
      "four guys [] [('four guys', 'James Richards')]\n",
      "cops and robbers [] [('cops and robbers', 'The Rolling Stones')]\n",
      "you cant do that [('you cant do that', 'The Beatles'), ('you cant do that', 'The Beatles')] [('you cant do that', 'The Beatles')]\n",
      "blue moon of kentucky [] [('blue moon of kentucky', 'The Beatles')]\n",
      "andrews blues [] [('andrews blues', 'The Rolling Stones')]\n",
      "bloom jamie xx rework [('bloom jamie xx rework', 'Radiohead')] []\n",
      "how i made my millions [] [('how i made my millions', 'Radiohead')]\n",
      "john lennon vs bill oreilly [] [('john lennon vs bill oreilly', 'Nice Peter')]\n",
      "petrol gang [] [('petrol gang', 'The Rolling Stones')]\n",
      "swanee river [] [('swanee river', 'The Beatles')]\n",
      "cant get next to you [] [('cant get next to you', 'The Rolling Stones')]\n",
      "empty heart [] [('empty heart', 'The Rolling Stones')]\n",
      "let it loose [] [('let it loose', 'The Rolling Stones')]\n",
      "susie q [] [('susie q', 'The Rolling Stones')]\n",
      "so how come no one loves me [] [('so how come no one loves me', 'The Beatles')]\n",
      "no reply demo [] [('no reply demo', 'The Beatles')]\n",
      "babys in black [('babys in black', 'The Beatles'), ('babys in black', 'The Beatles')] [('babys in black', 'The Beatles')]\n",
      "if youve got trouble [] [('if youve got trouble', 'The Beatles')]\n",
      "anyway you look at it [] [('anyway you look at it', 'The Rolling Stones')]\n",
      "thank you girl [] [('thank you girl', 'The Beatles')]\n",
      "ladies and gentlemen the rolling stones [] [('ladies and gentlemen the rolling stones', 'The Rolling Stones')]\n",
      "you cant catch me [] [('you cant catch me', 'The Rolling Stones')]\n",
      "slipping away [('slipping away', 'The Rolling Stones'), ('slipping away', 'The Rolling Stones')] [('slipping away', 'The Rolling Stones')]\n",
      "morning mr magpie pearson sound scavenger rmx [('morning mr magpie pearson sound scavenger rmx', 'Radiohead')] []\n",
      "jigsaw puzzle [] [('jigsaw puzzle', 'The Rolling Stones')]\n",
      "congratulations [] [('congratulations', 'The Rolling Stones')]\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",
      "winter [] [('winter', 'The Rolling Stones')]\n",
      "whatd i say [] [('whatd i say', 'The Beatles')]\n",
      "bitch [] [('bitch', 'The Rolling Stones')]\n",
      "she said yeah [] [('she said yeah', 'The Rolling Stones')]\n",
      "komm gib mir deine hand [] [('komm gib mir deine hand', 'The Beatles')]\n",
      "i need you baby mona [] [('i need you baby mona', 'The Rolling Stones')]\n",
      "the fool on the hill take 4 [] [('the fool on the hill take 4', 'The Beatles')]\n",
      "memphis [] [('memphis', 'The Beatles')]\n",
      "searchin [] [('searchin', 'The Beatles')]\n",
      "thats alright mama [] [('thats alright mama', 'The Beatles')]\n",
      "confessin the blues [] [('confessin the blues', 'The Rolling Stones')]\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')]\n",
      "the lantern [] [('the lantern', 'The Rolling Stones')]\n",
      "follow me around [] [('follow me around', 'Radiohead')]\n",
      "dream baby [] [('dream baby', 'The Beatles')]\n",
      "talk show host [] [('talk show host', 'Radiohead')]\n",
      "it hurts me too [] [('it hurts me too', 'The Rolling Stones')]\n",
      "come and get it [] [('come and get it', 'The Beatles')]\n",
      "shake rattle and roll [] [('shake rattle and roll', 'The Beatles')]\n",
      "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')]\n",
      "ive been loving you too long [] [('ive been loving you too long', 'The Rolling Stones')]\n",
      "ventilator blues [] [('ventilator blues', 'The Rolling Stones')]\n",
      "this boy [] [('this boy', 'The Beatles')]\n",
      "out of control [('out of control', 'The Rolling Stones'), ('out of control', 'The Rolling Stones')] [('out of control', 'The Rolling Stones')]\n",
      "when im sixty four [('when im sixty four', 'The Beatles')] []\n",
      "respectable [('respectable', 'The Rolling Stones'), ('respectable', 'The Rolling Stones')] [('respectable', 'The Rolling Stones')]\n",
      "winning ugly [('winning ugly', 'The Rolling Stones'), ('winning ugly', 'The Rolling Stones')] [('winning ugly', 'The Rolling Stones')]\n",
      "the sheik of araby [] [('the sheik of araby', 'The Beatles')]\n",
      "poison ivy [] [('poison ivy', 'The Rolling Stones')]\n",
      "i just want to make love to you [] [('i just want to make love to you', 'The Rolling Stones')]\n",
      "kansas city [] [('kansas city', 'The Beatles')]\n",
      "honest i do [] [('honest i do', 'The Rolling Stones')]\n",
      "everything is turning to gold [] [('everything is turning to gold', 'The Rolling Stones')]\n",
      "jump on top of me [] [('jump on top of me', 'The Rolling Stones')]\n",
      "set fire to that lot speech [] [('set fire to that lot speech', 'The Beatles')]\n",
      "ride on baby [] [('ride on baby', 'The Rolling Stones')]\n",
      "2120 south michigan avenue [] [('2120 south michigan avenue', 'The Rolling Stones')]\n",
      "i want to know [] [('i want to know', 'On A Friday')]\n",
      "lonesome tears in my eyes [] [('lonesome tears in my eyes', 'The Beatles')]\n",
      "cook cook blues [] [('cook cook blues', 'The Rolling Stones')]\n",
      "money [] [('money', 'The Rolling Stones')]\n",
      "stranger in my arms [] [('stranger in my arms', 'The Beatles')]\n",
      "climbing up a bloody great hill [] [('climbing up a bloody great hill', 'Radiohead')]\n",
      "sleepy city [] [('sleepy city', 'The Rolling Stones')]\n",
      "lotus flower jacques greene rmx [('lotus flower jacques greene rmx', 'Radiohead')] []\n",
      "salt of the earth [] [('salt of the earth', 'The Rolling Stones')]\n",
      "cool calm and collected [] [('cool calm and collected', 'The Rolling Stones')]\n",
      "hello goodbye [('hello goodbye', 'The Beatles'), ('hello goodbye', 'The Beatles')] [('hello goodbye', 'The Beatles')]\n",
      "miss you dr dre remix 2002 [] [('miss you dr dre remix 2002', 'The Rolling Stones')]\n",
      "tumbling dice [('tumbling dice', 'The Rolling Stones'), ('tumbling dice', 'The Rolling Stones')] [('tumbling dice', 'The Rolling Stones')]\n",
      "just my imagination [('just my imagination', 'The Rolling Stones')] []\n",
      "everybody needs somebody to love [('everybody needs somebody to love', 'Solomon Burke'), ('everybody needs somebody to love', 'The Rolling Stones')] [('everybody needs somebody to love', 'The Rolling Stones')]\n",
      "stop breaking down [] [('stop breaking down', 'The Rolling Stones')]\n",
      "riding on a bus [] [('riding on a bus', 'The Beatles')]\n",
      "take good care of my baby [] [('take good care of my baby', 'The Beatles')]\n",
      "id much rather be with the boys [] [('id much rather be with the boys', 'The Rolling Stones')]\n",
      "its for you [] [('its for you', 'The Beatles')]\n",
      "wish you were here [] [('wish you were here', 'Radiohead')]\n",
      "little by little shed [('little by little shed', 'Radiohead')] []\n",
      "my girl [] [('my girl', 'The Rolling Stones')]\n",
      "memphis tennessee [] [('memphis tennessee', 'The Beatles'), ('memphis tennessee', 'The Rolling Stones')]\n",
      "moonlight mile [] [('moonlight mile', 'The Rolling Stones')]\n",
      "phillipa chicken [] [('phillipa chicken', 'Radiohead')]\n",
      "down in eastern australia [] [('down in eastern australia', 'The Beatles')]\n",
      "aint that loving you baby [] [('aint that loving you baby', 'The Rolling Stones')]\n",
      "final show [] [('final show', 'Beatles Candlestick Park Setlist')]\n",
      "words of love ep [] [('words of love ep', 'The Beatles')]\n",
      "sing this all together [] [('sing this all together', 'The Rolling Stones')]\n",
      "let it be [('let it be', 'The Beatles'), ('let it be', 'The Beatles')] [('let it be', 'The Beatles')]\n",
      "i cant be satisfied [] [('i cant be satisfied', 'The Rolling Stones')]\n",
      "time waits for no one [] [('time waits for no one', 'The Rolling Stones')]\n",
      "the rocky road to dublin [] [('the rocky road to dublin', 'The Chieftains')]\n",
      "fancyman blues [] [('fancyman blues', 'The Rolling Stones')]\n",
      "rain fall down william remix [] [('rain fall down william remix', 'The Rolling Stones')]\n",
      "sure to fall [] [('sure to fall', 'The Beatles')]\n",
      "i will los angeles version [('i will los angeles version', 'Radiohead')] []\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "sittin on a fence [] [('sittin on a fence', 'The Rolling Stones')]\n",
      "pass the wine sophia loren [] [('pass the wine sophia loren', 'The Rolling Stones')]\n",
      "grown up wrong [] [('grown up wrong', 'The Rolling Stones')]\n",
      "think [] [('think', 'The Rolling Stones')]\n",
      "idioteque live in oxford [('idioteque live in oxford', 'Radiohead')] []\n",
      "sour milk sea [] [('sour milk sea', 'The Beatles')]\n",
      "killer cars [] [('killer cars', 'Radiohead')]\n",
      "tell me [] [('tell me', 'The Rolling Stones')]\n",
      "sie liebt dich [] [('sie liebt dich', 'The Beatles')]\n",
      "movie medley [] [('movie medley', 'The Beatles')]\n",
      "one more try [] [('one more try', 'The Rolling Stones')]\n",
      "tkol altrice rmx [('tkol altrice rmx', 'Radiohead')] []\n",
      "mannish boy [] [('mannish boy', 'The Rolling Stones')]\n",
      "commonwealth [] [('commonwealth', 'The Beatles')]\n",
      "ceremony [] [('ceremony', 'Radiohead')]\n",
      "dance little sister [] [('dance little sister', 'The Rolling Stones')]\n",
      "i call your name [] [('i call your name', 'The Beatles')]\n",
      "sing this all together see what happens [] [('sing this all together see what happens', 'The Rolling Stones')]\n",
      "the happy rishikesh song [] [('the happy rishikesh song', 'The Beatles')]\n",
      "revolution 1 [('revolution 1', 'The Beatles')] []\n",
      "you gotta move [] [('you gotta move', 'The Rolling Stones')]\n",
      "fog again live [('fog again live', 'Radiohead')] []\n",
      "key to the highway [('key to the highway', 'The Rolling Stones'), ('key to the highway', 'The Rolling Stones')] []\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",
      "mothers little helper [] [('mothers little helper', 'The Rolling Stones')]\n",
      "one and one is two [] [('one and one is two', 'The Beatles')]\n",
      "permanent daylight [] [('permanent daylight', 'Radiohead')]\n",
      "parachute woman [] [('parachute woman', 'The Rolling Stones')]\n",
      "sympathy for the devil the neptunes remix [] [('sympathy for the devil the neptunes remix', 'The Rolling Stones')]\n",
      "drift away [] [('drift away', 'The Rolling Stones')]\n",
      "hand of fate [] [('hand of fate', 'The Rolling Stones')]\n",
      "100 years ago [] [('100 years ago', 'The Rolling Stones')]\n",
      "hold back [('hold back', 'The Rolling Stones'), ('hold back', 'The Rolling Stones')] [('hold back', 'The Rolling Stones')]\n",
      "saints [] [('saints', 'The Beatles')]\n",
      "angie [('angie', 'The Rolling Stones'), ('angie', 'The Rolling Stones'), ('angie', 'The Rolling Stones')] [('angie', 'The Rolling Stones')]\n",
      "doncha bother me [] [('doncha bother me', 'The Rolling Stones')]\n",
      "roll over beethoven [('roll over beethoven', 'The Beatles'), ('roll over beethoven', 'The Beatles')] [('roll over beethoven', 'The Beatles'), ('roll over beethoven', 'The Rolling Stones')]\n",
      "packt like sardines in a crushed tin box [('packt like sardines in a crushed tin box', 'Radiohead')] []\n",
      "hallelujah i love her so [] [('hallelujah i love her so', 'The Beatles')]\n",
      "young blood [] [('young blood', 'The Beatles')]\n",
      "aint too proud to beg [] [('aint too proud to beg', 'The Rolling Stones')]\n",
      "something [('something', 'The Beatles'), ('something', 'The Beatles')] [('something', 'The Beatles')]\n",
      "flight 505 [] [('flight 505', 'The Rolling Stones')]\n",
      "hey crawdaddy [] [('hey crawdaddy', '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')]\n",
      "midnight rambler [('midnight rambler', 'The Rolling Stones'), ('midnight rambler', 'The Rolling Stones')] [('midnight rambler', 'The Rolling Stones')]\n",
      "rhinestone cowboy [] [('rhinestone cowboy', 'Radiohead')]\n",
      "supercollider [] [('supercollider', 'Radiohead')]\n",
      "i think im going mad [] [('i think im going mad', 'The Rolling Stones')]\n",
      "whats the new mary jane [] [('whats the new mary jane', 'The Beatles')]\n",
      "carol [] [('carol', 'The Beatles'), ('carol', 'The Rolling Stones')]\n",
      "a little rhyme [] [('a little rhyme', 'The Beatles')]\n",
      "memo from turner [] [('memo from turner', 'The Rolling Stones')]\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",
      "rain [] [('rain', 'The Beatles')]\n",
      "my bonnie german intro [] [('my bonnie german intro', 'The Beatles')]\n",
      "yove got to hide your love away [] [('yove got to hide your love away', 'The Beatles')]\n",
      "manowar [] [('manowar', 'Radiohead')]\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')]\n",
      "diddley daddy [] [('diddley daddy', 'The Rolling Stones')]\n",
      "molasses [] [('molasses', 'Radiohead')]\n",
      "you know my name [] [('you know my name', 'The Beatles')]\n",
      "nothing from nothing [] [('nothing from nothing', 'The Rolling Stones')]\n",
      "so divine aladdin story [] [('so divine aladdin story', 'The Rolling Stones')]\n",
      "i cant help it [] [('i cant help it', 'The Rolling Stones')]\n",
      "keep strong [] [('keep strong', 'On A Friday')]\n",
      "some things just stick in your mind [] [('some things just stick in your mind', 'The Rolling Stones')]\n",
      "bad boy [] [('bad boy', 'The Beatles')]\n",
      "star star [] [('star star', 'The Rolling Stones')]\n",
      "pop is dead [] [('pop is dead', 'Radiohead')]\n",
      "on with the show [] [('on with the show', 'The Rolling Stones')]\n",
      "blackbirdyesterday [] [('blackbirdyesterday', 'The Beatles')]\n",
      "sha la la la la [] [('sha la la la la', 'The Beatles')]\n",
      "on the beach [] [('on the beach', 'Radiohead')]\n",
      "if you let me [] [('if you let me', 'The Rolling Stones')]\n",
      "help [('help', 'The Beatles'), ('help', 'The Beatles'), ('help', 'The Beatles')] [('help', 'The Beatles')]\n",
      "something with blue jay way transition [] [('something with blue jay way transition', 'The Beatles')]\n",
      "following the river [] [('following the river', 'The Rolling Stones')]\n",
      "i aint superstitious [] [('i aint superstitious', 'The Rolling Stones')]\n",
      "backstreet girl [] [('backstreet girl', 'The Rolling Stones')]\n",
      "if i was a dancer dance part 2 [] [('if i was a dancer dance part 2', 'The Rolling Stones')]\n",
      "sweet black angel [] [('sweet black angel', 'The Rolling Stones')]\n",
      "not guilty [] [('not guilty', 'The Beatles')]\n",
      "shake your hips [] [('shake your hips', 'The Rolling Stones')]\n",
      "i get a kick out of you [] [('i get a kick out of you', 'The Rolling Stones')]\n",
      "missing links bootleg [] [('missing links bootleg', 'Plan B')]\n",
      "thatll be the day [] [('thatll be the day', 'The Beatles')]\n",
      "step inside love los paranoias [] [('step inside love los paranoias', 'The Beatles')]\n",
      "silver train [] [('silver train', 'The Rolling Stones')]\n",
      "boys [('boys', 'The Beatles'), ('boys', 'The Beatles')] [('boys', 'The Beatles')]\n",
      "bloom mark pritchard rmx [('bloom mark pritchard rmx', 'Radiohead')] []\n",
      "john wesley harding [] [('john wesley harding', 'The Rolling Stones')]\n",
      "a punchup at a wedding [] [('a punchup at a wedding', 'Radiohead')]\n",
      "under the board walk [] [('under the board walk', 'The Rolling Stones')]\n",
      "inside my head [] [('inside my head', 'Radiohead')]\n",
      "to know her is to love her [] [('to know her is to love her', 'The Beatles')]\n",
      "rip it up medley [] [('rip it up medley', 'The Beatles')]\n",
      "good evening mrs magpie modeselektor rmx [('good evening mrs magpie modeselektor rmx', 'Radiohead')] []\n",
      "brown sugar [('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",
      "miss amanda jones [] [('miss amanda jones', 'The Rolling Stones')]\n",
      "ready teddy [] [('ready teddy', 'The Beatles')]\n",
      "morning mr magpie nathan fake rmx [('morning mr magpie nathan fake rmx', 'Radiohead')] []\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",
      "im talking about you [] [('im talking about you', 'The Beatles')]\n",
      "medley rip it up shake rattle and roll blue suede shoes [] [('medley rip it up shake rattle and roll blue suede shoes', 'The Beatles')]\n",
      "can you hear the music [] [('can you hear the music', 'The Rolling Stones')]\n",
      "what is that you say [] [('what is that you say', 'Radiohead')]\n",
      "sweet georgia brown [] [('sweet georgia brown', 'The Beatles')]\n",
      "gimme shelter [('gimme shelter', 'The Rolling Stones'), ('gimme shelter', 'The Rolling Stones'), ('gimme shelter', 'The Rolling Stones')] [('gimme shelter', 'The Rolling Stones')]\n",
      "jingle bells [] [('jingle bells', 'The Beatles')]\n",
      "im a king bee [] [('im a king bee', 'The Rolling Stones')]\n",
      "take it or leave it [] [('take it or leave it', 'The Rolling Stones')]\n",
      "long long while [] [('long long while', 'The Rolling Stones')]\n",
      "packt like sardines in a crushd tin box [] [('packt like sardines in a crushd tin box', 'Radiohead')]\n",
      "2000 light years from home [] [('2000 light years from home', 'The Rolling Stones')]\n",
      "being for the benefit of mr kite takes 1 2 [] [('being for the benefit of mr kite takes 1 2', 'The Beatles')]\n",
      "real love [] [('real love', 'The Beatles')]\n",
      "reminiscing [] [('reminiscing', 'The Beatles')]\n",
      "just a rumour speech [] [('just a rumour speech', 'The Beatles')]\n",
      "nothin shakin [] [('nothin shakin', 'The Beatles')]\n",
      "we love you [] [('we love you', 'The Rolling Stones')]\n",
      "one more shot [] [('one more shot', 'The Rolling Stones')]\n",
      "im coming up [] [('im coming up', 'On A Friday')]\n",
      "the beatles christmas record [] [('the beatles christmas record', 'The Beatles')]\n",
      "i want to be loved [] [('i want to be loved', 'The Rolling Stones')]\n",
      "my obsession [] [('my obsession', 'The Rolling Stones')]\n",
      "somebody else [] [('somebody else', 'Radiohead')]\n",
      "2000 man [] [('2000 man', 'The Rolling Stones')]\n",
      "ill get you [] [('ill get you', 'The Beatles')]\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "cry for a shadow [] [('cry for a shadow', 'The Beatles')]\n",
      "wicked child [] [('wicked child', 'Radiohead')]\n",
      "like dreamers do [] [('like dreamers do', 'The Beatles')]\n",
      "step inside love [] [('step inside love', 'The Beatles')]\n",
      "sad day [] [('sad day', 'The Rolling Stones')]\n",
      "talkin about you [] [('talkin about you', 'The Rolling Stones')]\n",
      "faithless the wonderboy [] [('faithless the wonderboy', 'Radiohead')]\n",
      "dancing with mr d [] [('dancing with mr d', 'The Rolling Stones')]\n",
      "im going down [] [('im going down', 'The Rolling Stones')]\n",
      "who am i [] [('who am i', 'The Rolling Stones')]\n",
      "untitled [('untitled', 'Radiohead')] []\n",
      "we are wasting time [] [('we are wasting time', 'The Rolling Stones')]\n",
      "moonlight bay [] [('moonlight bay', 'The Beatles')]\n",
      "eleanor rigby [('eleanor rigby', 'The Beatles'), ('eleanor rigby', 'The Beatles')] [('eleanor rigby', 'The Beatles')]\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",
      "some girls [('some girls', 'The Rolling Stones'), ('some girls', 'The Rolling Stones'), ('some girls', 'The Rolling Stones')] [('some girls', 'The Rolling Stones')]\n",
      "mona [] [('mona', 'The Rolling Stones')]\n",
      "the hippy hippy shake [] [('the hippy hippy shake', 'The Beatles')]\n",
      "baby please dont go [] [('baby please dont go', '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",
      "cocksucker blues [] [('cocksucker blues', 'The Rolling Stones')]\n",
      "junk [] [('junk', 'The Beatles')]\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",
      "mick jaggers introduction to jethro tull [] [('mick jaggers introduction to jethro tull', 'The Rolling Stones')]\n",
      "hot stuff [] [('hot stuff', 'The Rolling Stones')]\n",
      "my bonnie [] [('my bonnie', 'Tony Sheridan'), ('my bonnie', 'The Beatles')]\n",
      "these are my twisted words [] [('these are my twisted words', 'Radiohead')]\n",
      "whos driving your plane [] [('whos driving your plane', 'The Rolling Stones')]\n",
      "the singer not the song [] [('the singer not the song', 'The Rolling Stones')]\n",
      "da doo ron ron [] [('da doo ron ron', 'The Rolling Stones')]\n",
      "what goes on girl [] [('what goes on girl', 'The Beatles')]\n",
      "bullet proofi wish i was [] [('bullet proofi wish i was', 'Radiohead')]\n",
      "the under assistant west coast promotion man [] [('the under assistant west coast promotion man', 'The Rolling Stones')]\n",
      "yes i am [] [('yes i am', 'Radiohead')]\n",
      "some other guy [] [('some other guy', 'The Beatles')]\n",
      "sinking ship [] [('sinking ship', 'On A Friday')]\n",
      "mick jaggers introduction of rock roll circus [] [('mick jaggers introduction of rock roll circus', 'The Rolling Stones')]\n",
      "kid a tracklist album cover [] [('kid a tracklist album cover', 'Radiohead')]\n",
      "sister morphine [] [('sister morphine', 'The Rolling Stones')]\n",
      "oh baby we got a good thing goin [] [('oh baby we got a good thing goin', 'The Rolling Stones')]\n",
      "intro [] [('intro', 'The Rolling Stones')]\n",
      "the honeymoon song [] [('the honeymoon song', 'The Beatles')]\n",
      "plundered my soul [] [('plundered my soul', 'The Rolling Stones')]\n",
      "stealing my heart [] [('stealing my heart', 'The Rolling Stones')]\n",
      "old brown shoe [] [('old brown shoe', 'The Beatles')]\n",
      "clarabella [] [('clarabella', 'The Beatles')]\n",
      "i got a woman [] [('i got a woman', 'The Beatles')]\n",
      "1822 [] [('1822', 'The Beatles')]\n",
      "revolution i [] [('revolution i', 'The Beatles')]\n",
      "crazy mama [] [('crazy mama', 'The Rolling Stones')]\n",
      "cant be seen [('cant be seen', 'The Rolling Stones'), ('cant be seen', 'The Rolling Stones')] [('cant be seen', 'The Rolling Stones')]\n",
      "the inner light [] [('the inner light', 'The Beatles')]\n",
      "banana co [] [('banana co', 'Radiohead')]\n",
      "three cool cats [] [('three cool cats', 'The Beatles')]\n",
      "it should be you [] [('it should be you', 'The Rolling Stones')]\n",
      "travellin man [] [('travellin man', 'The Rolling Stones')]\n",
      "ooh my soul [] [('ooh my soul', 'The Beatles')]\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",
      "big boots [] [('big boots', 'Radiohead')]\n",
      "youve got a hold on me [] [('youve got a hold on me', 'The Beatles')]\n",
      "cut a hole [] [('cut a hole', 'Radiohead')]\n",
      "dont lie to me [] [('dont lie to me', 'The Rolling Stones')]\n",
      "skttrbrain four tet remix [('skttrbrain four tet remix', 'Radiohead')] []\n",
      "torn and frayed [] [('torn and frayed', 'The Rolling Stones')]\n",
      "too much monkey business [] [('too much monkey business', 'The Beatles')]\n",
      "a punch up at a wedding [('a punch up at a wedding', 'Radiohead')] []\n",
      "not fade away [('not fade away', 'The Rolling Stones'), ('not fade away', 'The Rolling Stones')] [('not fade away', 'The Rolling Stones')]\n",
      "wild horses [('wild horses', 'The Rolling Stones')] [('wild horses', 'Plan B'), ('wild horses', 'The Rolling Stones')]\n",
      "i froze up [] [('i froze up', 'Radiohead')]\n",
      "free as a bird [] [('free as a bird', 'The Beatles')]\n",
      "dizzy miss lizzy [('dizzy miss lizzy', 'The Beatles'), ('dizzy miss lizzy', 'The Beatles')] [('dizzy miss lizzy', 'The Beatles')]\n",
      "india rubber [] [('india rubber', 'Radiohead')]\n",
      "back to zero [('back to zero', 'The Rolling Stones'), ('back to zero', 'The Rolling Stones')] [('back to zero', 'The Rolling Stones')]\n",
      "little by little [('little by little', 'Radiohead')] [('little by little', 'Radiohead'), ('little by little', 'The Rolling Stones')]\n",
      "that girl belongs to yesterday [] [('that girl belongs to yesterday', 'The Rolling Stones')]\n",
      "ill wear it proudly [] [('ill wear it proudly', 'Radiohead')]\n",
      "summertime blues [] [('summertime blues', 'The Rolling Stones')]\n",
      "short and curlies [] [('short and curlies', 'The Rolling Stones')]\n",
      "family [] [('family', 'The Rolling Stones')]\n",
      "lies [('lies', 'The Rolling Stones'), ('lies', 'The Rolling Stones')] [('lies', 'The Rolling Stones')]\n",
      "beatle greetings [] [('beatle greetings', 'The Beatles')]\n",
      "dancing in the light [] [('dancing in the light', 'The Rolling Stones')]\n",
      "i dont know why [] [('i dont know why', 'The Rolling Stones')]\n",
      "she was hot [('she was hot', 'The Rolling Stones'), ('she was hot', 'The Rolling Stones')] [('she was hot', 'The Rolling Stones')]\n",
      "melody [] [('melody', '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",
      "shout [] [('shout', 'The Beatles')]\n",
      "ya ya [] [('ya ya', 'The Beatles')]\n",
      "memory motel [] [('memory motel', 'The Rolling Stones')]\n",
      "something happened to me yesterday [] [('something happened to me yesterday', 'The Rolling Stones')]\n",
      "intro excerpt from fanfare for the common man [] [('intro excerpt from fanfare for the common man', 'The Rolling Stones')]\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": 44,
   "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": 76,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "('sea of monsters', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 23 True\n",
      "('just my imagination', 'The Rolling Stones') ('out of control', 'The Rolling Stones') 12 True\n",
      "('jumping jack flash', 'The Rolling Stones') ('jumpin jack flash', 'The Rolling Stones') 1 True\n",
      "('pepperland laid waste', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 25 True\n",
      "('little ta', 'The Rolling Stones') ('little t a', 'The Rolling Stones') 1 False\n",
      "('kansas city heyheyheyhey', 'The Beatles') ('medley kansas cityhey hey hey hey', 'The Beatles') 11 False\n",
      "('bullet proof i wish i was', 'Radiohead') ('bullet proofi wish i was', 'Radiohead') 1 False\n",
      "('sea of holes', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 25 True\n",
      "('packt like sardines in a crushed tin box', 'Radiohead') ('packt like sardines in a crushd tin box', 'Radiohead') 1 False\n",
      "('codex illum sphere', 'Radiohead') ('the butcher', 'Radiohead') 12 False\n",
      "('outro', 'Jimi Hendrix') Missing 99999 False\n",
      "('pepperland', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 20 True\n",
      "('key to the highway', 'The Rolling Stones') ('thief in the night', 'The Rolling Stones') 10 True\n",
      "('march of the meanies', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 24 True\n",
      "('dollars cents', 'Radiohead') ('dollars and cents', 'Radiohead') 4 False\n",
      "('little by little shed', 'Radiohead') ('little by little', 'Radiohead') 5 True\n",
      "('sea of time', 'George Martin') ('yellow submarine in pepperland', 'George Martin') 25 True\n",
      "('faraway eyes', 'The Rolling Stones') ('far away eyes', 'The Rolling Stones') 1 True\n",
      "('i will los angeles version', 'Radiohead') ('wish you were here', 'Radiohead') 16 False\n",
      "('everybody needs somebody to love finale', 'The Rolling Stones') ('everybody needs somebody to love', 'The Rolling Stones') 7 True\n",
      "('a punch up at a wedding', 'Radiohead') ('a punchup at a wedding', 'Radiohead') 1 False\n",
      "('revolution 1', 'The Beatles') ('revolution 9', 'The Beatles') 1 True\n",
      "('untitled', 'Radiohead') ('untogether', 'Radiohead') 5 False\n",
      "('when im sixty four', 'The Beatles') ('when im sixtyfour', 'The Beatles') 1 False\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": 52,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "('charlies intro to little red rooster', 'The Rolling Stones') []\n",
      "('bloom jamie xx rework', 'Radiohead') []\n",
      "('sea of monsters', 'George Martin') []\n",
      "('just my imagination', 'The Rolling Stones') []\n",
      "('jumping jack flash', 'The Rolling Stones') [(('jumpin jack flash', 'The Rolling Stones'), 1)]\n",
      "('pepperland laid waste', 'George Martin') []\n",
      "('little ta', 'The Rolling Stones') [(('title 5', 'The Rolling Stones'), 4), (('little t a', 'The Rolling Stones'), 1), (('little rain', 'The Rolling Stones'), 3), (('little baby', 'The Rolling Stones'), 3)]\n",
      "('kansas city heyheyheyhey', 'The Beatles') []\n",
      "('bullet proof i wish i was', 'Radiohead') [(('bullet proofi wish i was', 'Radiohead'), 1)]\n",
      "('sea of holes', 'George Martin') []\n",
      "('packt like sardines in a crushed tin box', 'Radiohead') [(('packt like sardines in a crushd tin box', 'Radiohead'), 1)]\n",
      "('codex illum sphere', 'Radiohead') []\n",
      "('pepperland', 'George Martin') []\n",
      "('key to the highway', 'The Rolling Stones') []\n",
      "('march of the meanies', 'George Martin') []\n",
      "('band introductions', 'The Rolling Stones') []\n",
      "('dollars cents', 'Radiohead') [(('dollars and cents', 'Radiohead'), 4)]\n",
      "('little by little shed', 'Radiohead') []\n",
      "('sea of time', 'George Martin') []\n",
      "('faraway eyes', 'The Rolling Stones') [(('far away eyes', 'The Rolling Stones'), 1)]\n",
      "('i will los angeles version', 'Radiohead') []\n",
      "('everybody needs somebody to love finale', 'The Rolling Stones') []\n",
      "('a punch up at a wedding', 'Radiohead') [(('a punchup at a wedding', 'Radiohead'), 1)]\n",
      "('martin scorsese intro', 'The Rolling Stones') []\n",
      "('revolution 1', 'The Beatles') [(('revolution 9', 'The Beatles'), 1), (('revolution', 'The Beatles'), 2), (('revolution i', 'The Beatles'), 1)]\n",
      "('untitled', 'Radiohead') []\n",
      "('when im sixty four', 'The Beatles') [(('when im sixtyfour', 'The Beatles'), 1)]\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": 54,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>_id</th>\n",
       "      <th>artist_name</th>\n",
       "      <th>name</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>5XfJmldgWzrc1AIdbBaVZn</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Live At The Hollywood Bowl</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>5ju5Ouzan3QwXqQt1Tihbh</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>1 (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2pCqZLeavM2BMovJXsJEIV</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Let It Be (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2Pqkn9Dq2DFtdfkKAeqgMd</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Abbey Road (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>47bcKzmKgmMPHXNVOWpLiu</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Yellow Submarine (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>03Qh833fEdVT30Pfs93ea6</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>The Beatles (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>6P9yO0ukhOx3dvmhGKeYoC</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Magical Mystery Tour (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>1PULmKbHeOqlkIwcDMNwD4</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Sgt. Pepper's Lonely Hearts Club Band (Remaste...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0PYyrqs9NXtxPhf0CZkq2L</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Revolver (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>3OdI6e43crvyAHhaqpxSyz</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Rubber Soul (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>19K3IHYeVkUTjcBHGfbCOi</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Help! (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>7BgGBZndAvDlKOcwe5rscZ</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Beatles For Sale (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>71Mwd9tntFQYUk4k2DwA0D</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>A Hard Day's Night (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>1DBkJIEoeHrTX4WCBQGcCi</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>The King Of Limbs</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>3nkEsxmIX0zRNXGAexaHAn</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>With The Beatles (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>7gDXyW16byCQOgK965BRzn</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td>Please Please Me (Remastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>6vuykQgDLUCiZ7YggIpLM9</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>A Moon Shaped Pool</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>47xaqCsJcYFWqD1gwujl1T</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>TKOL RMX 1234567</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>7eyQXxuf2nGj9d2367Gi5f</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>In Rainbows</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>36lJLPoPPOKNFddTAcirnc</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>In Rainbows Disk 2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>6Eo5EkmdLvZrONzi046iC2</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>Com Lag: 2+2=5</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>1oW3v5Har9mvXnGk0x4fHm</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>Hail To the Thief</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>6svTt5o2lUgIrgYDKVmdnD</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>I Might Be Wrong</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>6V9YnBmFjWmXCBaUVRCVXP</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>Amnesiac</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>19RUXBFyM4PpmrLRdtqWbp</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>Kid A</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>7dxKtc08dYeRVHt3p9CZJn</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>OK Computer</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>500FEaUzn8lN9zWFyZG5C2</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>The Bends</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>6400dnyeDyD2mIFHfkwHXN</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td>Pablo Honey</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>4g9Jfls8z2nbQxj5PiXkiy</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Blue &amp; Lonesome</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>4fhWcu56Bbh5wALuTouFVW</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Havana Moon (Live)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>3PbRKFafwE7Of8e4dTee72</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Totally Stripped (Live)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>5eTqRwTGKPBUiUuN1rFaXD</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Live 1965: Music From Charlie Is My Darling (L...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>3CHu7qW160uqPZHW3TMZ1l</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Shine A Light</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>4FTHynKEtuP7eppERNfjyG</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>A Bigger Bang (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>50UGtgNA5bq1c0BDjPfmbD</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Live Licks</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35</th>\n",
       "      <td>0ZGddnvcVzHVHfE3WW1tV5</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Bridges To Babylon (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36</th>\n",
       "      <td>4M8Q1L9PZq0xK5tLUpO3jd</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Stripped</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>37</th>\n",
       "      <td>62ZT16LY1phGM0O8x5qW1z</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Voodoo Lounge (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>38</th>\n",
       "      <td>1W1UJulgICjFDyYIMUwRs7</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Flashpoint</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>25mfHGJNQkluvIqedXHSx3</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Steel Wheels (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>40</th>\n",
       "      <td>1TpcI1LEFVhBvDPSTMPGFG</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Dirty Work</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>41</th>\n",
       "      <td>1WSfNoPDPzgyKFN6OSYWUx</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Dirty Work (Remastered 2009)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>42</th>\n",
       "      <td>064eFGemsrDcMvgRZ0gqtw</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Undercover (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>43</th>\n",
       "      <td>0hxrNynMDh5QeyALlf1CdS</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Still Life</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>44</th>\n",
       "      <td>1YvnuYGlblQ5vLnOhaZzpn</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Tattoo You (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>45</th>\n",
       "      <td>2wZgoXS06wSdu9C0ZJOvlc</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Emotional Rescue (2009 Re-Mastered)</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>46</th>\n",
       "      <td>54sqbAXxR1jFfyXb1WvrHK</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Some Girls</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>47</th>\n",
       "      <td>6FjXxl9VLURGuubdXUn2J3</td>\n",
       "      <td>The Rolling Stones</td>\n",
       "      <td>Some Girls (Deluxe Version)</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "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",
       "30  3PbRKFafwE7Of8e4dTee72  The Rolling Stones   \n",
       "31  5eTqRwTGKPBUiUuN1rFaXD  The Rolling Stones   \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",
       "\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",
       "30                            Totally Stripped (Live)  \n",
       "31  Live 1965: Music From Charlie Is My Darling (L...  \n",
       "32                                      Shine A Light  \n",
       "33                   A Bigger Bang (2009 Re-Mastered)  \n",
       "34                                         Live Licks  \n",
       "35              Bridges To Babylon (2009 Re-Mastered)  \n",
       "36                                           Stripped  \n",
       "37                   Voodoo Lounge (2009 Re-Mastered)  \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)  "
      ]
     },
     "execution_count": 54,
     "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": 85,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<pymongo.results.UpdateResult at 0x7f4550282a88>"
      ]
     },
     "execution_count": 85,
     "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": 86,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(494, 554, 52)"
      ]
     },
     "execution_count": 86,
     "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<a name=\"copylyrics\"></a>\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": 87,
   "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<a name=\"sentimentanalysis\"></a>\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": 88,
   "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": 89,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "dict_keys(['track_number', 'time_signature', '_id', 'preview_url', 'sentiment', 'loudness', 'type', 'external_ids', 'uri', 'album_id', 'lyrics', 'lyrical_density', 'tempo', 'danceability', 'href', 'disc_number', 'available_markets', 'analysis_url', 'instrumentalness', 'artist_id', 'name', 'id', 'valence', 'external_urls', 'ctitle', 'track_href', 'duration_ms', 'artist_name', 'explicit', 'speechiness', 'artists', 'album', 'key', 'original_lyrics', 'popularity', 'acousticness', 'liveness', 'mode', 'energy'])"
      ]
     },
     "execution_count": 89,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tracks.find_one({'sentiment': {'$exists': True}}).keys()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 90,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'_id': '74tlMxJ8wF0sNp93GBEPdK',\n",
       " 'acousticness': 0.00352,\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/74tlMxJ8wF0sNp93GBEPdK',\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': 'honky tonk women',\n",
       " 'danceability': 0.367,\n",
       " 'disc_number': 1,\n",
       " 'duration_ms': 293773,\n",
       " 'energy': 0.962,\n",
       " 'explicit': False,\n",
       " 'external_ids': {'isrc': 'GBCBR1500392'},\n",
       " 'external_urls': {'spotify': 'https://open.spotify.com/track/74tlMxJ8wF0sNp93GBEPdK'},\n",
       " 'href': 'https://api.spotify.com/v1/tracks/74tlMxJ8wF0sNp93GBEPdK',\n",
       " 'id': '74tlMxJ8wF0sNp93GBEPdK',\n",
       " 'instrumentalness': 0.000172,\n",
       " 'key': 0,\n",
       " 'liveness': 0.962,\n",
       " 'loudness': -5.589,\n",
       " 'lyrical_density': 0.48336640875778236,\n",
       " 'lyrics': \"i met a gin-soaked barroom queen in memphis she tried to take me upstairs for a ride she had to heave me right across her shoulder cause i just can't seem to drink it off my mind it's the honky tonk women gimme, gimme, gimme the honky tonk blues i laid a divorcee in new york city i had to put up some kind of a fight the lady then she covered me with roses she blew my nose and then she blew my mind it's the honky tonk women gimme, gimme, gimme the honky tonk blues strollin' on the boulevards of paris naked as the day that i will die the sailors, they're so charming there in paris but i just don't seem to sail you off my mind it's the honky tonk women gimme, gimme, gimme the honky tonk blues\",\n",
       " 'mode': 1,\n",
       " 'name': 'Honky Tonk Women - Live',\n",
       " 'original_lyrics': \"\\n\\nI met a gin-soaked barroom queen in Memphis\\nShe tried to take me upstairs for a ride\\nShe had to heave me right across her shoulder\\nCause I just can't seem to drink it off my mind\\n\\nIt's the honky tonk women\\nGimme, gimme, gimme the honky tonk blues\\n\\nI laid a divorcee in New York City\\nI had to put up some kind of a fight\\nThe lady then she covered me with roses\\nShe blew my nose and then she blew my mind\\n\\nIt's the honky tonk women\\nGimme, gimme, gimme the honky tonk blues\\n\\nStrollin' on the boulevards of Paris\\nNaked as the day that I will die\\nThe sailors, they're so charming there in Paris\\nBut I just don't seem to sail you off my mind\\n\\nIt's the honky tonk women\\nGimme, gimme, gimme the honky tonk blues\\n\\n\",\n",
       " 'popularity': 19,\n",
       " 'preview_url': 'https://p.scdn.co/mp3-preview/671f51874a70b3f786fe38b452f2c0fa0e64356b?cid=null',\n",
       " 'sentiment': {'label': 'neutral',\n",
       "  'probability': {'neg': 0.6068924635372548,\n",
       "   'neutral': 0.6112522000410702,\n",
       "   'pos': 0.3931075364627452}},\n",
       " 'speechiness': 0.11,\n",
       " 'tempo': 114.303,\n",
       " 'time_signature': 4,\n",
       " 'track_href': 'https://api.spotify.com/v1/tracks/74tlMxJ8wF0sNp93GBEPdK',\n",
       " 'track_number': 2,\n",
       " 'type': 'audio_features',\n",
       " 'uri': 'spotify:track:74tlMxJ8wF0sNp93GBEPdK',\n",
       " 'valence': 0.426}"
      ]
     },
     "execution_count": 90,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tracks.find_one({'sentiment': {'$exists': True}})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 91,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "(606, 65)"
      ]
     },
     "execution_count": 91,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tracks.find({'sentiment': {'$exists': True}}).count(), tracks.find({'sentiment': {'$exists': False}}).count()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 92,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "8"
      ]
     },
     "execution_count": 92,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tracks.find({'sentiment': {'$exists': False}, 'lyrics': {'$exists': True}}).count()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 97,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>_id</th>\n",
       "      <th>artist_name</th>\n",
       "      <th>lyrics</th>\n",
       "      <th>name</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>47DgFAFnhfwoSko23P7pz5</td>\n",
       "      <td>George Martin</td>\n",
       "      <td></td>\n",
       "      <td>Yellow Submarine In Pepperland - Remastered 2009</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2z1p43SNSbeowzy8WdYHNk</td>\n",
       "      <td>The Beatles</td>\n",
       "      <td></td>\n",
       "      <td>Flying - Remastered 2009</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>3gKuywOm38axM8sJGq6Laq</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td></td>\n",
       "      <td>MK 1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2uYSbsxAMmK1awUl06T7ix</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td></td>\n",
       "      <td>MK 2</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>1q6X5sJSWQ2QnqvPghR0Kr</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td></td>\n",
       "      <td>I Am Citizen Insane</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>4blz5SBUxKbtDNwMWstGNG</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td></td>\n",
       "      <td>Where Bluebirds Fly</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>2zYrFer4QGSQkk5aUawfHB</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td></td>\n",
       "      <td>Hunting Bears</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>4DPQvbgSM0IdX4O3HOACwL</td>\n",
       "      <td>Radiohead</td>\n",
       "      <td></td>\n",
       "      <td>Treefingers</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "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 2009  \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": 97,
     "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": 99,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'_id': '47DgFAFnhfwoSko23P7pz5',\n",
       "  'artist_name': 'George Martin',\n",
       "  'lyrics': '',\n",
       "  'name': 'Yellow Submarine In Pepperland - Remastered 2009',\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": 99,
     "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": 101,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<pymongo.results.UpdateResult at 0x7f454b640bc8>"
      ]
     },
     "execution_count": 101,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "tracks.update_many({'lyrics': ''}, {'$unset': {'lyrics': ''}})"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 102,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style>\n",
       "    .dataframe thead tr:only-child th {\n",
       "        text-align: right;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: left;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: []\n",
       "Index: []"
      ]
     },
     "execution_count": 102,
     "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": 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
}