Skip to content

Commit a092ede

Browse files
committed
make to_pandas_kwargs explicit parameter and update docstring
1 parent a13f054 commit a092ede

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pandas/io/parquet.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,6 @@ def to_parquet(
458458
459459
kwargs
460460
Additional keyword arguments passed to the engine.
461-
When using the ``'pyarrow'`` engine ``to_pandas_kwargs`` can be used to pass
462-
through arguments to ``pyarrow.Table.to_pandas``.
463461
464462
Returns
465463
-------
@@ -498,6 +496,7 @@ def read_parquet(
498496
dtype_backend: DtypeBackend | lib.NoDefault = lib.no_default,
499497
filesystem: Any = None,
500498
filters: list[tuple] | list[list[tuple]] | None = None,
499+
to_pandas_kwargs: dict | None = None,
501500
**kwargs,
502501
) -> DataFrame:
503502
"""
@@ -571,6 +570,12 @@ def read_parquet(
571570
572571
.. versionadded:: 2.1.0
573572
573+
to_pandas_kwargs: dict | None, default None
574+
keyword arguments to pass through to ``pyarrow.Table.to_pandas``
575+
when ``engine="pyarrow"``.
576+
577+
.. versionadded:: 3.0.0
578+
574579
**kwargs
575580
Any additional kwargs are passed to the engine.
576581
@@ -643,5 +648,6 @@ def read_parquet(
643648
storage_options=storage_options,
644649
dtype_backend=dtype_backend,
645650
filesystem=filesystem,
651+
to_pandas_kwargs=to_pandas_kwargs,
646652
**kwargs,
647653
)

0 commit comments

Comments
 (0)