how to find max and min timestamp when a value goes below min threshold in pyspark? I have a table like below-