I am trying to access the next column header while in a loop going through the columns of a pandas dataframe.

```
for cols in data.columns:
    if data.columns.get_loc(cols) < len(data.columns):  # skip last column of data
        count = data.groupby([cols, cols+1]).size()  # create new df and how many times the two columns occur

```

However `cols+1` gives me an error. This is because `cols` returns the header name, so you can't +1 a string, but what would be the best way to get the next column header over while in a loop like this?