# FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version.

- **ID:** `python/pandas-futurewarning-downcasting`
- **Domain:** python
- **Category:** runtime_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

pandas 2.1+ deprecates implicit downcasting when filling object-dtype Series. Future versions will preserve object dtype.

## Version Compatibility

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

## Workarounds

1. **** (95% success)
   ```
   Explicitly cast: df['col'] = df['col'].astype('float64').fillna(0)
   ```
2. **** (85% success)
   ```
   Use pd.set_option('future.no_silent_downcasting', True) to opt in early
   ```

## Dead Ends

- **** — Behavior will still change in future pandas (85% fail)
- **** — Can raise on incompatible columns (70% fail)
