Skip to content

Add note about limited propagation of attrs #35456

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

Closed
wants to merge 2 commits into from

Conversation

RobertRosca
Copy link

Explicitly mention that attrs are not retained once a series is placed into a dataframe, related to issue #35425

Explicitly mention that `attrs` are not retained once a series is placed into a dataframe, related to issue #35425
@WillAyd
Copy link
Member

WillAyd commented Aug 4, 2020

@TomAugspurger

@WillAyd WillAyd added the Docs label Aug 4, 2020
Copy link
Contributor

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

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

Thanks for this, but I don't think this is the ideal location.

Right now we have a small section in user_guide/basics.rst. In the future I suspect we'll have a page dedicated to attrs, but for now I think adding this note to basics.rst is best.

@MarcoGorelli
Copy link
Member

@RobertRosca is this still active? Could you address Tom's comment if so?

Co-authored-by: Tom Augspurger <TomAugspurger@users.noreply.github.com>
@MarcoGorelli
Copy link
Member

Thanks for updating - could you also address the comment

for now I think adding this note to basics.rst is best.

please?

@RobertRosca
Copy link
Author

Hey, sorry for the delay, forgot about the PR 😅

Had a look at the user_guide/basics.rst page and I'm not sure where this would fit in there. There's a section "Attributes and underlying data" which has a reference _basics.attrs in the file, but that talks about metadata intrinsic to the table itself (shape, axis labels) not metadata added by users to .attrs. The .attrs dict itself doesn't seem to be mentioned on the basics page.

And since attrs is marked as experimental, and adding your own metadata isn't really 'basic', I don't think it should be mentioned much on the page about essential basic functionality.

Personally I'd expect to find this kind of warning about the use of attrs on the doc page for pandas.Series.attrs. I'm happy to put it somewhere in user_guide/basics.rst as well, but still think that a gotcha for the series attrs should be mentioned on the series attrs doc page.

@github-actions github-actions bot added the Stale label Sep 25, 2020
Copy link
Member

@arw2019 arw2019 left a comment

Choose a reason for hiding this comment

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

@RobertRosca is this still active?

@RobertRosca
Copy link
Author

Hey, I added the note but to a different location to what @TomAugspurger suggested, if Tom's okay with where it is then hopefully it can be merged 😃

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Nov 3, 2020 via email

@arw2019
Copy link
Member

arw2019 commented Nov 30, 2020

Closing for now. @RobertRosca ping us know whenever you'd like to pick up and address @TomAugspurger feedback - we'll reopen

@arw2019 arw2019 closed this Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants