You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.24.0.txt
+2
Original file line number
Diff line number
Diff line change
@@ -247,6 +247,7 @@ Backwards incompatible API changes
247
247
248
248
- A newly constructed empty :class:`DataFrame` with integer as the ``dtype`` will now only be cast to ``float64`` if ``index`` is specified (:issue:`22858`)
249
249
- :meth:`Series.str.cat` will now raise if `others` is a `set` (:issue:`23009`)
250
+
- Passing scalar values to :class:`DatetimeIndex` or :class:`TimedeltaIndex` will now raise ``TypeError`` instead of ``ValueError`` (:issue:`23539`)
250
251
251
252
.. _whatsnew_0240.api_breaking.deps:
252
253
@@ -969,6 +970,7 @@ Deprecations
969
970
- The class ``FrozenNDArray`` has been deprecated. When unpickling, ``FrozenNDArray`` will be unpickled to ``np.ndarray`` once this class is removed (:issue:`9031`)
970
971
- Deprecated the `nthreads` keyword of :func:`pandas.read_feather` in favor of
971
972
`use_threads` to reflect the changes in pyarrow 0.11.0. (:issue:`23053`)
973
+
- Constructing a :class:`TimedeltaIndex` from data with ``datetime64``-dtyped data is deprecated, will raise ``TypeError`` in a future version (:issue:`23539`)
0 commit comments