Backport PR #25651 on branch 0.24.x (REGR: to_timedelta precision issues with floating data)
State: closed

Backport PR #25651: REGR: to_timedelta precision issues with floating data

Labels:
name: Timedelta
description: Timedelta data type

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=h1) Report
> Merging [#25687](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=desc) into [0.24.x](https://codecov.io/gh/pandas-dev/pandas/commit/eef1dd8c98e143a6e775260aefcfe562abe39ce3?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25687/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           0.24.x   #25687      +/-   ##
==========================================
+ Coverage   92.39%   92.39%   +<.01%     
==========================================
  Files         166      166              
  Lines       52424    52428       +4     
==========================================
+ Hits        48437    48441       +4     
  Misses       3987     3987
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.83% <100%> (ø)` | :arrow_up: |
| #single | `42.9% <83.33%> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/arrays/timedeltas.py](https://codecov.io/gh/pandas-dev/pandas/pull/25687/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvYXJyYXlzL3RpbWVkZWx0YXMucHk=) | `88.29% <100%> (+0.09%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=footer). Last update [eef1dd8...dc66c9b](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=h1) Report
> Merging [#25687](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=desc) into [0.24.x](https://codecov.io/gh/pandas-dev/pandas/commit/eef1dd8c98e143a6e775260aefcfe562abe39ce3?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25687/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           0.24.x   #25687      +/-   ##
==========================================
+ Coverage   92.39%   92.39%   +<.01%     
==========================================
  Files         166      166              
  Lines       52424    52428       +4     
==========================================
+ Hits        48437    48441       +4     
  Misses       3987     3987
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.83% <100%> (ø)` | :arrow_up: |
| #single | `42.9% <83.33%> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/arrays/timedeltas.py](https://codecov.io/gh/pandas-dev/pandas/pull/25687/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvYXJyYXlzL3RpbWVkZWx0YXMucHk=) | `88.29% <100%> (+0.09%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=footer). Last update [eef1dd8...dc66c9b](https://codecov.io/gh/pandas-dev/pandas/pull/25687?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).