Skip to content

Commit 29128b3

Browse files
committed
comments and whatsnew edits
1 parent 3898b72 commit 29128b3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/whatsnew/v0.20.2.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Bug Fixes
4444
- Bug in ``DataFrame.update()`` with ``overwrite=False`` and ``NaN values`` (:issue:`15593`)
4545
- Passing an invalid engine to :func:`read_csv` now raises an informative
4646
``ValueError`` rather than ``UnboundLocalError``. (:issue:`16511`)
47-
- Bug in ``pd.cut`` when ``labels`` are set (:issue:`16459`)
47+
- Bug in ``pd.cut`` when ``labels`` are set, resulting in incorrect label ordering (:issue:`16459`)
4848
- Fixed a compatibility issue with IPython 6.0's tab completion showing deprecation warnings on Categoricals (:issue:`16409`)
4949

5050
Conversion

pandas/tests/reshape/test_tile.py

+1
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ def test_cut_pass_labels(self):
220220
exp = Categorical.from_codes([1] + 4 * [0] + [1, 2], labels)
221221
tm.assert_categorical_equal(result, exp)
222222

223+
# issue 16459
223224
labels = ['Good', 'Medium', 'Bad']
224225
result = cut(arr, 3, labels=labels)
225226
exp = cut(arr, 3, labels=Categorical(labels, categories=labels,

0 commit comments

Comments
 (0)