lenskit.data.load_amazon_ratings#

lenskit.data.load_amazon_ratings(*files)#

Load an Amazon ratings CSV file into a dataset. Files may be compressed by any compressor supported by xopen and PyArrow.

The era of data (2014, 2018, or 2023) is auto-detected from file content.

Parameters:

files (Path | str | PathLike[str]) – The source rating files. Each one will be appeded in turn to the loader.

Return type:

Dataset