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: when flooring, ambiguous parameter unnecessarily used (and raising Error) (#50024)
* fixed bug in tz_localize to throw an error if the argument to the ambiguos parameter is not one of the 4 correct options
* fixed ambiguous check and timestamp test cases
* Delete floor_timestamp_tests.py
* fixed error in test cases
* re-ran with pre-commit
* merged with pandas/dev main branch and re-added previous changes
* added quotes
* added quotes to test case
* added removed test case + whatsnew notes
* fixed whatsnew note
* removed notes from v1.5.3 and added to v2.0.0
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v2.0.0.rst
+1-1
Original file line number
Diff line number
Diff line change
@@ -717,7 +717,7 @@ Timezones
717
717
^^^^^^^^^
718
718
- Bug in :meth:`Series.astype` and :meth:`DataFrame.astype` with object-dtype containing multiple timezone-aware ``datetime`` objects with heterogeneous timezones to a :class:`DatetimeTZDtype` incorrectly raising (:issue:`32581`)
719
719
- Bug in :func:`to_datetime` was failing to parse date strings with timezone name when ``format`` was specified with ``%Z`` (:issue:`49748`)
720
-
-
720
+
- Better error message when passing invalid values to ``ambiguous`` parameter in :meth:`Timestamp.tz_localize` (:issue:`49565`)
0 commit comments