Utility Functions

Miscellaneous

Miscellaneous utility functions.

lenskit.util.read_df_detect(path)

Read a Pandas data frame, auto-detecting the file format based on filename suffix. The following file types are supported:

CSV
File has suffix .csv, read with :py:fun:`pandas.read_csv`.
Parquet
File has suffix .parquet, .parq, or .pq, read with :py:fun:`pandas.read_parquet`.