Skip to content

Commit b790aef

Browse files
author
Jean-Francois Zinque
committed
DOC: whatsnew pandas-dev#31325 more explicit
1 parent 7fb060d commit b790aef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/whatsnew/v1.1.0.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ MultiIndex
176176
# Rows are now ordered as the requested keys
177177
df.loc[(['b', 'a'], [2, 1]), :]
178178
179-
- Bug in :meth:`MultiIndex.intersection` was not preserving order when ``sort=False``. (:issue:`31325`)
179+
- Bug in :meth:`MultiIndex.intersection` was not guaranteed to preserve order when ``sort=False``. (:issue:`31325`)
180180

181181
.. ipython:: python
182182
183183
left = pd.MultiIndex.from_arrays([["b", "a"], [2, 1]])
184184
right = pd.MultiIndex.from_arrays([["a", "b", "c"], [1, 2, 3]])
185-
# Common elements are now ordered by the left side
185+
# Common elements are now guaranteed to be ordered by the left side
186186
left.intersection(right, sort=False)
187187
188188
-

0 commit comments

Comments
 (0)