File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ Internal Changes
107
107
By `Mathias Hauser <https://github.com/mathause >`_.
108
108
- Ensure tests are not skipped in the `py38-all-but-dask ` test environment
109
109
(:issue: `4509 `). By `Mathias Hauser <https://github.com/mathause >`_.
110
+ - Replace the internal use of ``pd.Index.__or__ `` and ``pd.Index.__and__ `` with ``pd.Index.union ``
111
+ and ``pd.Index.intersection `` as they will stop working as set operations in the future
112
+ (:issue: `4565 `). By `Mathias Hauser <https://github.com/mathause >`_.
110
113
111
114
.. _whats-new.0.16.1 :
112
115
Original file line number Diff line number Diff line change 32
32
33
33
def _get_joiner (join ):
34
34
if join == "outer" :
35
- return functools .partial (functools .reduce , operator . or_ )
35
+ return functools .partial (functools .reduce , pd . Index . union )
36
36
elif join == "inner" :
37
- return functools .partial (functools .reduce , operator . and_ )
37
+ return functools .partial (functools .reduce , pd . Index . intersection )
38
38
elif join == "left" :
39
39
return operator .itemgetter (0 )
40
40
elif join == "right" :
You can’t perform that action at this time.
0 commit comments