`unit` may be None, if the data has no units, so I think we need to leave this all inside a:

```
if input[col.name].unit is not None
```