# ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

- **ID:** `python/pandas-truth-value-ambiguous`
- **Domain:** python
- **Category:** type_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Using a Series in a boolean context (if/and/or) where a scalar is expected.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Use element-wise operators: (s > 0) & (s < 10); for any: s.any()
   ```
2. **** (90% success)
   ```
   np.where(cond, a, b) for vectorized selection
   ```

## Dead Ends

- **** — Raises the same error for multi-element Series (90% fail)
- **** — Triggers the same ambiguity error (85% fail)
