Skip to content

Commit 4a2ad59

Browse files
committed
ENH: Add debugging breakpoint in _to_datetime_with_unit for troubleshooting
1 parent 16d14ab commit 4a2ad59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/tools/datetimes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,8 @@ def _to_datetime_with_unit(arg, unit, name, utc: bool, errors: str) -> DatetimeI
487487
Fixes a bug where scalar out-of-bounds values were not raising
488488
an error consistently.
489489
"""
490+
import pdb; pdb.set_trace()
491+
490492
# Ensure we handle both array-likes and scalars the same way.
491493
# extract_array can return a scalar if 'arg' is scalar-like;
492494
# so we force everything into at least 1D shape.

0 commit comments

Comments
 (0)