From f3dcdc9ddde8f5081c4fe6e2d4043e6ef837c5cd Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Thu, 30 Oct 2025 14:19:55 -0700 Subject: [PATCH] DOC: Add filesystem keyword arg and documentation to DataFrame.to_parquet --- pandas/core/frame.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 68ea6795d47dd..896b2a943025b 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2918,6 +2918,7 @@ def to_parquet( index: bool | None = ..., partition_cols: list[str] | None = ..., storage_options: StorageOptions = ..., + filesystem: Any = ..., **kwargs, ) -> bytes: ... @@ -2931,6 +2932,7 @@ def to_parquet( index: bool | None = ..., partition_cols: list[str] | None = ..., storage_options: StorageOptions = ..., + filesystem: Any = ..., **kwargs, ) -> None: ... @@ -2944,6 +2946,7 @@ def to_parquet( index: bool | None = None, partition_cols: list[str] | None = None, storage_options: StorageOptions | None = None, + filesystem: Any = None, **kwargs, ) -> bytes | None: """ @@ -2983,6 +2986,12 @@ def to_parquet( Must be None if path is not a string. {storage_options} + filesystem : fsspec or pyarrow filesystem, default None + Filesystem object to use when reading the parquet file. Only implemented + for ``engine="pyarrow"``. + + .. versionadded:: 2.1.0 + **kwargs Additional arguments passed to the parquet library. See :ref:`pandas io ` for more details. @@ -3044,6 +3053,7 @@ def to_parquet( index=index, partition_cols=partition_cols, storage_options=storage_options, + filesystem=filesystem, **kwargs, )