Find index of longest consectuive timespan in pandas time series
Find index of longest consectuive timespan in pandas time series Question: I have a time series with gaps (NaN) and I want to find the start and stop index of the longest consecutive sequence where no Nan occurs. I have no clue how to do that. values = [5468.0, 5946.0, np.nan, 6019.0, 5797.0, 5879.0, np.nan, …