I am trying write a code where i loop through a dataframe and if an "index_time" is less than current time, then perform an operation, otherwise wait some time and