I have this timeseries df:
Current
2018-09-01 00:00 -0.01
2018-09-01 00:01 -0.03
2018-09-01 00:02 -0.01
2018-09-01 00:03 0.03
2018-09-01 00:04 -0.02
2018-09-01 00:05 -0.04
2018-09-01 00:06 0.05
I am trying to find the first instance of a Current
value being > 0.01. If I use
findValue = (df['Current'] > 0.01).idxmax()
I will return:
2018-09-01 00:03 0.03
.
However, I would like to ignore the first 5 rows, so that the return should be
2018-09-01 00:06 0.05
I have tried using shift():
findValue = (df['Current'] > 0.01).shift(5).idxmax()
But this doesn't seem right...