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

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

## Root Cause

Using a pandas Series inside an if/and/or expression. Series has no single boolean truth value, so Python's conditional evaluation fails.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Use elementwise ops: df.loc[df['a'] > 0, 'b'] = 1
   ```
2. **** (90% success)
   ```
   Reduce first: if (df['a'] > 0).any(): ...
   ```

## Dead Ends

- **** — Still ambiguous for multi-element arrays (85% fail)
- **** — Same ValueError raised (90% fail)
