I have a set of indices that match a condition:
for col in signal.columns:
for sign in signs:
index = signal.index[signal[col] == sign].tolist()
for i in index:
at this point, I would like to look at the range of values for this column at i to i + n days in advance (where n is an integer); something like:
print(signal[col].iloc[i:i + n])
however, I cannot add the int to the date i:
TypeError: unsupported operand type(s) for +: 'datetime.date' and 'int'