Commit 4a7ac2e
committed
fix: normalize Arrow-backed arrays to numpy in Ray test comparison
Ray 2.56.0 changed to return Arrow-backed DataFrames from Ray Data batches,
so df[col].values returns ArrowExtensionArray instead of numpy ndarray.
numpy.all() on bool[pyarrow] triggers a pandas/pyarrow incompatibility
(axis kwarg not accepted). Use Series.to_numpy() to always get numpy arrays.
Also revert the incorrect pandas<2.3 pin (wrong root cause diagnosis).1 parent 90e8593 commit 4a7ac2e
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
270 | 273 | | |
271 | 274 | | |
272 | 275 | | |
| |||
0 commit comments