Skip to content

REF: Store dataframe protocol column buffers in attrs #47217

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

Merged
merged 3 commits into from
Jun 9, 2022

Conversation

mroeschke
Copy link
Member

Before storing dataframe exchange column buffers in _buffers would warn

UserWarning: Pandas doesn't allow columns to be created via a new attribute name - see https://pandas.pydata.org/pandas-docs/stable/indexing.html#attribute-access

Looks like these aren't used anywhere yet, but to be associate with the DataFrame, it's more natural to store in attrs

cc @vnlitvinov

@mroeschke mroeschke added the Refactor Internal refactoring of code label Jun 3, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jun 3, 2022
@jreback
Copy link
Contributor

jreback commented Jun 5, 2022

looks fine, @vnlitvinov if any comments

@mroeschke mroeschke merged commit 0be24e0 into pandas-dev:main Jun 9, 2022
@mroeschke
Copy link
Member Author

Can follow up with any comments if needed.

@mroeschke mroeschke deleted the fix/xchange_buffers branch June 9, 2022 19:11
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants