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
BUG: Cannot use tz-aware origin in to_datetime (#16842)
closes#16842
Author: step4me <[email protected]>
Closes#17244 from step4me/step4me-feature and squashes the following commits:
09d051d [step4me] BUG: Cannot use tz-aware origin in to_datetime (#16842)
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.21.0.txt
+3-2
Original file line number
Diff line number
Diff line change
@@ -292,6 +292,7 @@ Other API Changes
292
292
- The signature of :func:`Series.set_axis` and :func:`DataFrame.set_axis` has been changed from ``set_axis(axis, labels)`` to ``set_axis(labels, axis=0)``, for consistency with the rest of the API. The old signature is deprecated and will show a ``FutureWarning`` (:issue:`14636`)
293
293
- :func:`Series.argmin` and :func:`Series.argmax` will now raise a ``TypeError`` when used with ``object`` dtypes, instead of a ``ValueError`` (:issue:`13595`)
294
294
- :class:`Period` is now immutable, and will now raise an ``AttributeError`` when a user tries to assign a new value to the ``ordinal`` or ``freq`` attributes (:issue:`17116`).
295
+
- :func:`to_datetime` when passed a tz-aware ``origin=`` kwarg will now raise a more informative ``ValueError`` rather than a ``TypeError`` (:issue:`16842`)
295
296
296
297
297
298
.. _whatsnew_0210.deprecations:
@@ -356,6 +357,7 @@ Indexing
356
357
- Avoids ``IndexError`` when passing an Index or Series to ``.iloc`` with older numpy (:issue:`17193`)
357
358
- Allow unicode empty strings as placeholders in multilevel columns in Python 2 (:issue:`17099`)
358
359
- Bug in ``.iloc`` when used with inplace addition or assignment and an int indexer on a ``MultiIndex`` causing the wrong indexes to be read from and written to (:issue:`17148`)
360
+
- Bug in ``.isin()`` in which checking membership in empty ``Series`` objects raised an error (:issue:`16991`)
359
361
360
362
I/O
361
363
^^^
@@ -402,6 +404,7 @@ Reshaping
402
404
- Fixes dtype of result with integer dtype input, from :func:`pivot_table` when called with ``margins=True`` (:issue:`17013`)
403
405
- Bug in :func:`crosstab` where passing two ``Series`` with the same name raised a ``KeyError`` (:issue:`13279`)
404
406
- :func:`Series.argmin`, :func:`Series.argmax`, and their counterparts on ``DataFrame`` and groupby objects work correctly with floating point data that contains infinite values (:issue:`13595`).
407
+
- Bug in :func:`unique` where checking a tuple of strings raised a ``TypeError`` (:issue:`17108`)
405
408
406
409
Numeric
407
410
^^^^^^^
@@ -420,5 +423,3 @@ Categorical
420
423
Other
421
424
^^^^^
422
425
- Bug in :func:`eval` where the ``inplace`` parameter was being incorrectly handled (:issue:`16732`)
423
-
- Bug in ``.isin()`` in which checking membership in empty ``Series`` objects raised an error (:issue:`16991`)
424
-
- Bug in :func:`unique` where checking a tuple of strings raised a ``TypeError`` (:issue:`17108`)
0 commit comments