Skip to content

Commit 42c3ab1

Browse files
Backport PR #51514 on branch 2.0.x (DOC: object_dtype_tzaware_strings.atype(dt64) raises) (#51619)
Backport PR #51514: DOC: object_dtype_tzaware_strings.atype(dt64) raises Co-authored-by: jbrockmendel <[email protected]>
1 parent 7128ade commit 42c3ab1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/source/whatsnew/v2.0.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,7 @@ Datetimelike
12141214
- Bug in :func:`DataFrame.from_records` when given a :class:`DataFrame` input with timezone-aware datetime64 columns incorrectly dropping the timezone-awareness (:issue:`51162`)
12151215
- Bug in :func:`to_datetime` was raising ``decimal.InvalidOperation`` when parsing date strings with ``errors='coerce'`` (:issue:`51084`)
12161216
- Bug in :func:`to_datetime` with both ``unit`` and ``origin`` specified returning incorrect results (:issue:`42624`)
1217+
- Bug in :meth:`Series.astype` and :meth:`DataFrame.astype` when converting an object-dtype object containing timezone-aware datetimes or strings to ``datetime64[ns]`` incorrectly localizing as UTC instead of raising ``TypeError`` (:issue:`50140`)
12171218
- Bug in :meth:`.DataFrameGroupBy.quantile` and :meth:`.SeriesGroupBy.quantile` with datetime or timedelta dtypes giving incorrect results for groups containing ``NaT`` (:issue:`51373`)
12181219
- Bug in :meth:`.DataFrameGroupBy.quantile` and :meth:`.SeriesGroupBy.quantile` incorrectly raising with :class:`PeriodDtype` or :class:`DatetimeTZDtype` (:issue:`51373`)
12191220

0 commit comments

Comments
 (0)