lenskit.data.load_movielens_df#

lenskit.data.load_movielens_df(path)#

Load the ratings from a MovieLens dataset as a raw data frame. The appropriate MovieLens format is detected based on the file contents.

Parameters:

path (str | Path) – The path to the dataset, either as an unpacked directory or a zip file.

Returns:

The ratings, with columns user, item, rating, and timestamp.

Return type:

DataFrame