array([[False, True, False, True, True], [False, False, False, False, True],
    [False, True, False, True, True], [False, False, False, False, True], [
    False, False, False, False, False]], dtype=bool)
Python pandas calculate time until value in a column is greater than it is in current period