File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ Fixed regressions
2626
2727Bug fixes
2828~~~~~~~~~
29- - Bug in :meth: `pandas.cut ` on :class: `Series ` with duplicate indices (:issue: `42185 `) and non-exact :meth: `pandas.CategoricalIndex ` (:issue: `42425 `)
3029- Fixed bug in :meth: `DataFrame.transpose ` dropping values when the DataFrame had an Extension Array dtype and a duplicate index (:issue: `42380 `)
3130-
3231
Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ Other enhancements
4040
4141Notable bug fixes
4242~~~~~~~~~~~~~~~~~
43-
44- These are bug fixes that might have notable behavior changes.
43+ - Bug in :meth: `pandas.cut ` on :class: `Series ` with duplicate indices (:issue: `42185 `) and non-exact :meth: `pandas.CategoricalIndex ` (:issue: `42425 `)
4544
4645.. _whatsnew_140.notable_bug_fixes.notable_bug_fix1 :
4746
Original file line number Diff line number Diff line change 1313 Timestamp ,
1414)
1515from pandas ._libs .lib import infer_dtype
16- from pandas ._typing import AnyArrayLike
1716
1817from pandas .core .dtypes .common import (
1918 DT64NS_DTYPE ,
4544
4645
4746def cut (
48- x : AnyArrayLike ,
47+ x ,
4948 bins ,
5049 right : bool = True ,
5150 labels = None ,
@@ -384,7 +383,7 @@ def qcut(
384383
385384
386385def _bins_to_cuts (
387- x : AnyArrayLike ,
386+ x ,
388387 bins : np .ndarray ,
389388 right : bool = True ,
390389 labels = None ,
@@ -394,9 +393,6 @@ def _bins_to_cuts(
394393 duplicates : str = "raise" ,
395394 ordered : bool = True ,
396395):
397- """
398- Allots bins to each item in `x`
399- """
400396 if not ordered and labels is None :
401397 raise ValueError ("'labels' must be provided if 'ordered = False'" )
402398
You can’t perform that action at this time.
0 commit comments