Skip to content

Commit 7075b5a

Browse files
committed
BUG: DataFrame/Series constructor with tz aware data and datetime64[ns] dtype converts to naive (pandas-dev#26167)
1 parent 5b7d4e5 commit 7075b5a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/source/whatsnew/v0.25.0.rst

+5
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,15 @@ Datetimelike
277277
^^^^^^^^^^^^
278278

279279
- Bug in :func:`to_datetime` which would raise an (incorrect) ``ValueError`` when called with a date far into the future and the ``format`` argument specified instead of raising ``OutOfBoundsDatetime`` (:issue:`23830`)
280+
<<<<<<< HEAD
280281
- Bug in :func:`to_datetime` which would raise ``InvalidIndexError: Reindexing only valid with uniquely valued Index objects`` when called with ``cache=True``, with ``arg`` including at least two different elements from the set ``{None, numpy.nan, pandas.NaT}`` (:issue:`22305`)
281282
- Bug in :class:`DataFrame` and :class:`Series` where timezone aware data with ``dtype='datetime64[ns]`` was not cast to naive (:issue:`25843`)
282283
- Improved :class:`Timestamp` type checking in various datetime functions to prevent exceptions when using a subclassed ``datetime`` (:issue:`25851`)
283284
- Bug in :class:`Series` and :class:`DataFrame` repr where ``np.datetime64('NaT')`` and ``np.timedelta64('NaT')`` with ``dtype=object`` would be represented as ``NaN`` (:issue:`25445`)
285+
=======
286+
- Bug in :func:`to_datetime` which would raise ``InvalidIndexError: Reindexing only valid with uniquely valued Index objects`` when called with ``cache=True``, with ``arg`` including at least two different elements from the set {None, numpy.nan, pandas.NaT} (:issue:`22305`)
287+
- Bug in :class:`DataFrame` and :class:`Series` where timezone aware data with ``dtype='datetime64[ns]`` was not cast to naive (:issue:`25843`)
288+
>>>>>>> 5fa8a3158... BUG: DataFrame/Series constructor with tz aware data and datetime64[ns] dtype converts to naive (#26167)
284289
-
285290

286291
Timedelta

0 commit comments

Comments
 (0)