File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ Other enhancements
43
43
44
44
Notable bug fixes
45
45
~~~~~~~~~~~~~~~~~
46
-
47
- These are bug fixes that might have notable behavior changes.
46
+ - Bug in :meth: `pandas.cut ` on :class: `Series ` with duplicate indices (:issue: `42185 `) and non-exact :meth: `pandas.CategoricalIndex ` (:issue: `42425 `)
48
47
49
48
.. _whatsnew_140.notable_bug_fixes.notable_bug_fix1 :
50
49
Original file line number Diff line number Diff line change 13
13
Timestamp ,
14
14
)
15
15
from pandas ._libs .lib import infer_dtype
16
- from pandas ._typing import AnyArrayLike
17
16
18
17
from pandas .core .dtypes .common import (
19
18
DT64NS_DTYPE ,
45
44
46
45
47
46
def cut (
48
- x : AnyArrayLike ,
47
+ x ,
49
48
bins ,
50
49
right : bool = True ,
51
50
labels = None ,
@@ -384,7 +383,7 @@ def qcut(
384
383
385
384
386
385
def _bins_to_cuts (
387
- x : AnyArrayLike ,
386
+ x ,
388
387
bins : np .ndarray ,
389
388
right : bool = True ,
390
389
labels = None ,
@@ -394,9 +393,6 @@ def _bins_to_cuts(
394
393
duplicates : str = "raise" ,
395
394
ordered : bool = True ,
396
395
):
397
- """
398
- Allots bins to each item in `x`
399
- """
400
396
if not ordered and labels is None :
401
397
raise ValueError ("'labels' must be provided if 'ordered = False'" )
402
398
You can’t perform that action at this time.
0 commit comments