Collection.write_parquet#

Collection.write_parquet(directory: str | Path, **kwargs: Any) None[source]#

Write the members of this collection to parquet files in a directory.

This method writes one parquet file per member into the provided directory. Each parquet file is named <member>.parquet. No file is written for optional members which are not provided in the current collection.

Parameters:
  • directory – The directory the Parquet files should be written to. If the directory does not exist, it is created automatically, including all of its parents.

  • kwargs – Additional keyword arguments passed to polars.DataFrame.write_parquet(). metadata may only be provided if it is a dictionary.

Attention

This method suffers from the same limitations as serialize().