why not use:

```python
df.rename(columns={key: replacement_key, replacement_key: key}, inplace=True)
```

this works fine in ipython