piogrowth.durations module#
Operate on boolean series with a timestamp index.
- piogrowth.durations.find_max_range(s: Series)[source]#
Find the maximum range of consecutive True values in a boolean Series.
- Parameters:
s (pd.Series) – A boolean Series.
- Returns:
A tuple containing the start and end indices of the maximum range of consecutive True values. If no True values are found, returns (pd.NaT, pd.NaT).
- Return type: