to_parquet

DataFrame.to_parquet(fname, compression='snappy')[source]

Writes the underlying data into a newly created parquet file.

Args:
fname (str):

The name of the parquet file. The ending “.parquet” will be added automatically.

compression (str):

The compression format to use. Supported values are “brotli”, “gzip”, “lz4”, “snappy”, “zstd”