Jul-11-2019, 07:29 AM
I think, quite elegant would be a two stage approach, e.g.
cond = (df2.index > start) & (df2.index < end) df2.reset_index()[cond].index # or concat `.tolist()` statement,