-
-
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: remove the copy kw from .xs to prevent an expectation of a view (which may not be possible) #6919
Conversation
Should we go first through a deprecation cycle? So to not let fail your code when you provided the |
good point..will add on the user facing code |
@jorisvandenbossche updated.....so this still allows one to do
but now is undocumented (was in a doc string before) But that is not supported / dangerous anyhow MultiIndex Slicers is the correct method
so nothing lost maybe should add to the doc string that |
@jorisvandenbossche how do I do a |
can I use a e.g.
|
like this:
only the docstring of |
just did #6920 |
Aha :-) Yes, you can use all sphinx referencing in the docstrings as in the normal docs (only if you see the docstring as plain text in eg the terminal, then it makes less sense, but for the api pages on the online docs this is very useful) |
gr8..makes sense |
Maybe explicitly add in the description of |
API: remove the copy kw from .xs to prevent an expectation of a view (which may not be possible)
closes #6894
Deprecate passing keyword
copy
to:DataFrame/Series/Panel/.xs
Panel.minor_xs
Panel.major_xs
.xs
returns a view (as does.loc
) IF POSSIBLEMultiIndexing with Slicers eliminates the need for this (and
.xs
for the too, but forsome cases its 'simpler').