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 @@ -125,7 +125,6 @@ Backwards incompatible API changes
125
125
126
126
- :class: `pandas.core.groupby.GroupBy.transform ` now raises on invalid operation names (:issue: `27489 `).
127
127
- :class: `pandas.core.arrays.IntervalArray ` adopts a new ``__repr__ `` in accordance with other array classes (:issue: `25022 `)
128
- - :meth: `DataFrame.merge ` now preserves right frame's row order when executing a right merge (:issue: `27453 `)
129
128
130
129
*pandas 0.25.x *
131
130
@@ -144,6 +143,32 @@ Backwards incompatible API changes
144
143
145
144
pd.arrays.IntervalArray.from_tuples([(0 , 1 ), (2 , 3 )])
146
145
146
+ - :meth: `DataFrame.merge ` now preserves right frame's row order when executing a right merge (:issue: `27453 `)
147
+
148
+ .. ipython :: python
149
+
150
+ left_df = pd.DataFrame({" colors" : [" blue" , " red" ]}, index = pd.Index([0 , 1 ]))
151
+ right_df = pd.DataFrame({" hats" : [" small" , " big" ]}, index = pd.Index([1 , 0 ]))
152
+
153
+ *pandas 0.25.x *
154
+
155
+ .. ipython :: python
156
+ left_df.merge(right_df, left_index = True , right_index = True , how = " right" )
157
+ colors hats
158
+ 0 blue big
159
+ 1 red small
160
+
161
+
162
+ *pandas 1.0.0 *
163
+
164
+ .. ipython :: python
165
+
166
+ left_df.merge(right_df, left_index = True , right_index = True , how = " right" )
167
+ colors hats
168
+ 1 red small
169
+ 0 blue big
170
+
171
+
147
172
148
173
.. _whatsnew_1000.api.other :
149
174
You can’t perform that action at this time.
0 commit comments