Skip to content

Commit 88ef9fd

Browse files
committed
Alphabetical order for whatsnew, dtype=dtype instead of object
1 parent 758cd25 commit 88ef9fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/whatsnew/v2.0.1.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ Bug fixes
4747

4848
Other
4949
~~~~~
50+
- Bug in :class:`Index` where creating or converting to numpy string dtypes would raise ``NotImplementedError`` (:issue:`50127`)
5051
- :class:`DataFrame` created from empty dicts had :attr:`~DataFrame.columns` of dtype ``object``. It is now a :class:`RangeIndex` (:issue:`52404`)
5152
- :class:`Series` created from empty dicts had :attr:`~Series.index` of dtype ``object``. It is now a :class:`RangeIndex` (:issue:`52404`)
5253
- Implemented :meth:`Series.str.split` and :meth:`Series.str.rsplit` for :class:`ArrowDtype` with ``pyarrow.string`` (:issue:`52401`)
5354
- Implemented most ``str`` accessor methods for :class:`ArrowDtype` with ``pyarrow.string`` (:issue:`52401`)
54-
- Bug in :class:`Index` where creating or converting to numpy string dtypes would raise ``NotImplementedError`` (:issue:`50127`)
5555

5656
.. ---------------------------------------------------------------------------
5757
.. _whatsnew_201.contributors:

pandas/core/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ def __new__(
554554
data = com.asarray_tuplesafe(data, dtype=_dtype_obj)
555555
elif dtype and dtype.kind == "S":
556556
# GH#50127 we update data to a np.array with the correct dtype.
557-
data = np.array(data, dtype=object, copy=copy)
557+
data = np.array(data, dtype=dtype, copy=copy)
558558
copy = False
559559
dtype = _dtype_obj
560560

0 commit comments

Comments
 (0)