We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e493323 commit cf5bc0aCopy full SHA for cf5bc0a
doc/source/whatsnew/v1.6.0.rst
@@ -162,6 +162,7 @@ Categorical
162
Datetimelike
163
^^^^^^^^^^^^
164
- Bug in :func:`pandas.infer_freq`, raising ``TypeError`` when inferred on :class:`RangeIndex` (:issue:`47084`)
165
+- Bug in :func:`to_datetime` was raising on invalid offsets with ``errors='coerce'`` and ``infer_datetime_format=True`` (:issue:`48633`)
166
-
167
168
Timedelta
pandas/_libs/tslibs/parsing.pyx
@@ -943,7 +943,7 @@ def format_is_iso(f: str) -> bint:
943
return False
944
945
946
-def guess_datetime_format(dt_str, bint dayfirst=False):
+def guess_datetime_format(dt_str: str, bint dayfirst=False) -> str | None:
947
"""
948
Guess the datetime format of a given datetime string.
949
0 commit comments