Commit 73eb6dd
committed
BUG: Timedelta.round() raises ZeroDivisionError when internal unit is 's' and target frequency is sub-second (pandas-dev#64836)
(cherry picked from commit 16ca7d9)1 parent 648c250 commit 73eb6dd
3 files changed
Lines changed: 23 additions & 5 deletions
File tree
- doc/source/whatsnew
- pandas
- _libs/tslibs
- tests/scalar/timedelta/methods
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
2321 | 2323 | | |
2322 | 2324 | | |
2323 | 2325 | | |
2324 | | - | |
| 2326 | + | |
2325 | 2327 | | |
2326 | | - | |
2327 | | - | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
2328 | 2337 | | |
2329 | 2338 | | |
2330 | 2339 | | |
2331 | | - | |
| 2340 | + | |
2332 | 2341 | | |
2333 | 2342 | | |
2334 | | - | |
| 2343 | + | |
2335 | 2344 | | |
2336 | 2345 | | |
2337 | 2346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
0 commit comments