Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2918,6 +2918,7 @@ def to_parquet(
index: bool | None = ...,
partition_cols: list[str] | None = ...,
storage_options: StorageOptions = ...,
filesystem: Any = ...,
**kwargs,
) -> bytes: ...

Expand All @@ -2931,6 +2932,7 @@ def to_parquet(
index: bool | None = ...,
partition_cols: list[str] | None = ...,
storage_options: StorageOptions = ...,
filesystem: Any = ...,
**kwargs,
) -> None: ...

Expand All @@ -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:
"""
Expand Down Expand Up @@ -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 <io.parquet>` for more details.
Expand Down Expand Up @@ -3044,6 +3053,7 @@ def to_parquet(
index=index,
partition_cols=partition_cols,
storage_options=storage_options,
filesystem=filesystem,
**kwargs,
)

Expand Down
Loading