{ "nbformat": 4, "nbformat_minor": 0, "metadata": { "colab": { "provenance": [], "authorship_tag": "ABX9TyMvVDTwZ/J6E04zLM5dccF4", "include_colab_link": true }, "kernelspec": { "name": "python3", "display_name": "Python 3" }, "language_info": { "name": "python" } }, "cells": [ { "cell_type": "markdown", "metadata": { "id": "view-in-github", "colab_type": "text" }, "source": [ "\"Open" ] }, { "cell_type": "markdown", "source": [ "# Exploratory Data Analysis of Track Related Data" ], "metadata": { "id": "BY66pxmrriMs" } }, { "cell_type": "markdown", "source": [ "## Authentication and Data Loading" ], "metadata": { "id": "Nc6yWqW8rpPT" } }, { "cell_type": "code", "source": [ "from pydrive.auth import GoogleAuth\n", "from pydrive.drive import GoogleDrive\n", "from google.colab import auth\n", "from oauth2client.client import GoogleCredentials\n", "import pandas as pd" ], "metadata": { "id": "ScHuOtT9rJco", "outputId": "90f4baaa-e304-459a-ea3c-b483e6604e8d", "colab": { "base_uri": "https://localhost:8080/" } }, "execution_count": 1, "outputs": [ { "output_type": "stream", "name": "stderr", "text": [ "WARNING:root:pydrive is deprecated and no longer maintained. We recommend that you migrate your projects to pydrive2, the maintained fork of pydrive\n" ] } ] }, { "cell_type": "code", "source": [ "\n", "auth.authenticate_user()\n", "gauth = GoogleAuth()\n", "gauth.credentials = GoogleCredentials.get_application_default()\n", "drive = GoogleDrive(gauth)" ], "metadata": { "id": "7fGcnanprW3D" }, "execution_count": 2, "outputs": [] }, { "cell_type": "code", "source": [ "million_song_glink = 'https://drive.google.com/file/d/1EL4vYhO4A0Cgm8akBgAfDrWOGvtF6Xvo/view?usp=sharing'\n", "million_song_name = 'million_songs.zip'" ], "metadata": { "id": "yvc3jk8xpqIX" }, "execution_count": 3, "outputs": [] }, { "cell_type": "code", "source": [ "user_preferences_glink = 'https://drive.google.com/file/d/1qo5Ruz7Nu_YC6iBaX3V3IGYuubSwAeJy/view?usp=drive_link'\n", "user_preferences_name = 'user_preferences.csv'" ], "metadata": { "id": "Dv7lHe9tgipI" }, "execution_count": 4, "outputs": [] }, { "cell_type": "code", "source": [ "def get_link_content(link, name):\n", " file_id = link.split('/')[-2]\n", " downloaded = drive.CreateFile({'id': file_id})\n", " downloaded.GetContentFile(name)" ], "metadata": { "id": "B2fe_0vosqAA" }, "execution_count": 5, "outputs": [] }, { "cell_type": "code", "source": [ "get_link_content(million_song_glink, million_song_name)" ], "metadata": { "id": "e977WXSKstXj" }, "execution_count": 6, "outputs": [] }, { "cell_type": "code", "source": [ "get_link_content(user_preferences_glink, user_preferences_name)" ], "metadata": { "id": "TATR8qyyhD8F" }, "execution_count": 7, "outputs": [] }, { "cell_type": "code", "source": [ "million_songs = pd.read_csv(million_song_name)\n", "user_preferences = pd.read_csv(user_preferences_name)" ], "metadata": { "id": "gu_LQ6Zvs1ZX" }, "execution_count": 8, "outputs": [] }, { "cell_type": "code", "source": [ "million_songs.head()" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 206 }, "id": "IFROmv5Ts7ua", "outputId": "5beae3d5-9d54-46a4-a994-64475d74a5e9" }, "execution_count": 9, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ " artist song link \\\n", "0 ABBA Ahe's My Kind Of Girl /a/abba/ahes+my+kind+of+girl_20598417.html \n", "1 ABBA Andante, Andante /a/abba/andante+andante_20002708.html \n", "2 ABBA As Good As New /a/abba/as+good+as+new_20003033.html \n", "3 ABBA Bang /a/abba/bang_20598415.html \n", "4 ABBA Bang-A-Boomerang /a/abba/bang+a+boomerang_20002668.html \n", "\n", " text \n", "0 Look at her face, it's a wonderful face \\r\\nA... \n", "1 Take it easy with me, please \\r\\nTouch me gen... \n", "2 I'll never know why I had to go \\r\\nWhy I had... \n", "3 Making somebody happy is a question of give an... \n", "4 Making somebody happy is a question of give an... " ], "text/html": [ "\n", "
\n", "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
artistsonglinktext
0ABBAAhe's My Kind Of Girl/a/abba/ahes+my+kind+of+girl_20598417.htmlLook at her face, it's a wonderful face \\r\\nA...
1ABBAAndante, Andante/a/abba/andante+andante_20002708.htmlTake it easy with me, please \\r\\nTouch me gen...
2ABBAAs Good As New/a/abba/as+good+as+new_20003033.htmlI'll never know why I had to go \\r\\nWhy I had...
3ABBABang/a/abba/bang_20598415.htmlMaking somebody happy is a question of give an...
4ABBABang-A-Boomerang/a/abba/bang+a+boomerang_20002668.htmlMaking somebody happy is a question of give an...
\n", "
\n", "
\n", "\n", "
\n", " \n", "\n", " \n", "\n", " \n", "
\n", "\n", "\n", "
\n", " \n", "\n", "\n", "\n", " \n", "
\n", "\n", "
\n", "
\n" ], "application/vnd.google.colaboratory.intrinsic+json": { "type": "dataframe", "variable_name": "million_songs", "summary": "{\n \"name\": \"million_songs\",\n \"rows\": 57650,\n \"fields\": [\n {\n \"column\": \"artist\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 643,\n \"samples\": [\n \"Ziggy Marley\",\n \"O.A.R.\",\n \"Styx\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"song\",\n \"properties\": {\n \"dtype\": \"string\",\n \"num_unique_values\": 44824,\n \"samples\": [\n \"Tear Me Down\",\n \"Lakky Lady\",\n \"They All Went To Mexico\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"link\",\n \"properties\": {\n \"dtype\": \"string\",\n \"num_unique_values\": 57650,\n \"samples\": [\n \"/w/wishbone+ash/right+or+wrong_20147150.html\",\n \"/a/aerosmith/this+little+light+of+mine_20644484.html\",\n \"/f/fall+out+boy/dance+dance_10113666.html\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"text\",\n \"properties\": {\n \"dtype\": \"string\",\n \"num_unique_values\": 57494,\n \"samples\": [\n \"When the grey skies turn to blue \\r\\nAnd the dark clouds blow away \\r\\nIn the morning of a new life \\r\\nWhen the sun comes shining through \\r\\nWhen the grey skies turn to blue \\r\\nIn the morning of a new life \\r\\nWhen the sun comes shining through \\r\\nWhen the grey skies turn to blue \\r\\nMeet me on a bright and windy day \\r\\nWhen the breeze has blown \\r\\nThe gray skies far away \\r\\nHigh upon a hillside \\r\\nWhen the sun comes shining through \\r\\nAnd the grey skies turn to blue \\r\\nWhen the grey skies turn to blue \\r\\nWhen the grey skies turn to blue \\r\\n\\r\\n\",\n \"I met a girl a wonderful girl \\r\\nWho's really got a lot to recommend her for a girl \\r\\nFabulous creature without any doubt \\r\\nHey what am I getting so excited about \\r\\nShe's just a girl an everyday girl \\r\\nAnd yet I guess she's really rather special for a girl \\r\\nFor once you've seen her the others are not \\r\\nHey what am I getting so excited about \\r\\nBut so what what has she got others have not \\r\\nTwo eyes two lips a nose all girls have some of those \\r\\nBut when she looks up at me what do I see \\r\\nThe most enchanting face my pulse begins to race \\r\\nHey I met a girl a marvelous girl \\r\\nShe rarer than uranium and fairer than a pearl \\r\\nFound me a treasure and I want to shout \\r\\nHey what am I getting so excited about \\r\\nBut so what what has she got others have not \\r\\nTwo eyes two lips a nose all girls have some of those \\r\\nBut when she looks up at me what do I see \\r\\nThe most enchanting face my pulse begins to race \\r\\n(I got a girl a marvelous girl) \\r\\n(She rarer than uranium and fairer than a pearl) \\r\\nFound me a treasure and I want to shout \\r\\nThis is what am I getting so excited about \\r\\n(He met a girl) and I fell in love today\\r\\n\\r\\n\",\n \"She's over by the corner \\r\\nGot her hands by her sides \\r\\nThey hit her harder harder harder \\r\\nTill they thought she might die \\r\\n \\r\\nWell I got a foggy notion, \\r\\nDo it again \\r\\nOver by the corner, \\r\\nDo it again \\r\\nI got my calamine lotion baby, \\r\\nDo it again \\r\\nI got a foggy notion, \\r\\nDo it again \\r\\n \\r\\nShe made me do something \\r\\nThat I never did before \\r\\nI rushed right down \\r\\nTo a flower store \\r\\nI bought her a bundle \\r\\nA beautiful batch \\r\\nDon't you know something, \\r\\nShe sent 'em right back \\r\\n \\r\\nSally Mae, Sally Mae, \\r\\nSally Mae, Sally Mae \\r\\nSally Mae, Sally Mae, \\r\\nSally Mae, Sally Mae\\r\\n\\r\\n\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}" } }, "metadata": {}, "execution_count": 9 } ] }, { "cell_type": "markdown", "source": [ "# Connecting User Preferences to the Million Song Dataset and LastFM API\n", "The user preferences dataset has a songID index which matches the index in the million song dataset, and also accesses new features from Last Fm such as:\n", "\n", "- listeners\n", "- playcount\n", "- tags (genres)\n" ], "metadata": { "id": "4NyKHfJwvZdB" } }, { "cell_type": "code", "source": [ "user_preferences = user_preferences.drop(['level_0'], axis=1)" ], "metadata": { "id": "rJ26n9g2hKIx" }, "execution_count": 10, "outputs": [] }, { "cell_type": "code", "source": [ "user_preferences.head()" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 293 }, "id": "sQ4TsOCnvEua", "outputId": "7a788493-9540-4515-f646-1d25e1a52ae9" }, "execution_count": 11, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ " songID artist song \\\n", "0 19632 Toto You Are The Flower \n", "1 19632 Toto You Are The Flower \n", "2 25284 Billie Holiday I Only Have Eyes For You \n", "3 43594 Michael Bolton Only A Woman Like You \n", "4 50200 Rascal Flatts The Day Before You \n", "\n", " link \\\n", "0 /t/toto/you+are+the+flower_20139737.html \n", "1 /t/toto/you+are+the+flower_20139737.html \n", "2 /b/billie+holiday/i+only+have+eyes+for+you_200... \n", "3 /m/michael+bolton/only+a+woman+like+you_101792... \n", "4 /r/rascal+flatts/the+day+before+you_10238985.html \n", "\n", " text userID listeners \\\n", "0 You never lose a minute, if in it there is lov... 0 25307 \n", "1 You never lose a minute, if in it there is lov... 0 25307 \n", "2 My love must be a kind of blind love, \\r\\nI c... 0 60356 \n", "3 It's beautiful, your honesty \\r\\nYou cry when... 0 4595 \n", "4 I had all but given up \\r\\nOn finding the one... 0 22077 \n", "\n", " playcount tags \n", "0 87344 AOR, rock, soft rock, 70s, pop rock \n", "1 87344 AOR, rock, soft rock, 70s, pop rock \n", "2 178625 jazz, female vocal, vocal jazz, blues, female ... \n", "3 13266 Ballad, romantic, soul, pop, cool \n", "4 86012 country, rock, contemporary country, seen live... " ], "text/html": [ "\n", "
\n", "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
songIDartistsonglinktextuserIDlistenersplaycounttags
019632TotoYou Are The Flower/t/toto/you+are+the+flower_20139737.htmlYou never lose a minute, if in it there is lov...02530787344AOR, rock, soft rock, 70s, pop rock
119632TotoYou Are The Flower/t/toto/you+are+the+flower_20139737.htmlYou never lose a minute, if in it there is lov...02530787344AOR, rock, soft rock, 70s, pop rock
225284Billie HolidayI Only Have Eyes For You/b/billie+holiday/i+only+have+eyes+for+you_200...My love must be a kind of blind love, \\r\\nI c...060356178625jazz, female vocal, vocal jazz, blues, female ...
343594Michael BoltonOnly A Woman Like You/m/michael+bolton/only+a+woman+like+you_101792...It's beautiful, your honesty \\r\\nYou cry when...0459513266Ballad, romantic, soul, pop, cool
450200Rascal FlattsThe Day Before You/r/rascal+flatts/the+day+before+you_10238985.htmlI had all but given up \\r\\nOn finding the one...02207786012country, rock, contemporary country, seen live...
\n", "
\n", "
\n", "\n", "
\n", " \n", "\n", " \n", "\n", " \n", "
\n", "\n", "\n", "
\n", " \n", "\n", "\n", "\n", " \n", "
\n", "\n", "
\n", "
\n" ], "application/vnd.google.colaboratory.intrinsic+json": { "type": "dataframe", "variable_name": "user_preferences", "summary": "{\n \"name\": \"user_preferences\",\n \"rows\": 7615,\n \"fields\": [\n {\n \"column\": \"songID\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 16791,\n \"min\": 3,\n \"max\": 57620,\n \"num_unique_values\": 3395,\n \"samples\": [\n 38212,\n 26983,\n 10318\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"artist\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 568,\n \"samples\": [\n \"Justin Bieber\",\n \"Roy Orbison\",\n \"Kinks\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"song\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 3184,\n \"samples\": [\n \"All N My Grill\",\n \"Love Is Blind\",\n \"Born To Make You Happy\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"link\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 3395,\n \"samples\": [\n \"/j/john+mellencamp/serious+business_20074559.html\",\n \"/c/cat+stevens/love+lives+in+the+sky_20826557.html\",\n \"/k/kenny+chesney/life+is+good_20077648.html\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"text\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 3392,\n \"samples\": [\n \"Am I leaving you tomorrow, \\r\\nI can't see \\r\\nIs this how it's going to be? \\r\\nIn the morning must I go, \\r\\nSo let's take a little time, \\r\\nSee what's on your mind \\r\\nIs there something I should know? \\r\\n \\r\\nI thought we went through all this yesterday \\r\\nYou said you were OK, \\r\\nYou just had to take it slow \\r\\nI'm tired of these little games you play, \\r\\nAre you here to stay \\r\\nIs there something I should know? \\r\\n \\r\\n[Chorus] \\r\\nIs there something I should know? \\r\\n \\r\\nI think everything we've seen, \\r\\nIt was just a dream \\r\\nHow did we get so low? \\r\\nTo leave it all behind would be obscene \\r\\nWhere's your self-esteem? \\r\\nIs there something I should know? \\r\\n \\r\\n[Chorus] \\r\\n \\r\\nWe can keep on talking, \\r\\nYou know I've got all night \\r\\nBut don't keep telling me, \\r\\nThat everything's all right \\r\\nIt's not all right. \\r\\n \\r\\nI'm leaving you tomorrow, \\r\\nCan't you see \\r\\nThis is how it's got to be, \\r\\nIn the morning I must go \\r\\nSo let's take a little time, \\r\\nSee what's on your mind \\r\\nIs there something I should know? \\r\\n \\r\\n[Chorus]\\r\\n\\r\\n\",\n \"You're talking to me from the back of my car \\r\\nAnd I can't get nothing right \\r\\nAnd then you wonder why stand at the bar \\r\\nDay and night \\r\\n \\r\\nI've had enough \\r\\nI can't put up with any more \\r\\nNo no no no no no no \\r\\nI've had enough \\r\\nI can't put up with any more \\r\\nNo no no no no no no \\r\\n \\r\\nYou stand behind me with a watch in your hand \\r\\nAnd I can't get nothing done \\r\\nWell, people tell me you're punctual man \\r\\nBut come on \\r\\n \\r\\nI've had enough \\r\\nI can't put up with any more \\r\\nNo no no no no no no \\r\\nI've had enough \\r\\nI can't put up with any more \\r\\nNo no no no no no no \\r\\n \\r\\nI earn the money and you take it away \\r\\nWhen I don't know where you're from \\r\\nI should be worried but they say \\r\\nIt'll pay for a bomb \\r\\n \\r\\nI've had enough \\r\\nI can't put up with any more \\r\\nNo no no no no no no \\r\\nI've had enough \\r\\nI can't put up with any more \\r\\nNo no no no no no no \\r\\n \\r\\nI've had enough \\r\\n \\r\\nBaby you know sometimes you get a little weary \\r\\nBut if it ever happens honey \\r\\nYou just come along to me \\r\\nBecause you know \\r\\n \\r\\nI've had enough \\r\\nI can't put up with any more \\r\\nNo no no no no no no \\r\\nI've had enough \\r\\nI can't put up with any more \\r\\nNo no no no no no no.\\r\\n\\r\\n\",\n \"Union Jack is back with a hole in his head \\r\\nHe's gettin' badly burned every time \\r\\nHe's laughin' at me and dancin' on my sneakers \\r\\nAnd his sixties songs are blowin' up my speakers \\r\\n \\r\\nI say you got no respect \\r\\nRespect for authority \\r\\nYou're just playing your dirty tricks \\r\\nAnd then come cryin' to me \\r\\n \\r\\n[Chorus] \\r\\nHit and run, hit and run \\r\\nIt's just a hit and run \\r\\nAnother hit and run \\r\\n \\r\\nThe bulldog lost his bite and his breath has gone bad \\r\\nAnd the whole damn world is really laughin' mad \\r\\n \\r\\n[Chorus] \\r\\n \\r\\nHit it!! \\r\\nOh bring it down \\r\\nOh you bring it down \\r\\n \\r\\nI say you ain't got no respect \\r\\nI say you ain't got no respect \\r\\nNo you ain't got no respect \\r\\nAnd you hit me when I'm down \\r\\n \\r\\nHit and run, hit and run \\r\\nIt's just another hit and run \\r\\nI said it's just another hit and run \\r\\n \\r\\nOh yeah, hit and run \\r\\nOh yeah, hit and run \\r\\nOh yeah, hit and run \\r\\nOh yeah, hit and run \\r\\nOh yeah, hit and run \\r\\nIt's just another hit and run \\r\\nHit and run\\r\\n\\r\\n\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"userID\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 2,\n \"min\": 0,\n \"max\": 9,\n \"num_unique_values\": 10,\n \"samples\": [\n 8,\n 1,\n 5\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"listeners\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 154517,\n \"min\": 0,\n \"max\": 2270686,\n \"num_unique_values\": 3010,\n \"samples\": [\n 6547,\n 33359,\n 409276\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"playcount\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 1173037,\n \"min\": 0,\n \"max\": 22996487,\n \"num_unique_values\": 3213,\n \"samples\": [\n 219016,\n 71959,\n 1165908\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"tags\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 2705,\n \"samples\": [\n \"Contemporary Gospel, Mellow, gospel, Kirk Franklin, Contemporary Gospel Tag\",\n \"singer-songwriter, own\",\n \"blues, classic rock, 60s, female vocalists, blues rock\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}" } }, "metadata": {}, "execution_count": 11 } ] }, { "cell_type": "code", "source": [ "user_preferences.shape" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/" }, "id": "4hOldSUkvMld", "outputId": "055dfcdc-0707-4059-a5fc-ebcca10cbbfa" }, "execution_count": 12, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ "(7615, 9)" ] }, "metadata": {}, "execution_count": 12 } ] }, { "cell_type": "markdown", "source": [ "# User Preferences\n", "\n", "We have user data for 10 synthetically generated users. It represents the user's preferences. It was created using by selection at random for each user the top n (random for each user, from 5-10) similar tracks to a randomly sampled song from a randomly sampled set of songs (songs_per_users is random for each user, between 50-100).\n", "\n", "For example, the amount of songs in a user's preference library is calculated by multiplying the top_n value by the songs_per_users value." ], "metadata": { "id": "5gKDsSGlswhv" } }, { "cell_type": "markdown", "source": [ "## Sample User Preferences" ], "metadata": { "id": "m9dxn7DPvsEH" } }, { "cell_type": "code", "source": [ "random_user = user_preferences.sample(n=1)['userID'].values[0]\n", "random_user_preferences = user_preferences[user_preferences['userID'] == random_user]" ], "metadata": { "id": "tmGMRqwbvu1U" }, "execution_count": 23, "outputs": [] }, { "cell_type": "code", "source": [ "random_user_preferences" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 580 }, "id": "AhepmD8_v8yI", "outputId": "ae317e74-c5b9-4abd-a1e5-dff306eb7f81" }, "execution_count": 24, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ " songID artist song \\\n", "2113 44397 The Monkees Zor And Zam \n", "2114 44397 The Monkees Zor And Zam \n", "2115 16877 Rainbow Man On The Silver Mountain \n", "2116 24846 Beautiful South Don't Fear The Reaper \n", "2117 10640 King Diamond The Puppet Master \n", "... ... ... ... \n", "2968 50017 Ramones I Love You \n", "2969 41978 LL Cool J The Breakthrough \n", "2970 57493 Young Jeezy Talk To Em \n", "2971 57513 Youngbloodz Just A Dream \n", "2972 54681 Usher If I Want To \n", "\n", " link \\\n", "2113 /m/monkees/zor+and+zam_10182944.html \n", "2114 /m/monkees/zor+and+zam_10182944.html \n", "2115 /r/rainbow/man+on+the+silver+mountain_20113626... \n", "2116 /b/beautiful+south/dont+fear+the+reaper_100269... \n", "2117 /k/king+diamond/the+puppet+master_20294667.html \n", "... ... \n", "2968 /r/ramones/i+love+you_20113831.html \n", "2969 /l/ll+cool+j/the+breakthrough_20081048.html \n", "2970 /y/young+jeezy/talk+to+em_20376883.html \n", "2971 /y/youngbloodz/just+a+dream_20148851.html \n", "2972 /u/usher/if+i+want+to_20142585.html \n", "\n", " text userID listeners \\\n", "2113 By Bill Chadwick and John Chadwick \\r\\nThe ki... 3 5284 \n", "2114 By Bill Chadwick and John Chadwick \\r\\nThe ki... 3 5284 \n", "2115 I'm a wheel, I'm a wheel \\r\\nI can roll, I ca... 3 282694 \n", "2116 All our times have come \\r\\nHere but now they... 3 13927 \n", "2117 Night time in Budapest \\r\\nSo many people are... 3 21814 \n", "... ... ... ... \n", "2968 When I look in your eyes I see words I can't d... 3 43083 \n", "2969 Knuckleheads spreadin' gossip all over town \\... 3 6312 \n", "2970 Like the person needs his soul \"uh huh, jeah\" ... 3 12812 \n", "2971 It ain't a thang in this world that's gonna kn... 3 1980 \n", "2972 [Usher] (JD) \\r\\nEvery time I look up \\r\\nI ... 3 44359 \n", "\n", " playcount tags \n", "2113 21293 rock, 1968, genre: psychedelic rock, genre: ps... \n", "2114 21293 rock, 1968, genre: psychedelic rock, genre: ps... \n", "2115 1515721 hard rock, classic rock, rock, Rainbow, heavy ... \n", "2116 45108 cover, covers, Mellow, pop, great cover \n", "2117 101564 heavy metal, horror metal, metal, Favorite Art... \n", "... ... ... \n", "2968 150614 punk rock, punk, cover, 90s, covers \n", "2969 14407 hip hop, test \n", "2970 43358 rap, Dirty South, southern rap \n", "2971 3010 brain2brain \n", "2972 128071 rnb, pop, sexy, Usher, jermaine dupri \n", "\n", "[860 rows x 9 columns]" ], "text/html": [ "\n", "
\n", "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
songIDartistsonglinktextuserIDlistenersplaycounttags
211344397The MonkeesZor And Zam/m/monkees/zor+and+zam_10182944.htmlBy Bill Chadwick and John Chadwick \\r\\nThe ki...3528421293rock, 1968, genre: psychedelic rock, genre: ps...
211444397The MonkeesZor And Zam/m/monkees/zor+and+zam_10182944.htmlBy Bill Chadwick and John Chadwick \\r\\nThe ki...3528421293rock, 1968, genre: psychedelic rock, genre: ps...
211516877RainbowMan On The Silver Mountain/r/rainbow/man+on+the+silver+mountain_20113626...I'm a wheel, I'm a wheel \\r\\nI can roll, I ca...32826941515721hard rock, classic rock, rock, Rainbow, heavy ...
211624846Beautiful SouthDon't Fear The Reaper/b/beautiful+south/dont+fear+the+reaper_100269...All our times have come \\r\\nHere but now they...31392745108cover, covers, Mellow, pop, great cover
211710640King DiamondThe Puppet Master/k/king+diamond/the+puppet+master_20294667.htmlNight time in Budapest \\r\\nSo many people are...321814101564heavy metal, horror metal, metal, Favorite Art...
..............................
296850017RamonesI Love You/r/ramones/i+love+you_20113831.htmlWhen I look in your eyes I see words I can't d...343083150614punk rock, punk, cover, 90s, covers
296941978LL Cool JThe Breakthrough/l/ll+cool+j/the+breakthrough_20081048.htmlKnuckleheads spreadin' gossip all over town \\...3631214407hip hop, test
297057493Young JeezyTalk To Em/y/young+jeezy/talk+to+em_20376883.htmlLike the person needs his soul \"uh huh, jeah\" ...31281243358rap, Dirty South, southern rap
297157513YoungbloodzJust A Dream/y/youngbloodz/just+a+dream_20148851.htmlIt ain't a thang in this world that's gonna kn...319803010brain2brain
297254681UsherIf I Want To/u/usher/if+i+want+to_20142585.html[Usher] (JD) \\r\\nEvery time I look up \\r\\nI ...344359128071rnb, pop, sexy, Usher, jermaine dupri
\n", "

860 rows × 9 columns

\n", "
\n", "
\n", "\n", "
\n", " \n", "\n", " \n", "\n", " \n", "
\n", "\n", "\n", "
\n", " \n", "\n", "\n", "\n", " \n", "
\n", "\n", "
\n", " \n", " \n", " \n", "
\n", "\n", "
\n", "
\n" ], "application/vnd.google.colaboratory.intrinsic+json": { "type": "dataframe", "variable_name": "random_user_preferences", "summary": "{\n \"name\": \"random_user_preferences\",\n \"rows\": 860,\n \"fields\": [\n {\n \"column\": \"songID\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 17110,\n \"min\": 10,\n \"max\": 57599,\n \"num_unique_values\": 687,\n \"samples\": [\n 47274,\n 17497,\n 33680\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"artist\",\n \"properties\": {\n \"dtype\": \"category\",\n \"num_unique_values\": 339,\n \"samples\": [\n \"Wilson Pickett\",\n \"Willie Nelson\",\n \"Moody Blues\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"song\",\n \"properties\": {\n \"dtype\": \"string\",\n \"num_unique_values\": 653,\n \"samples\": [\n \"Everybody's Got Something To Hide Except Me And My Monkey\",\n \"Never Let Go\",\n \"Let Me Know\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"link\",\n \"properties\": {\n \"dtype\": \"string\",\n \"num_unique_values\": 687,\n \"samples\": [\n \"/o/ozzy+osbourne/party+with+the+animals_20298771.html\",\n \"/r/reo+speedwagon/cant+get+you+out+of+my+heart_20115605.html\",\n \"/g/george+jones/best+friends_20821982.html\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"text\",\n \"properties\": {\n \"dtype\": \"string\",\n \"num_unique_values\": 687,\n \"samples\": [\n \"Into the night I've gotta go \\r\\nThat's when the juices start to flow \\r\\nEverything will be alright \\r\\n \\r\\nI might be blind but I can see \\r\\nI got the power inside of me \\r\\nEverything will be alright \\r\\n \\r\\nI'm never gonna crack under a witch's spell \\r\\nNever put her chain's on me \\r\\nI'm never gonna break it \\r\\nNo I'll never tell \\r\\nI know she'll never let me be \\r\\n \\r\\nParty, party with the animals \\r\\nParty, no dogs allowed \\r\\nParty, party with the animals \\r\\nParty, no dogs allowed no more \\r\\n \\r\\nI like it fast, I like it slow \\r\\nThere's no direction I couldn't go \\r\\nEverything will be alright \\r\\n \\r\\nI like it loud, I like it mean \\r\\nI got the thunder in my machine \\r\\nEverything will be alright \\r\\n \\r\\nDancing with disaster is a part of me \\r\\nI'm never gonna let it go \\r\\nDon't know what I'm after I'm deserting me \\r\\nThe secret that I'll never know\\r\\n\\r\\n\",\n \"[Chorus] \\r\\nCan't get you out of my heart, can't get you out of my soul \\r\\nWhen I get next to you, all I get is out of control \\r\\nCan't get you out of my head, I've memorized every word you ever said \\r\\nYou've been here from the start, can't get you out of my heart \\r\\n \\r\\nSometimes I feel like breakin' up with you \\r\\nI'm tired of bein' true, tired of bein' blue \\r\\nStill you're the one I give my best love to \\r\\nNo other girl would do the things to me you do, and I \\r\\n \\r\\n[Chorus] \\r\\n \\r\\nSometimes I think I might be better off free \\r\\nNo strings attached to me, yeah that's how it should be \\r\\nBut just about the time that I get goin' \\r\\nYou read me like a poem, you keep me comin' home, and I \\r\\n \\r\\n[Chorus] \\r\\n \\r\\nI look at you sometimes, I see the woman I love \\r\\nBut I can be so blind, the good times I sometimes lose sight of \\r\\n \\r\\n[Chorus: x3]\\r\\n\\r\\n\",\n \"I know you've been down just as far as a good man can go. \\r\\nAnd the hurtin's come easy but the healin's been slow. \\r\\nBut you're on your way to recovery and you're not alone. \\r\\n'Cause Nancy sure loves you and she's gonna take care of ol' Jones. \\r\\n \\r\\n[Chorus] \\r\\nSo cry on my shoulder and let's both get over the bad. \\r\\nLet's chalk it up to just one more bad memory we have. \\r\\nFriendship's the one thing that keeps love from driving us mad. \\r\\nSo cry on my shoulder, we're the best friends that we ever had. \\r\\n \\r\\nI heard you left Haggard, I knew by the words in his song. \\r\\nAnd you're wondering if you're right sittin' at home all alone. \\r\\nBut I know you still love him 'cause you're always there when he calls. \\r\\nAnd always remember that you're his favorite memory of all. \\r\\n \\r\\n[Chorus] \\r\\nSo cry on my shoulder and let's both get over the bad. \\r\\nLet's chalk it up to just one more bad memory we have. \\r\\nFriendship's the one thing that keeps love from driving us mad. \\r\\nSo cry on my shoulder, we're the best friends that we ever had...\\r\\n\\r\\n\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"userID\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 0,\n \"min\": 3,\n \"max\": 3,\n \"num_unique_values\": 1,\n \"samples\": [\n 3\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"listeners\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 176361,\n \"min\": 1,\n \"max\": 2123027,\n \"num_unique_values\": 661,\n \"samples\": [\n 97874\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"playcount\",\n \"properties\": {\n \"dtype\": \"number\",\n \"std\": 1335316,\n \"min\": 1,\n \"max\": 21237540,\n \"num_unique_values\": 678,\n \"samples\": [\n 609866\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n },\n {\n \"column\": \"tags\",\n \"properties\": {\n \"dtype\": \"string\",\n \"num_unique_values\": 567,\n \"samples\": [\n \"bluegrass, country, female, upbeat, banjo\"\n ],\n \"semantic_type\": \"\",\n \"description\": \"\"\n }\n }\n ]\n}" } }, "metadata": {}, "execution_count": 24 } ] }, { "cell_type": "markdown", "source": [ "## User Preferences: Artists" ], "metadata": { "id": "el3U_4o7uwmJ" } }, { "cell_type": "code", "source": [ "user_preferences.groupby(by=['artist']).count().mean(axis=1).hist()" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 448 }, "id": "jaAfcehsrPJS", "outputId": "0ac11fa1-3216-4212-edf0-afca8c2be44d" }, "execution_count": 25, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ "" ] }, "metadata": {}, "execution_count": 25 }, { "output_type": "display_data", "data": { "text/plain": [ "
" ], "image/png": "iVBORw0KGgoAAAANSUhEUgAAAigAAAGdCAYAAAA44ojeAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAnt0lEQVR4nO3df3DU9YH/8Vd+bBYCbNJAkyVHgqnaAgUkBxK2Oh6FkAAZ1JK5KUoRPQZGLnhCropYoQFqw3E9tToR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zZOp9MMGDDAvPbaayH7A4GAWbhwocnKyjJOp9OMHTvWHDlyJE6rtUtzc7N58sknTW5urunWrZv52te+Zn7wgx8Yn88XHEN+f/Ob3/ym3f/WTZ8+3RjTsazOnDljHnroIdOzZ0/jcrnMY489Zs6dOxeHo+n8Eoy56i0FAQAALNBln4MCAADsRUEBAADWoaAAAADrUFAAAIB1KCgAAMA6FBQAAGAdCgoAALAOBQUAAFiHggIAAKxDQQEAANahoAAAAOtQUAAAgHX+H+oO3scof89GAAAAAElFTkSuQmCC\n" }, "metadata": {} } ] }, { "cell_type": "markdown", "source": [ "In the above plot, we can see that a majority of artists make 0-20 appearances across all 10 users, on average. Some artists are outliers and appear up to 60 times!" ], "metadata": { "id": "q_AfVkFRuNbI" } }, { "cell_type": "code", "source": [ "user_preferences.groupby(by='songID').count().mean(axis=1).hist()" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 448 }, "id": "Zwk_1GvksZpq", "outputId": "4011e273-29f0-45b7-e060-fadd631e91f3" }, "execution_count": 26, "outputs": [ { "output_type": "execute_result", "data": { "text/plain": [ "" ] }, "metadata": {}, "execution_count": 26 }, { "output_type": "display_data", "data": { "text/plain": [ "
" ], "image/png": "iVBORw0KGgoAAAANSUhEUgAAAjAAAAGdCAYAAAAMm0nCAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjcuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/bCgiHAAAACXBIWXMAAA9hAAAPYQGoP6dpAAAq90lEQVR4nO3df3BU9b3/8VcIm4UImxgw2eQS0giV37+KEnZULkpIwFyuCH+IUsEWYeAmzoUo0PQiBPQ2bSzij0aYjj/wTsECd8RWYCBLEBANYFNz+aEywsVJHdhwC4VAgLAk+/2j35yyJkA2JHv4JM/HTMY9n/M557zPe06Gl+fsZiMCgUBAAAAABulgdwEAAAChIsAAAADjEGAAAIBxCDAAAMA4BBgAAGAcAgwAADAOAQYAABiHAAMAAIzT0e4CW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GDB0uSMjIy1L9/fz311FP6n//5H23btk2LFi1Sdna2dQdl9uzZ+t///V8tWLBAX3/9td58802tX79e8+bNa+HTBwAAJgopwKxcuVLnzp3T6NGjlZiYaP2sW7dOkhQVFaXt27crIyNDffv21XPPPafJkyfro48+svYRGRmpTZs2KTIyUh6PRz/+8Y81bdo0LVu2zJqTmpqqzZs3y+v1asiQIVq+fLneeustPkINAAAkhfgemEDgxh8fTk5O1q5du266n5SUlJt+Kmb06NH64osvQikPAAC0E3wXEgAAMA4BBgAAGIcAAwAAjEOAAQAAxiHAAAAA4xBgAACAcQgwAADAOAQYAABgHAIMAAAwDgEGAAAYhwADAACMQ4ABAADGIcAAAADjEGAAAIBxCDAAAMA4BBgAAGAcAgwAADAOAQYAABiHAAMAAIxDgAEAAMYhwAAAAOMQYAAAgHEIMAAAwDgEGAAAYBwCDAAAMA4BBgAAGIcAAwAAjEOAAQAAxiHAAAAA4xBgAACAcQgwAADAOAQYAABgHAIMAAAwDgEGAAAYhwADAACMQ4ABAADGIcAAAADjEGAAAIBxCDAAAMA4BBgAAGAcAgwAADAOAQYAABiHAAMAAIxDgAEAAMYhwAAAAOMQYAAAgHEIMAAAwDgEGAAAYBwCDAAAME5IAaagoED33Xefunbtqvj4eE2cOFFHjhwJmnP58mVlZ2erW7du6tKliyZPnqzKysqgORUVFcrKylJ0dLTi4+M1f/58Xb16NWjOzp079aMf/UhOp1O9e/fW6tWrm3eGAACgzQkpwOzatUvZ2dnau3evvF6v/H6/MjIyVF1dbc2ZN2+ePvroI23YsEG7du3SiRMnNGnSJGt9bW2tsrKydOXKFX322Wd67733tHr1ai1evNiac/z4cWVlZemhhx5SeXm55s6dq2eeeUbbtm1rgVMGAACm6xjK5K1btwYtr169WvHx8SorK9OoUaN07tw5vf3221q7dq0efvhhSdK7776rfv36ae/evRo5cqSKi4v15Zdfavv27UpISNDQoUP14osvauHChcrPz1dUVJRWrVql1NRULV++XJLUr18/7dmzRytWrFBmZmYLnToAADBVSAHm+86dO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DAAAMA4/w//edUI9qW68wAAAABJRU5ErkJggg==\n" }, "metadata": {} } ] }, { "cell_type": "markdown", "source": [ "## User Preferences: Top Artists\n", "\n", "Songs are not as commonly distributed across users as artists. This makes sense as artist's tend to have multiple songs and albums, whereas songs are unique to a single artist, so it's less likely users have songs in common - but they may have artists in common.\n", "\n", "**Our neural network model can be evaluated based on whether the song recommendations it makes perform well when using top-k categorical classification accuracy along the user preferences.**" ], "metadata": { "id": "uH3XD1W7u0B-" } }, { "cell_type": "code", "source": [ "# lets visualize the top 10 artist across all userIDs\n", "for user in user_preferences.groupby(by='userID'):\n", " print('User: ', user[0])\n", " print('###############')\n", " display(user_preferences[user_preferences['userID'] == user[0]].groupby(by=['artist']).count().mean(axis=1).sort_values(ascending=False).head(10))\n", " print('###############')" ], "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 1000 }, "id": "9_9rdgxlulMc", "outputId": "da951fae-d4de-4b0a-c31d-e77aaf498a05" }, "execution_count": 27, "outputs": [ { "output_type": "stream", "name": "stdout", "text": [ "User: 0\n", "###############\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "artist\n", "Diana Ross 11.000\n", "Kenny Rogers 8.875\n", "One Direction 8.750\n", "Backstreet Boys 8.000\n", "Glee 7.875\n", "Demi Lovato 7.000\n", "Michael Bolton 6.875\n", "Chuck Berry 6.750\n", "Keith Urban 6.000\n", "Kirk Franklin 6.000\n", "dtype: float64" ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", "text": [ "###############\n", "User: 1\n", "###############\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "artist\n", "Backstreet Boys 11.000\n", "Luther Vandross 7.000\n", "Kinks 6.875\n", "Diana Ross 6.875\n", "Reba Mcentire 6.750\n", "Linda Ronstadt 6.750\n", "Natalie Imbruglia 6.000\n", "The Beatles 6.000\n", "Michael Bolton 5.875\n", "Insane Clown Posse 5.875\n", "dtype: float64" ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", "text": [ "###############\n", "User: 2\n", "###############\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "artist\n", "Luther Vandross 13.000\n", "Mariah Carey 12.625\n", "Backstreet Boys 10.750\n", "One Direction 9.000\n", "Michael Jackson 9.000\n", "Travis 7.000\n", "Donna Summer 7.000\n", "Phil Collins 6.875\n", "Z-Ro 6.750\n", "The Monkees 6.750\n", "dtype: float64" ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", "text": [ "###############\n", "User: 3\n", "###############\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "artist\n", "Luther Vandross 17.000\n", "Modern Talking 10.000\n", "Cheap Trick 9.750\n", "Justin Bieber 9.750\n", "Scorpions 9.000\n", "The Temptations 8.875\n", "Michael Bolton 8.000\n", "The Beatles 7.875\n", "Def Leppard 7.750\n", "Backstreet Boys 7.000\n", "dtype: float64" ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", "text": [ "###############\n", "User: 4\n", "###############\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "artist\n", "Backstreet Boys 10.875\n", "Diana Ross 10.750\n", "Mariah Carey 10.000\n", "Foreigner 9.000\n", "Michael Bolton 8.875\n", "Cher 8.000\n", "Luther Vandross 7.875\n", "Reba Mcentire 7.750\n", "The Beatles 7.000\n", "Isley Brothers 7.000\n", "dtype: float64" ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", "text": [ "###############\n", "User: 5\n", "###############\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "artist\n", "Scorpions 12.000\n", "Luther Vandross 11.750\n", "Backstreet Boys 11.500\n", "The Beatles 9.875\n", "Wiz Khalifa 8.500\n", "Michael Jackson 8.000\n", "George Michael 7.750\n", "Linda Ronstadt 7.625\n", "Rihanna 7.500\n", "Foreigner 7.000\n", "dtype: float64" ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", "text": [ "###############\n", "User: 6\n", "###############\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "artist\n", "Luther Vandross 13.000\n", "Bonnie Raitt 9.875\n", "Backstreet Boys 8.875\n", "Whitesnake 6.000\n", "Foreigner 6.000\n", "Michael Jackson 5.875\n", "Queen 5.000\n", "Kenny Rogers 4.750\n", "Cher 4.750\n", "Glen Campbell 4.750\n", "dtype: float64" ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", "text": [ "###############\n", "User: 7\n", "###############\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "artist\n", "Luther Vandross 15.000\n", "Backstreet Boys 15.000\n", "Reba Mcentire 9.375\n", "Prince 9.000\n", "Cher 9.000\n", "Xscape 9.000\n", "Natalie Cole 9.000\n", "Michael Bolton 8.750\n", "Michael Jackson 8.750\n", "Alison Krauss 8.000\n", "dtype: float64" ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", "text": [ "###############\n", "User: 8\n", "###############\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "artist\n", "Luther Vandross 13.500\n", "Backstreet Boys 12.875\n", "Diana Ross 11.375\n", "R. Kelly 9.625\n", "Reba Mcentire 8.750\n", "Michael Jackson 8.500\n", "Bonnie Raitt 8.000\n", "Usher 7.875\n", "The Monkees 7.875\n", "Lionel Richie 7.875\n", "dtype: float64" ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", "text": [ "###############\n", "User: 9\n", "###############\n" ] }, { "output_type": "display_data", "data": { "text/plain": [ "artist\n", "Diana Ross 11.625\n", "Linda Ronstadt 11.375\n", "Luther Vandross 11.000\n", "Hillsong 10.875\n", "Rihanna 10.750\n", "Backstreet Boys 8.875\n", "Chris Brown 8.875\n", "Keith Urban 8.000\n", "Glee 7.625\n", "Jackson Browne 7.000\n", "dtype: float64" ] }, "metadata": {} }, { "output_type": "stream", "name": "stdout", "text": [ "###############\n" ] } ] }, { "cell_type": "code", "source": [], "metadata": { "id": "Mg6oR8l5w5sU" }, "execution_count": null, "outputs": [] } ] }