Skip to content

Commit 5582fd8

Browse files
committed
Added improvements in to_datetime Error reporting message - incorrect field now/today shown as error
1 parent d25d7fb commit 5582fd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/tslibs/parsing.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def parse_datetime_string(
282282
pass
283283

284284
try:
285-
dt = du_parse(date_string, default=_DEFAULT_DATETIME,
285+
dt = du_parse(date_string, default=_DEFAULT_DATETIME,
286286
dayfirst=dayfirst, yearfirst=yearfirst, **kwargs)
287287
except TypeError:
288288
# following may be raised from dateutil

0 commit comments

Comments
 (0)