Skip to content

Commit bb70ece

Browse files
committed
made suggested changes
1 parent 1c3f1d0 commit bb70ece

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

doc/source/whatsnew/v1.3.1.rst

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ Fixed regressions
2626

2727
Bug 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

doc/source/whatsnew/v1.4.0.rst

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ Other enhancements
4040

4141
Notable 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

pandas/core/reshape/tile.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
Timestamp,
1414
)
1515
from pandas._libs.lib import infer_dtype
16-
from pandas._typing import AnyArrayLike
1716

1817
from pandas.core.dtypes.common import (
1918
DT64NS_DTYPE,
@@ -45,7 +44,7 @@
4544

4645

4746
def cut(
48-
x: AnyArrayLike,
47+
x,
4948
bins,
5049
right: bool = True,
5150
labels=None,
@@ -384,7 +383,7 @@ def qcut(
384383

385384

386385
def _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

0 commit comments

Comments
 (0)