Skip to content
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

Change deprecated Set operations on pd.Index #349

Closed
milodubois opened this issue Sep 17, 2022 · 1 comment
Closed

Change deprecated Set operations on pd.Index #349

milodubois opened this issue Sep 17, 2022 · 1 comment

Comments

@milodubois
Copy link

Future versions of Pandas will not support pd.Index operations like this:

first | second

but must be used like this

first.union(second)

This is similar for & and ^.

See merged PR #37374 in pandas-dev/pandas.

Thus, all references, including the introductory reference in chapter 03.01 should be updated in PDSH or perhaps users should be made aware of this change when going through PDSH.

Thank you.

@milodubois milodubois changed the title Change deprecated Set options on pd.Index Change deprecated Set operations on pd.Index Sep 17, 2022
@jakevdp
Copy link
Owner

jakevdp commented Sep 26, 2022

Thanks – see https://www.oreilly.com/library/view/python-data-science/9781098121211/; I'll update the notebooks here soon.

@jakevdp jakevdp closed this as completed Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants