Viewing the MovieLens Data
Familiarize yourself with the ratings
dataset provided here. Would you consider the data to be implicit or explicit ratings?
This exercise is part of the course
Building Recommendation Engines with PySpark
Exercise instructions
- Look at the
.columns
of theratings
dataframe. - Look at the first few rows of
ratings
dataframe using the.show()
method.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Look at the column names
print(ratings.____)
# Look at the first few rows of data
print(ratings.____())