Skip to content

Commit 3da1145

Browse files
author
Marco Gorelli
committed
📝 add whatsnew entry to v1.0.1
1 parent 3e71284 commit 3da1145

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

doc/source/whatsnew/v1.0.0.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,7 +1247,6 @@ Reshaping
12471247
- Bug in :func:`merge_asof` merging on a tz-aware ``left_index`` and ``right_on`` a tz-aware column (:issue:`29864`)
12481248
- Improved error message and docstring in :func:`cut` and :func:`qcut` when `labels=True` (:issue:`13318`)
12491249
- 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`)
12511250

12521251
Sparse
12531252
^^^^^^

doc/source/whatsnew/v1.0.1.rst

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,38 @@ including other versions of pandas.
1010

1111
.. ---------------------------------------------------------------------------
1212
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+
.. ---------------------------------------------------------------------------
1345
1446
.. _whatsnew_101.bug_fixes:
1547

0 commit comments

Comments
 (0)