diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index fc6f892a25ca..d779c1e35103 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -4420,6 +4420,21 @@ def write_delta( ... }, ... ) # doctest: +SKIP + Write DataFrame as a Delta Lake table with zstd compression. + For all `delta_write_options` keyword arguments, check the deltalake docs + `here + `__, + and for Writer Properties in particular `here + `__. + + >>> import deltalake + >>> df.write_delta( + ... table_path, + ... delta_write_options={ + ... "writer_properties": deltalake.WriterProperties(compression="zstd"), + ... }, + ... ) # doctest: +SKIP + Merge the DataFrame with an existing Delta Lake table. For all `TableMerger` methods, check the deltalake docs `here `__.