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.

Stability:
Caller (see Stability Levels).
Parameters:

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

Returns:

The ratings, with columns user_id, item_id, rating, and timestamp.

Return type:

DataFrame