Skip to content

Commit f3dcdc9

Browse files
committed
DOC: Add filesystem keyword arg and documentation to DataFrame.to_parquet
1 parent 46ed6b1 commit f3dcdc9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pandas/core/frame.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2918,6 +2918,7 @@ def to_parquet(
29182918
index: bool | None = ...,
29192919
partition_cols: list[str] | None = ...,
29202920
storage_options: StorageOptions = ...,
2921+
filesystem: Any = ...,
29212922
**kwargs,
29222923
) -> bytes: ...
29232924

@@ -2931,6 +2932,7 @@ def to_parquet(
29312932
index: bool | None = ...,
29322933
partition_cols: list[str] | None = ...,
29332934
storage_options: StorageOptions = ...,
2935+
filesystem: Any = ...,
29342936
**kwargs,
29352937
) -> None: ...
29362938

@@ -2944,6 +2946,7 @@ def to_parquet(
29442946
index: bool | None = None,
29452947
partition_cols: list[str] | None = None,
29462948
storage_options: StorageOptions | None = None,
2949+
filesystem: Any = None,
29472950
**kwargs,
29482951
) -> bytes | None:
29492952
"""
@@ -2983,6 +2986,12 @@ def to_parquet(
29832986
Must be None if path is not a string.
29842987
{storage_options}
29852988
2989+
filesystem : fsspec or pyarrow filesystem, default None
2990+
Filesystem object to use when reading the parquet file. Only implemented
2991+
for ``engine="pyarrow"``.
2992+
2993+
.. versionadded:: 2.1.0
2994+
29862995
**kwargs
29872996
Additional arguments passed to the parquet library. See
29882997
:ref:`pandas io <io.parquet>` for more details.
@@ -3044,6 +3053,7 @@ def to_parquet(
30443053
index=index,
30453054
partition_cols=partition_cols,
30463055
storage_options=storage_options,
3056+
filesystem=filesystem,
30473057
**kwargs,
30483058
)
30493059

0 commit comments

Comments
 (0)