Skip to content

Commit 929cc37

Browse files
committed
Add gh issue number
1 parent 6cd9380 commit 929cc37

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/whatsnew/v1.3.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ Conversion
705705
- Bug in :class:`DataFrame` failing to raise ``TypeError`` when constructing from a ``frozenset`` (:issue:`40163`)
706706
- Bug in :class:`Index` construction silently ignoring a passed ``dtype`` when the data cannot be cast to that dtype (:issue:`21311`)
707707
- Bug in :meth:`StringArray.astype` falling back to numpy and raising when converting to ``dtype='categorical'`` (:issue:`40450`)
708-
- Bug in :func:`factorize` where, when given an array with a numeric numpy dtype lower than int64, uint64 and float64, the unique values did not keep their original dtype (:issue:`xxxxx`)
708+
- Bug in :func:`factorize` where, when given an array with a numeric numpy dtype lower than int64, uint64 and float64, the unique values did not keep their original dtype (:issue:`41132`)
709709
- Bug in :class:`DataFrame` construction with a dictionary containing an arraylike with ``ExtensionDtype`` and ``copy=True`` failing to make a copy (:issue:`38939`)
710710
-
711711

pandas/tests/test_algos.py

+1
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ def test_complex_sorting(self):
247247
algos.factorize(x17[::-1], sort=True)
248248

249249
def test_numeric_dtype_factorize(self, any_real_dtype):
250+
# GH41132
250251
dtype = any_real_dtype
251252
data = np.array([1, 2, 2, 1], dtype=dtype)
252253
expected_codes = np.array([0, 1, 1, 0], dtype=np.intp)

0 commit comments

Comments
 (0)