We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c48de7e commit 0664bd3Copy full SHA for 0664bd3
pandas/_libs/tslibs/timedeltas.pyx
@@ -449,7 +449,10 @@ def array_to_timedelta64(
449
ival = parse_iso_format_string(item)
450
else:
451
ival = parse_timedelta_string(item)
452
- if infer_reso and not needs_nano_unit(ival, item):
+ if (
453
+ (infer_reso or creso == NPY_DATETIMEUNIT.NPY_FR_us)
454
+ and not needs_nano_unit(ival, item)
455
+ ):
456
item_reso = NPY_DATETIMEUNIT.NPY_FR_us
457
ival = ival // 1000
458
0 commit comments