File tree 3 files changed +3
-9
lines changed
3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ Fixed regressions
26
26
27
27
Bug fixes
28
28
~~~~~~~~~
29
- - Bug in :meth: `pandas.cut ` on :class: `Series ` with duplicate indices (:issue: `42185 `) and non-exact :meth: `pandas.CategoricalIndex ` (:issue: `42425 `)
30
29
- Fixed bug in :meth: `DataFrame.transpose ` dropping values when the DataFrame had an Extension Array dtype and a duplicate index (:issue: `42380 `)
31
30
-
32
31
Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ Other enhancements
40
40
41
41
Notable bug fixes
42
42
~~~~~~~~~~~~~~~~~
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 `)
45
44
46
45
.. _whatsnew_140.notable_bug_fixes.notable_bug_fix1 :
47
46
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