PythonDataScienceHandbook icon indicating copy to clipboard operation
PythonDataScienceHandbook copied to clipboard

Change deprecated Set operations on pd.Index

Open milodubois opened this issue 3 years ago • 0 comments

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 avatar Sep 17 '22 10:09 milodubois