All docs
Table·
method
Table.write_parquet
writes the table to a parquet file
Python
write_parquet(path, compression: str = "snappy")
Returns path — the path that was written (so you can chain)
Parameters#
| name | type | default | description |
|---|---|---|---|
path |
str | Path |
— | destination file path |
compression |
str |
"snappy" |
Parquet codec, e.g. "snappy", "zstd", "gzip", "none" |
Example#
Python
t.write_parquet("out.parquet")
Pick a stronger codec:
Python
t.write_parquet("out.parquet", compression="zstd")
Notes#
Returns the path it wrote, so it composes at the end of a pipeline. compression
defaults to "snappy".
See also#
API: write_csv · Table · to_pylist
Guides: Tables & data flow
By LSD Team · Last updated Jul 17, 2026
Ask on Discord
View as Markdown