I have a dataframe looks like below:
Place Time1 Time2 Time3 Time4 Time5 Time6 Time7 Time8 Time9 ...
CA 0.2 0.3 0.1 0.4
MN 0.01 0.19 0.1 0.2 0.1 0.1 0.1 0.1 0.1
NY 0.15 0.05 0.2 0.1 0.1 0.2 0.2
There are many more time columns. For each row, the values of the time columns sum to 1. I want to rank the time values for each row from large to small and get the time points when the sum of these time points first pass 0.25. For example, below is a sample output (NY has three values because none of them passes 0.25 but they are tie):
CA Time 4
MN Time 4 Time 2
NY Time 3 Time 6 Time 7