carloea2 opened a new issue, #8231:
URL: https://github.com/apache/texera/issues/8231
### Current behavior
Comparing a Texera `Table` with a pandas `DataFrame` reduces equality over
rows only and returns a per-column Series. Ordinary boolean use then raises an
ambiguous-Series `ValueError`, despite `Table.__eq__` declaring a boolean
return.
Before: Table equals DataFrame -> per-column Series -> boolean use raises
ValueError
After: Table equals DataFrame -> reduce all axes -> return a Python boolean
### Steps to reproduce
Construct a `Table` and an equal pandas `DataFrame`, compare them, and use
the result as a boolean.
Observed on `70c21145887920528d7d5540e3fb790b43e8b759`:
```text
result_type=Series
result={'x': True, 'y': True}
truth_error=ValueError: The truth value of a Series is ambiguous. Use
a.empty, a.bool(), a.item(), a.any() or a.all().
```
### Expected behavior
Equality should return `True` or `False` so callers can use the result
directly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]