File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -1247,7 +1247,6 @@ Reshaping
1247
1247
- Bug in :func: `merge_asof ` merging on a tz-aware ``left_index `` and ``right_on `` a tz-aware column (:issue: `29864 `)
1248
1248
- Improved error message and docstring in :func: `cut ` and :func: `qcut ` when `labels=True ` (:issue: `13318 `)
1249
1249
- Bug in missing `fill_na ` parameter to :meth: `DataFrame.unstack ` with list of levels (:issue: `30740 `)
1250
- - :meth: `DataFrame.merge ` now preserves right frame's row order when executing a right merge (:issue: `27453 `)
1251
1250
1252
1251
Sparse
1253
1252
^^^^^^
Original file line number Diff line number Diff line change @@ -10,6 +10,38 @@ including other versions of pandas.
10
10
11
11
.. ---------------------------------------------------------------------------
12
12
13
+ .. _whatsnew_101.api_breaking :
14
+
15
+ Backwards incompatible API changes
16
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17
+
18
+ :meth: `DataFrame.merge ` preserves right frame's row order
19
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
+ :meth: `DataFrame.merge ` now preserves right frame's row order when executing a right merge (:issue: `27453 `)
21
+
22
+ .. ipython :: python
23
+
24
+ left_df = pd.DataFrame({' animal' : [' dog' , ' pig' ], ' max_speed' : [40 , 11 ]})
25
+ right_df = pd.DataFrame({' animal' : [' quetzal' , ' pig' ], ' max_speed' : [80 , 11 ]})
26
+ left_df
27
+ right_df
28
+
29
+ *pandas 1.0.0 *
30
+
31
+ .. code-block :: python
32
+
33
+ >> > left_df.merge(right_df, on = [' animal' , ' max_speed' ], how = " right" )
34
+ animal max_speed
35
+ 0 pig 11
36
+ 1 quetzal 80
37
+
38
+ *pandas 1.0.1 *
39
+
40
+ .. ipython :: python
41
+
42
+ left_df.merge(right_df, on = [' animal' , ' max_speed' ], how = " right" )
43
+
44
+ .. ---------------------------------------------------------------------------
13
45
14
46
.. _whatsnew_101.bug_fixes :
15
47
You can’t perform that action at this time.
0 commit comments