Skip to content

DOC: mention .attrs are preserved in Parquet IO for pyarrow engine #61912

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
3 changes: 2 additions & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Copy link
Member

@arthurlw arthurlw Jul 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is failing because this line exceeds the maximum allowed length. Try splitting it into two lines to satisfy the linter.


Examples
--------
Expand Down
Loading