def _time_multi_index_gr_seq(df, time_1, time_2):
    """
    Extract frames with time index greater time_1 and smaller or equal time_2
    """
    _s = (df.index.get_level_values('time') > time_1) & (df.index.get_level_values('time') <= time_2)
    return _s