File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ Bug fixes
47
47
48
48
Other
49
49
~~~~~
50
+ - Bug in :class: `Index ` where creating or converting to numpy string dtypes would raise ``NotImplementedError `` (:issue: `50127 `)
50
51
- :class: `DataFrame ` created from empty dicts had :attr: `~DataFrame.columns ` of dtype ``object ``. It is now a :class: `RangeIndex ` (:issue: `52404 `)
51
52
- :class: `Series ` created from empty dicts had :attr: `~Series.index ` of dtype ``object ``. It is now a :class: `RangeIndex ` (:issue: `52404 `)
52
53
- Implemented :meth: `Series.str.split ` and :meth: `Series.str.rsplit ` for :class: `ArrowDtype ` with ``pyarrow.string `` (:issue: `52401 `)
53
54
- 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 `)
55
55
56
56
.. ---------------------------------------------------------------------------
57
57
.. _whatsnew_201.contributors :
Original file line number Diff line number Diff line change @@ -554,7 +554,7 @@ def __new__(
554
554
data = com .asarray_tuplesafe (data , dtype = _dtype_obj )
555
555
elif dtype and dtype .kind == "S" :
556
556
# 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 )
558
558
copy = False
559
559
dtype = _dtype_obj
560
560
You can’t perform that action at this time.
0 commit comments