Skip to content

DOC: document column attrs with Copy-on-Write#65645

Open
MukundaKatta wants to merge 1 commit into
pandas-dev:mainfrom
MukundaKatta:codex/document-column-attrs-cow
Open

DOC: document column attrs with Copy-on-Write#65645
MukundaKatta wants to merge 1 commit into
pandas-dev:mainfrom
MukundaKatta:codex/document-column-attrs-cow

Conversation

@MukundaKatta
Copy link
Copy Markdown

Closes #64711

  • add Copy-on-Write migration guidance that column-selected Series.attrs is not supported for column-level metadata
  • suggest storing column metadata explicitly on DataFrame.attrs or in a separate metadata object

Checks:

  • git diff --check
  • python3 content assertion for the new migration-guide note

**Column attributes cannot be used to store column-level metadata**

``DataFrame.attrs`` and ``Series.attrs`` remain available for metadata on the
object itself. With CoW, setting ``attrs`` on a ``Series`` returned by selecting
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is unrelated to CoW, it’s the removal of the item_cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: No longer possible to assign attrs to pandas column

2 participants