Created
October 26, 2020 15:07
-
-
Save naiborhujosua/98239a077412239a7aad24e997b7da07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Look at the data | |
msd.show() | |
# Count the number of distinct userIds | |
user_count = msd.select("userId").distinct().count() | |
print("Number of users: ", user_count) | |
# Count the number of distinct songIds | |
song_count = msd.select("songId").distinct().count() | |
print("Number of songs: ", song_count) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let's get familiar with the Million Songs Echo Nest Taste Profile data subset. For purposes of this course, we'll just call it the Million Songs dataset or msd. Let's get the number of users and the number of songs. Let's also see which songs have the most plays from this subset.