<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _expand(dat, counts, start, end):
 """ expand the same counts from start to end """

    for pos in range(start, end):
        for s in counts:
            dat[s][pos] += counts[s]
    return dat