Skip to content

Commit 11ec7d0

Browse files
author
Nico Cernek
committed
add before and after examples
1 parent 71736b8 commit 11ec7d0

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

doc/source/whatsnew/v1.0.0.rst

+26-1
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ New repr for :class:`~pandas.arrays.IntervalArray`
276276
- :class:`pandas.arrays.IntervalArray` adopts a new ``__repr__`` in accordance with other array classes (:issue:`25022`)
277277
- :class:`pandas.core.groupby.GroupBy.transform` now raises on invalid operation names (:issue:`27489`).
278278
- :class:`pandas.core.arrays.IntervalArray` adopts a new ``__repr__`` in accordance with other array classes (:issue:`25022`)
279-
- :meth:`DataFrame.merge` now preserves right frame's row order when executing a right merge (:issue:`27453`)
280279

281280
*pandas 0.25.x*
282281

@@ -295,6 +294,32 @@ New repr for :class:`~pandas.arrays.IntervalArray`
295294
296295
pd.arrays.IntervalArray.from_tuples([(0, 1), (2, 3)])
297296
297+
- :meth:`DataFrame.merge` now preserves right frame's row order when executing a right merge (:issue:`27453`)
298+
299+
.. ipython:: python
300+
301+
left_df = pd.DataFrame({"colors": ["blue", "red"]}, index = pd.Index([0, 1]))
302+
right_df = pd.DataFrame({"hats": ["small", "big"]}, index = pd.Index([1, 0]))
303+
304+
*pandas 0.25.x*
305+
306+
.. ipython:: python
307+
left_df.merge(right_df, left_index=True, right_index=True, how="right")
308+
colors hats
309+
0 blue big
310+
1 red small
311+
312+
313+
*pandas 1.0.0*
314+
315+
.. ipython:: python
316+
317+
left_df.merge(right_df, left_index=True, right_index=True, how="right")
318+
colors hats
319+
1 red small
320+
0 blue big
321+
322+
298323
299324
All :class:`SeriesGroupBy` aggregation methods now respect the ``observed`` keyword
300325
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)