Commit d52ef15
BUG: Make Series flex methods (truediv, floordiv, etc.) raise NotImplementedError for bool dtypes
Use arithmetic_op for arithmetic operations in Series._binop() to ensure
flex methods like truediv(), floordiv(), pow() raise NotImplementedError
for bool dtypes, consistent with their dunder counterparts.
Comparison operations (gt, lt, etc.) continue to use direct function calls
to preserve their existing behavior.
Closes #63250
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 944c527 commit d52ef15
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6718 | 6718 | | |
6719 | 6719 | | |
6720 | 6720 | | |
6721 | | - | |
| 6721 | + | |
| 6722 | + | |
| 6723 | + | |
| 6724 | + | |
| 6725 | + | |
| 6726 | + | |
| 6727 | + | |
| 6728 | + | |
| 6729 | + | |
| 6730 | + | |
| 6731 | + | |
| 6732 | + | |
| 6733 | + | |
| 6734 | + | |
6722 | 6735 | | |
6723 | 6736 | | |
6724 | 6737 | | |
| |||
0 commit comments