From 0d95b2a4812f69be456fbf639e84f4472f2f4728 Mon Sep 17 00:00:00 2001 From: Ramraja <135125341+imramraja@users.noreply.github.com> Date: Sun, 20 Jul 2025 15:46:46 +0530 Subject: [PATCH] Update frame.py --- pandas/core/frame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 48a5596e00061..e8c0c5f2c9e7b 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2958,7 +2958,8 @@ def to_parquet( is expected and consistent with pandas' handling of categorical data. To manage file size and ensure a more predictable roundtrip process, consider using :meth:`Categorical.remove_unused_categories` on the - DataFrame before saving. + DataFrame before saving + * When using the "pyarrow" engine, `DataFrame.attrs` are stored as part of the file's metadata and restored on reading. Examples --------