-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: Remove SettingWithCopyWarning #56614
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
Changes from 11 commits
b2183ba
53c3f76
a0ddaa1
8e29d0d
42e8322
7929800
8ef42d7
9f826ee
60653ad
62385bf
00cb5ff
60c7ffe
516bd88
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,13 +11,6 @@ and :ref:`other advanced indexing features <advanced.index_types>`. | |
|
||
See the :ref:`Indexing and Selecting Data <indexing>` for general indexing documentation. | ||
|
||
.. warning:: | ||
|
||
Whether a copy or a reference is returned for a setting operation may | ||
depend on the context. This is sometimes called ``chained assignment`` and | ||
should be avoided. See :ref:`Returning a View versus Copy | ||
<indexing.view_versus_copy>`. | ||
|
||
See the :ref:`cookbook<cookbook.selection>` for some advanced strategies. | ||
|
||
.. _advanced.hierarchical: | ||
|
@@ -402,6 +395,7 @@ slicers on a single axis. | |
Furthermore, you can *set* the values using the following methods. | ||
|
||
.. ipython:: python | ||
:okwarning: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this the pdep warning? Best to just change this example or remove if it won't work anymore There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. doesn't seem to be necessary anymore, lets see what ci has to say There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll keep this in for now, I can't reproduce locally but it shows up on ci, it's weird |
||
|
||
df2 = dfmi.copy() | ||
df2.loc(axis=0)[:, :, ["C1", "C3"]] = -10 | ||
|
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.
If you have another PR with the whatsnew note, please make sure that the removal of these are mentioned
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.
I'll create a separate PR with a whatsnew