Commit c722367
Fix Axes.hist crash for numpy timedelta64 inputs (#31203)
* Fix Axes.hist crash for numpy timedelta64 inputs
* Raise explicit TypeError for numpy.timedelta64 inputs in Axes.hist
* remove duplicate pytest import
* raise TypeError for timedelta64 in Axes.hist and remove bin logic changes
* Handle numpy.timedelta64 and datetime.timedelta explicitly
* fix object check and formatting
* merge timedelta checks and added datetime.timedelta regression tests
* merge timedelta checks and added datetime.timedelta regression test
* fix python style
* Fix indentation
---------
Co-authored-by: Tim Hoffmann <[email protected]>1 parent 496ae85 commit c722367
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7421 | 7421 | | |
7422 | 7422 | | |
7423 | 7423 | | |
| 7424 | + | |
| 7425 | + | |
| 7426 | + | |
| 7427 | + | |
| 7428 | + | |
| 7429 | + | |
| 7430 | + | |
| 7431 | + | |
| 7432 | + | |
7424 | 7433 | | |
7425 | 7434 | | |
7426 | 7435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2461 | 2461 | | |
2462 | 2462 | | |
2463 | 2463 | | |
| 2464 | + | |
| 2465 | + | |
| 2466 | + | |
| 2467 | + | |
| 2468 | + | |
| 2469 | + | |
| 2470 | + | |
| 2471 | + | |
| 2472 | + | |
| 2473 | + | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
| 2478 | + | |
2464 | 2479 | | |
2465 | 2480 | | |
2466 | 2481 | | |
| |||
0 commit comments