File tree 1 file changed +26
-1
lines changed
1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,6 @@ New repr for :class:`~pandas.arrays.IntervalArray`
276
276
- :class: `pandas.arrays.IntervalArray ` adopts a new ``__repr__ `` in accordance with other array classes (:issue: `25022 `)
277
277
- :class: `pandas.core.groupby.GroupBy.transform ` now raises on invalid operation names (:issue: `27489 `).
278
278
- :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 `)
280
279
281
280
*pandas 0.25.x *
282
281
@@ -295,6 +294,32 @@ New repr for :class:`~pandas.arrays.IntervalArray`
295
294
296
295
pd.arrays.IntervalArray.from_tuples([(0 , 1 ), (2 , 3 )])
297
296
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
+
298
323
299
324
All :class: `SeriesGroupBy ` aggregation methods now respect the ``observed `` keyword
300
325
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
You can’t perform that action at this time.
0 commit comments