Skip to content

Commit df08fd1

Browse files
committed
BUG: Fixed behavior with fallback between raise and coerce pandas-dev#46071
1 parent 0d320e9 commit df08fd1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pandas/core/tools/datetimes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ def _array_strptime_with_fallback(
492492
else:
493493
if "%Z" in fmt or "%z" in fmt:
494494
return _return_parsed_timezone_results(result, timezones, tz, name)
495+
# GH#46071
495496
if infer_datetime_format and np.isnan(result).any():
496497
return None
497498

0 commit comments

Comments
 (0)