Reputation: 208
I am trying to find cell named North and take everything below it I know that we can easily locate this using loc and iloc, but in my case it may vary every time my app opens new excel file. I tried using str.contains
Upvotes: 0
Views: 56
Reputation: 71580
Try with iloc
and idxmax
:
df.iloc[df.eq('North').any(1).idxmax():]
Upvotes: 2