Instead:
```python
if labels is None:
    labels = [str(i) for i in range(ncols)]
```