Skip to content

Commit d92d73e

Browse files
committed
Format docstring so it renders better
1 parent 4b87153 commit d92d73e

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

python/datafusion/dataframe.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -982,18 +982,21 @@ def write_parquet(
982982
) -> None:
983983
"""Execute the :py:class:`DataFrame` and write the results to a Parquet file.
984984
985+
Available compression types are:
986+
987+
- "uncompressed": No compression.
988+
- "snappy": Snappy compression.
989+
- "gzip": Gzip compression.
990+
- "brotli": Brotli compression.
991+
- "lz4": LZ4 compression.
992+
- "lz4_raw": LZ4_RAW compression.
993+
- "zstd": Zstandard compression.
994+
LZO compression is not yet implemented in arrow-rs and is therefore
995+
excluded.
996+
985997
Args:
986998
path: Path of the Parquet file to write.
987999
compression: Compression type to use. Default is "ZSTD".
988-
LZO compression is not yet implemented in arrow-rs and is therefore excluded.
989-
Available compression types are:
990-
- "uncompressed": No compression.
991-
- "snappy": Snappy compression.
992-
- "gzip": Gzip compression.
993-
- "brotli": Brotli compression.
994-
- "lz4": LZ4 compression.
995-
- "lz4_raw": LZ4_RAW compression.
996-
- "zstd": Zstandard compression.
9971000
compression_level: Compression level to use. For ZSTD, the
9981001
recommended range is 1 to 22, with the default being 4. Higher levels
9991002
provide better compression but slower speed.

0 commit comments

Comments
 (0)