Dataframe: Get n rows before and after condition met 
I am working with a time series dataframe, and I would like to know how to get a number of rows before, and after the condition is met. 

I have a datetime index but also trying a numbered index for ease of use, however, i am not sure how to do either...

The output I want is as follows:
7 rows(or days/hours/minutes) before, then the condition row, and 7 rows(or days,etc...) after.

Any help is massively appreciated! Thank you.

