memoryfm.ScrobbleLog.to_parquet#

ScrobbleLog.to_parquet(meta_file, df_file)#

Write ScrobbleLog to canonical parquet.

The canonical parquet refers to a pair of files.

  • A JSON file : contains the ScrobbleLog meta

  • A parquet file : contains the ScrobbleLog DataFrame

Parameters:
meta_filePathLike or TextIOBase object

Path or file to save ScrobbleLog meta as a JSON string. The following types are accepted

  • A pathlib path, or

  • A string corresponding to a path, such as /home/username/Documents/filename, or

  • A TextIOBase object having a read() method.

df_filePathLike or TextIOBase object

Path or file to save ScrobbleLog DataFrame as a parquet file. The following types are accepted

  • A pathlib path, or

  • A string corresponding to a path, such as /home/username/Documents/filename, or

  • A TextIOBase object having a read() method.