Skip to content

Commit

Permalink
Added improvements in to_datetime Error reporting message - incorrect…
Browse files Browse the repository at this point in the history
… field now/today shown as error
  • Loading branch information
dannyi96 committed Jul 26, 2022
1 parent d25d7fb commit 5582fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/parsing.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def parse_datetime_string(
pass

try:
dt = du_parse(date_string, default=_DEFAULT_DATETIME,
dt = du_parse(date_string, default=_DEFAULT_DATETIME,
dayfirst=dayfirst, yearfirst=yearfirst, **kwargs)
except TypeError:
# following may be raised from dateutil
Expand Down

0 comments on commit 5582fd8

Please sign in to comment.