-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
API: Store name outside attrs #30798
Conversation
This aligns with xarray and h5py: pandas-dev#29062 (comment)
pandas/core/series.py
Outdated
@@ -159,7 +159,8 @@ class Series(base.IndexOpsMixin, generic.NDFrame): | |||
|
|||
_typ = "series" | |||
|
|||
_metadata: List[str] = [] | |||
_name: Hashable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional hashable?
sure x- @jbrockmendel comment. |
@TomAugspurger maybe also add a note somewhere that |
|
||
.. warning:: | ||
|
||
attrs is experimental and may change without warning. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Can you also add this in the reference docs (where you added it in https://github.com/pandas-dev/pandas/pull/29062/files)
When will this feature be not experimental? Is allows for persistence of data when pickling on accessors. I would encourage to remove the experimental tag. |
You can remove the experimental label if you want. The basics aren't go to change. However, there are two future changes that will affect things in attrs
|
This aligns with xarray and h5py:
#29062 (comment)