Skip to content

[backport 3.0.x] BUG: fix to_timedelta ignoring unit for mixed round/non-round floats (#65170)#65313

Merged
jorisvandenbossche merged 1 commit intopandas-dev:3.0.xfrom
jbrockmendel:backport-65170-3.0.x
Apr 21, 2026
Merged

[backport 3.0.x] BUG: fix to_timedelta ignoring unit for mixed round/non-round floats (#65170)#65313
jorisvandenbossche merged 1 commit intopandas-dev:3.0.xfrom
jbrockmendel:backport-65170-3.0.x

Conversation

@jbrockmendel
Copy link
Copy Markdown
Member

Manual backport of #65170 to 3.0.x.

Cherry-pick had trivial conflicts due to the Day-offset handling from GH#64240 (not on 3.0.x) and a one-line uint64_to_timedelta_coerce test tweak for a test that doesn't exist on 3.0.x. Core fix is identical to main.

…non-round floats (pandas-dev#65170)

Manual backport of pandas-dev#65170. Excludes the one-line `uint64_to_timedelta_coerce`
test tweak since that test isn't on 3.0.x.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jorisvandenbossche jorisvandenbossche added this to the 3.0.3 milestone Apr 21, 2026
@jorisvandenbossche jorisvandenbossche merged commit 4b27e93 into pandas-dev:3.0.x Apr 21, 2026
45 checks passed
@jorisvandenbossche
Copy link
Copy Markdown
Member

Thanks for the backport!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants