Skip to content

ENH: Move SettingWithCopyWarning to error/__init__.py per GH27656 #47198

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

Merged

Conversation

dataxerik
Copy link
Contributor

This can happen unintentionally when chained indexing.

For more information, see 'Evaluation order matters' on
https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html
Copy link
Member

Choose a reason for hiding this comment

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

Could you use sphinx referencing here like

For more information, see :ref:`the user guide<indexing.evaluation_order>`

You can check indexing.rst for the .. _indexing.evaluation_order sphinx references for each section.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I didn't know about that; thank you for the comment! I've updated the references

@mroeschke mroeschke added the Warnings Warnings that appear or should be added to pandas label Jun 2, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jun 3, 2022
@mroeschke mroeschke merged commit 866b281 into pandas-dev:main Jun 3, 2022
@mroeschke
Copy link
Member

Thanks again @dataxerik. Great progress on this issue

yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
…ndas-dev#47198)

* ENH: Move SettingWithCopyWarning to error/__init__.py per GH27656

* ENH: change links to sphinx ref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Warnings Warnings that appear or should be added to pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants