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()