or

```
    for i, r in enumerate(row):
        d = r - row[i - 1]
        if d <= 0:
            continue
        IA.extend([i]*d)

```