-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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: deprecate rename_axis / reindex_axis ? #17833
Comments
yes |
They aren't quite superfluous, as In [13]: df = pd.DataFrame({"A": [1, 2, 3]})
In [14]: df.rename_axis("foo")
Out[14]:
A
foo
0 1
1 2
2 3
In [15]: df.rename_axis("foo", axis=1)
Out[15]:
foo A
0 1
1 2
2 3 I'm really regretting the approach I took in #11980 for overloading rename :/ |
For But I don't think it is the case for
Yes, but that is still something else no? |
Ahh, yes, I suppose we could do that. I can start a PR now for it and |
* API: Deprecate renamae_axis and reindex_axis Closes #17833 * REF: Refactor axis style validator to generic This sets us up to re-use it for Panel reindex * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * Ugh * fixup! API: Deprecate renamae_axis and reindex_axis * Fixup
* API: Deprecate renamae_axis and reindex_axis Closes pandas-dev#17833 * REF: Refactor axis style validator to generic This sets us up to re-use it for Panel reindex * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * Ugh * fixup! API: Deprecate renamae_axis and reindex_axis * Fixup
* API: Deprecate renamae_axis and reindex_axis Closes pandas-dev#17833 * REF: Refactor axis style validator to generic This sets us up to re-use it for Panel reindex * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * Ugh * fixup! API: Deprecate renamae_axis and reindex_axis * Fixup
* API: Deprecate renamae_axis and reindex_axis Closes pandas-dev#17833 * REF: Refactor axis style validator to generic This sets us up to re-use it for Panel reindex * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * fixup! API: Deprecate renamae_axis and reindex_axis * Ugh * fixup! API: Deprecate renamae_axis and reindex_axis * Fixup
I use
The warning did not occur since then, so I wonder what the current state is. |
Got the same problem in old code... solved with |
Given we are adding the "labels, axis=0/1" idiom to
reindex
andrename
itself (#12392, PR #17800), I think the specificreindex_axis
andrename_axis
will be superfluous.Should be deprecate them?
The text was updated successfully, but these errors were encountered: